Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import re, requests, string, hashlib, base64, random
- # from sympy.ntheory import primefactors, factorint, isprime
- # letters = string.ascii_lowercase
- def randomString(stringLength=10):
- """Generate a random string of fixed length """
- letters = string.ascii_lowercase
- return ''.join(random.choice(letters) for i in range(stringLength))
- host = 'https://95.179.244.'
- url = ''
- param = ''
- cookie = ''
- # submit = ''
- with requests.session() as session:
- for j in range(255):
- url = host + str(j + 1)
- print(url)
- response = session.get(url).text
- print(response)
- flag = re.findall(r'(spbctf{[0-9a-zA-Z]*})', response)
- if flag:
- print(flag)
- break
Add Comment
Please, Sign In to add comment