Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from pwn import *
- import time
- def exploit():
- flag = 'matesctf{'
- while True:
- maxtime = 0
- for c in '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz{|}':
- if len(flag) < 22:
- # r = process('./doanxem')
- HOST = '125.235.240.168'
- PORT = 20190
- r = remote(HOST, PORT)
- r.recv()
- before = time.time()
- r.sendline(flag+c)
- r.recv()
- r.close()
- after = time.time()
- max = after - before
- if max > maxtime:
- maxtime = max
- brute = c
- flag = flag + brute
- print (flag)
- exploit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement