PW crack 5
This commit is contained in:
15
pw_crack_5/sol.py
Executable file
15
pw_crack_5/sol.py
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/home/maxime/.pyvenv/bin/python3
|
||||
from pwn import *
|
||||
|
||||
for i in range(0x7e77, 0x10000):
|
||||
p = process("./level5.py", shell=True)
|
||||
p.recvuntil(b": ")
|
||||
p.sendline("{:x}".format(i).encode())
|
||||
log.info("trying {:x}".format(i).encode())
|
||||
try:
|
||||
res = p.recvline_contains(b"picoCTF")
|
||||
log.success(res)
|
||||
break
|
||||
except:
|
||||
p.close()
|
||||
|
||||
Reference in New Issue
Block a user