Use the fixed API on the mediawiki exploit

bug/bundler_fix
jvazquez-r7 2014-02-11 08:28:58 -06:00
parent 79d559a0c9
commit 51df2d8b51
2 changed files with 1 additions and 2 deletions

View File

@ -130,7 +130,6 @@ class Message
self.parts.each do |part|
msg << force_crlf("--" + self.bound + "\r\n")
#msg << part.to_s + "\r\n"
msg << force_crlf(part.header.to_s + "\r\n")
msg << part.content + "\r\n"
end

View File

@ -283,7 +283,7 @@ class Metasploit3 < Msf::Exploit::Remote
upload_mime.add_part(title, nil, nil, "form-data; name=\"title\"")
upload_mime.add_part("1", nil, nil, "form-data; name=\"wpDestFileWarningAck\"")
upload_mime.add_part(wp_upload, nil, nil, "form-data; name=\"wpUpload\"")
post_data = upload_mime.to_s(true)
post_data = upload_mime.to_s
print_status("Uploading DjVu file #{file_name}...")