Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
from enum import Enum
import getopt
import http.cookiejar
import json
import logging
import os
import queue
import shlex
import shutil
@jobec
jobec / domain_fronting.py
Last active October 16, 2023 10:29
How to do domain fronting in Python with Requests. Send a request to an arbitrary IP address and force the SNI field and Host HTTP header to a certain value.
#
# How to do domain fronting in Python with Requests.
#
# Send a request to an arbitrary IP address and force the
# SNI field and Host HTTP header to a certain value.
#
import http.client
import requests
import urllib3
@maci1011
maci1011 / script-facebook-group-members-remover.js
Last active February 22, 2023 10:52
Facebook js script for removing all group members
// 1 - Go in the group members page and load 200/300 members
// 2 - Paste this in the console and wait
// 3 - Reload the page and do it again
var FBGMR = (function() {
var FBGroupMembersRemover = {},
_id;
@wido
wido / dnskey_to_dsrecord.py
Created July 18, 2016 11:58
Calculate DS record from DNSKEY with Python 3
"""
Generate a DNSSEC DS record based on the incoming DNSKEY record
The DNSKEY can be found using for example 'dig':
$ dig DNSKEY secure.widodh.nl
The output can then be parsed with the following code to generate a DS record
for in the parent DNS zone