This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from mitmproxy import ctx | |
from mitmproxy.proxy.server_hooks import ServerConnectionHookData | |
''' | |
使用 mitmproxy -s main.py 启动代理 | |
然后再mitm.it安装证书 | |
''' | |
class Danbooru: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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 |