This file contains hidden or 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 re | |
| import requests | |
| s = requests.Session() | |
| r = s.get('https://moderatecontent.com/') | |
| logid = re.search(r"var log_id = '([\da-f]+)';", r.text).group(1) | |
| # r = s.post( | |
| # 'https://moderatecontent.com/api/upload.php', |
This file contains hidden or 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 sys | |
| from PIL import Image | |
| if len(sys.argv) < 2: | |
| print(f'Usage: python3 {sys.argv[0]} /path/to/image [/path/to/output]') | |
| sys.exit(1) | |
| f = sys.stdout if len(sys.argv) < 3 else open(sys.argv[2], 'w', encoding='utf-8') | |
| literal = False |
This file contains hidden or 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 asyncio | |
| import httpx | |
| import ipaddress | |
| import orjson | |
| import re | |
| import sys | |
| import urllib.parse | |
| from datetime import datetime, timezone, timedelta | |
| async def hookRaiseForStatus(r: httpx.Response): |
This file contains hidden or 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 base64 | |
| import hmac | |
| import os | |
| import time | |
| from Crypto.Cipher import AES | |
| from Crypto.Util.Padding import pad, unpad | |
| # maimai.py/maimai-ffi 直接使用了 cryptography.Fernet 对用户 ID 进行加密 | |
| # 实际的密文格式如下 | |
| # https://github.com/fernet/spec/blob/master/Spec.md |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html lang="en-US"> | |
| <head> | |
| <title>522: Connection timed out</title> | |
| <meta charset="UTF-8"> | |
| <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=Edge"> | |
| <meta name="robots" content="noindex,nofollow"> | |
| <meta name="viewport" content="width=device-width,initial-scale=1"> | |
| <link rel="stylesheet" href="https://cloudflare-dns.com/cdn-cgi/styles/main.css"> |
OlderNewer