Advertisement
Royal_Rose_Red_Lay

preprogram

Jan 21st, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. #!/usr/bin/python3
  2. import requests, re
  3.  
  4. pattern = re.compile("<span id='flag'>(.*?)<\/span",re.IGNORECASE)
  5. v=133
  6. flag = ''
  7. for i in range(881):
  8. url='https://128.199.88.182/calculate.php?step'+str(i)+'='+str(v)
  9. v = v + 2
  10. r = requests.get(url,verify=False)
  11. data = r.text
  12. match = re.findall(pattern,data)
  13. if match:
  14. flag += match[0]
  15. print(flag)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement