Skip to content

Commit 3259509

Browse files
committed
Use return
1 parent 0a3735f commit 3259509

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/auxiliary/scanner/http/apache_mod_cgi_bash_env.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ def check_host(ip)
5757
:name => self.name,
5858
:refs => self.references
5959
)
60-
Exploit::CheckCode::Vulnerable
60+
return Exploit::CheckCode::Vulnerable
6161
elsif res && res.code == 500
6262
injected_res_code = res.code
6363
else
64-
Exploit::CheckCode::Safe
64+
return Exploit::CheckCode::Safe
6565
end
6666

6767
res = send_request_cgi({

0 commit comments

Comments
 (0)