Skip to content

Instantly share code, notes, and snippets.

@neon-ninja
Created January 6, 2025 01:34
Show Gist options
  • Select an option

  • Save neon-ninja/33319104c8e7d5d2c774d6f57a8268c4 to your computer and use it in GitHub Desktop.

Select an option

Save neon-ninja/33319104c8e7d5d2c774d6f57a8268c4 to your computer and use it in GitHub Desktop.
zenbu
import requests
import time
s = requests.Session()
def login(u,p):
r=s.post("https://secure.zenbu.net.nz/api/login.php", data={ "form_request":"login","form_submit":"login","username":u,"password":p})
print(r)
login("username","password")
while True:
print(s.get("https://secure.zenbu.net.nz/api/userCreditDetails.php").json())
r = s.get("http://example.com")
print(r)
print(r.url)
time.sleep(10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment