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 62b74ae commit 9ed2840Copy full SHA for 9ed2840
modules/auxiliary/scanner/http/apache_mod_cgi_bash_env.rb
@@ -46,12 +46,12 @@ def initialize(info = {})
46
@marker = marker
47
end
48
49
- def check
+ def check_host(ip)
50
res = req("echo #{@marker}")
51
52
if res && res.body.include?(@marker * 3)
53
report_vuln(
54
- :host => rhost,
+ :host => ip,
55
:port => rport,
56
:name => self.name,
57
:refs => self.references
@@ -63,7 +63,7 @@ def check
63
64
65
def run_host(ip)
66
- return unless check == Exploit::CheckCode::Vulnerable
+ return unless check_host(ip) == Exploit::CheckCode::Vulnerable
67
68
res = req(datastore['CMD'])
69
0 commit comments