Skip to content

Instantly share code, notes, and snippets.

View ashleysommer's full-sized avatar

Ashley Sommer ashleysommer

View GitHub Profile
@ashleysommer
ashleysommer / proxy.py
Created September 30, 2021 06:18
A simple reverse-proxy server in Sanic using HTTPX streaming responses
#!/bin/python3
#
"""Example Sanic Reverse Proxy"""
from urllib.parse import urlsplit, urlunsplit
from sanic import Sanic, Request
from sanic.response import stream, HTTPResponse
import httpx
env = {"hostname-from": "localhost", "port-from": 8000, "port-to": 8080}
@ashleysommer
ashleysommer / make_vrt_stats.py
Created September 28, 2021 02:14
Walk directories, make VRT files, add stats and overviews to the VRT files
from collections import defaultdict
from math import e
from re import L
import sys
from glob import glob
from pathlib import Path
from types import new_class
from lxml import etree
from os.path import commonprefix
from os import unlink
@ashleysommer
ashleysommer / gist:2e11f232abc5509243ea408d5a33dbc0
Created March 1, 2018 03:26
Ginlong wifi payload decode and push
import sys
import struct
import asyncio
import aiohttp
import json
import time
import os
import glob
import bz2
import tarfile
@SciresM
SciresM / Signatures.txt
Last active September 9, 2024 08:17
"Perfect" sighax signatures for every Boot9 modulus.
Retail NAND FIRM:
Perfect Signature:
B6724531C448657A2A2EE306457E350A10D544B42859B0E5B0BED27534CCCC2A4D47EDEA60A7DD99939950A6357B1E35DFC7FAC773B7E12E7C1481234AF141B31CF08E9F62293AA6BAAE246C15095F8B78402A684D852C680549FA5B3F14D9E838A2FB9C09A15ABB40DCA25E40A3DDC1F58E79CEC901974363A946E99B4346E8A372B6CD55A707E1EAB9BEC0200B5BA0B661236A8708D704517F43C6C38EE9560111E1405E5E8ED356C49C4FF6823D1219AFAEEB3DF3C36B62BBA88FC15BA8648F9333FD9FC092B8146C3D908F73155D48BE89D72612E18E4AA8EB9B7FD2A5F7328C4ECBFB0083833CBD5C983A25CEB8B941CC68EB017CE87F5D793ACA09ACF7
Exponentiated Message:
0002B31331C710412333A587890F9CF0B6A86E71C8A78F96B76082903B3E54EA9AB935978BBF2493BB829E9A5A6060B0C7811881176BCF9FE8B1C5C5E0A95327DB8B52EC178A884AD9CF28DB8BBF2922C05FD034AC81BD231AEB0CBEF6F7DE6F3A30812B9F9A83BF33251891BFA18FA38A64C6FF5F77DBE11C3780C23EA9F6D00F9C01D6FC8A878591D36C4F64ACA6B8D11BBEB21476103C6E86FF2196D465BA4DB78F81F1D3BCCA186BDDD56739A12DD36122F3F5B3DD518DDAC4FA29395EA4CD9DFD80AF8A399990F4FDD3CD6B07EC2122437CCFC3B62B1D1493A7DBB442003