from itertools import product import string from pwn import * context.log_level = 'debug'
letters = string.ascii_lowercase[:26]
perms = product(letters, repeat=8)
p = remote('101.200.122.251',12199)
for perm in perms: full_perm = ''.join((''.join(perm[:4]), 'b', ''.join(perm[4:]))) print(full_perm) p.recvuntil('bytes):') p.sendline(full_perm) p.recvuntil('rage:') code = p.recvline('\n') print(code) res = 0 for i in code: if i == 1: res+=1 else: res+=0 print(res) if res > 3: print(full_perm) break
from itertools import product import string from pwn import * context.log_level = 'debug'
letters = string.ascii_lowercase[:26]
perms = product(letters, repeat=4)
p = remote('101.200.122.251',12199)
for perm in perms: full_perm = ''.join((''.join(perm[:4]), 'b', ''.join(perm[4:]),'Good')) print(full_perm) p.recvuntil('bytes):') p.sendline(full_perm) p.recvuntil('rage:') code = p.recvline('\n') print(code) res = 0 for i in code: if i == 1: res+=1 else: res+=0 print(res) if res > 3: print(full_perm) break