SSH Template
from pwn import *
import time
s = ssh(host="110.10.212.133", user="hunting", port=5556, password="hunting")
rand = ssh(host="110.10.212.133", user="hunting", port=5556, password="hunting")
r = s.process("./hunting", env = {})
r2 = rand.process("/tmp/juno1/c")
r.recvuntil("choice:")
data = r2.recv()
data = data.split(" ")
key = []
for x in data:
if x == "3":
key.append(3)
elif x == "1":
key.append(3)
elif x == "2":
key.append(2)
elif x == "0":
key.append(1)
print key
print "*"*20
r2.close()
r.sendline("3")
...
'PDS > Tools' 카테고리의 다른 글
checksec on pwntools (0) | 2017.03.07 |
---|---|
towelroot (0) | 2014.07.30 |
Using GDB for Vulnerability Developement (0) | 2014.01.24 |