Skip to content

Instantly share code, notes, and snippets.

View synodriver's full-sized avatar
🙃

synodriver

🙃
  • /dev/null
View GitHub Profile
@mnixry
mnixry / decrypt_tim_database.py
Created March 21, 2023 17:16
Decrypt all TEXT and BLOB fields in MobileQQ/TIM database and update records in-place.
import itertools
import sqlite3
import sys
import rich
import rich.progress
def decrypt_blob(data: bytes, byte_key: bytes) -> bytes:
key_iterator = itertools.cycle(byte_key)
@mnixry
mnixry / novelai_keyencrypt.py
Created October 6, 2022 14:53
Encode Novel AI account e-mail & password set into login key.
from nacl import encoding, hash, pwhash
username = b"" # Input your email and password here
password = b""
result = pwhash.argon2id.kdf(
size=64,
password=password,
salt=hash.generichash(
password[:6] + username + b"novelai_data_access_key",
@mzdluo123
mzdluo123 / main.py
Last active June 5, 2022 16:16
Danbooru mitmproxy
from mitmproxy import ctx
from mitmproxy.proxy.server_hooks import ServerConnectionHookData
'''
使用 mitmproxy -s main.py 启动代理
然后再mitm.it安装证书
'''
class Danbooru:
@wvengen
wvengen / scrapy_h2_proxy.py
Last active October 26, 2023 16:17
Scrapy download handler for HTTP/2 over a HTTP/1 proxy (TLS only).
"""
Download handler for HTTP/2 supporting proxy CONNECT over HTTP/1.
You can use this by configuring it in the spider settings:
DOWNLOAD_HANDLERS = {
'https': 'scrapy_h2_proxy.H2DownloadHandler',
}
Tested with Scrapy 2.5.0.
<html>
<body bgcolor=000000>
<table boder=0 cellpadding=0 cellspacing=0>
<tr height=3>
<td width=3 bgcolor=888888 rowspan=105></td>
<td bgcolor=888888 colspan=54></td>
<td width=3 bgcolor=888888 rowspan=105></td>
</tr>
@tomchristie
tomchristie / proxy.py
Created January 15, 2020 13:06
An ASGI proxy service.
import httpx
from starlette.requests import Request
from starlette.responses import StreamingResponse
class Proxy:
def __init__(self, hostname):
self.hostname = hostname
self.client = httpx.AsyncClient()
@journey-ad
journey-ad / 2233.zenra.js
Last active January 22, 2025 02:27
哔站直播间的2233娘挂件替换为全裸版本
// ==UserScript==
// @name 哔站直播全裸2233娘
// @description 哔站直播间的2233娘挂件替换为全裸版本
// @description:zh-TW 嗶站直播間的2233娘掛件替換為全裸版本
// @namespace https://github.com/journey-ad
// @author journey-ad
// @include *://live.bilibili.com/*
// @require https://cdn.jsdelivr.net/jquery/1.12.4/jquery.min.js