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 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 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 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): |
OlderNewer