Skip to content

Instantly share code, notes, and snippets.

@martinbydefault
martinbydefault / hackerone_programs.py
Created August 13, 2021 05:01 — forked from thiezn/hackerone_programs.py
HackerOne API Program and scope retrieval
#!/usr/bin/env python3
"""Interact with HackerOne Hacker API.
First generate an API token through the Hackerone website and initialize the class:
>>> username = "YOUR_USER_NAME"
>>> token = "GENERATE_AN_API_TOKEN_THROUGH_HACKERONE_WEBSITE"
>>> session = HackerOneSession(username, token)
@martinbydefault
martinbydefault / upload_to_DO_spaces.py
Created September 2, 2019 14:27
Script to upload files to Digital Ocean's Spaces with status/progress bar
from boto3 import session
from botocore.client import Config
import progressbar, os
ACCESS_ID = ''
SECRET_KEY = ''
SPACE_NAME = ''
REGION = '' # Example: sf2
FILE_NAME = '' # Full path to file
UPLOAD_NAME = '' # Path to save file in DO Space