me30

import hashlib

Nov 20th, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. import re, requests, string, hashlib, base64, random
  2. # from sympy.ntheory import primefactors, factorint, isprime
  3. # letters = string.ascii_lowercase
  4.  
  5. def randomString(stringLength=10):
  6. """Generate a random string of fixed length """
  7. letters = string.ascii_lowercase
  8. return ''.join(random.choice(letters) for i in range(stringLength))
  9.  
  10. host = 'https://95.179.244.'
  11. url = ''
  12. param = ''
  13. cookie = ''
  14. # submit = ''
  15. with requests.session() as session:
  16. for j in range(255):
  17. url = host + str(j + 1)
  18. print(url)
  19. response = session.get(url).text
  20. print(response)
  21. flag = re.findall(r'(spbctf{[0-9a-zA-Z]*})', response)
  22. if flag:
  23. print(flag)
  24. break
Add Comment
Please, Sign In to add comment