Skip to content

Commit 6b52e19

Browse files
pwnable.kr mistake chall + random.py -> random-chall.py
1 parent 51e5d06 commit 6b52e19

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed
369 Bytes
Binary file not shown.

pwnable-kr/mistake.py

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from pwn import *
2+
char = 'b'
3+
xorchar = chr(ord('b') ^ 1)
4+
s = ssh(host='pwnable.kr', port=2222, user='mistake', password='guest')
5+
p = s.process('./mistake');
6+
p.writeline((char * 10).encode('ascii'))
7+
p.writeline((xorchar * 10).encode('ascii'))
8+
p.interactive()

pwnable-kr/random.py renamed to pwnable-kr/random-chall.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Renamed to rename-chall to avoid naming conflicts with the Pythobuiltin random library.
12
from pwn import *
23
s = ssh(host='pwnable.kr', port=2222, user='random', password='guest')
34
p = s.process('./random')

0 commit comments

Comments
 (0)