PW crack 5

This commit is contained in:
Maxime Vorwerk
2024-06-24 14:42:57 +02:00
parent cf1880ee27
commit 81ec00056f
5 changed files with 65594 additions and 0 deletions

15
pw_crack_5/sol.py Executable file
View 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()