Skip to content

Commit cf5fa67

Browse files
committed
Use parenthesis
1 parent ac0e4e7 commit cf5fa67

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/auxiliary/scanner/http/symantec_web_gateway_login.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,13 @@ def bruteforce(ip)
105105
scanner(ip).scan! do |result|
106106
case result.status
107107
when Metasploit::Model::Login::Status::SUCCESSFUL
108-
print_brute :level => :good, :ip => ip, :msg => "Success: '#{result.credential}'"
108+
print_brute(:level => :good, :ip => ip, :msg => "Success: '#{result.credential}'")
109109
report_good_cred(ip, rport, result)
110110
when Metasploit::Model::Login::Status::UNABLE_TO_CONNECT
111-
vprint_brute :level => :verror, :ip => ip, :msg => result.proof
111+
vprint_brute(:level => :verror, :ip => ip, :msg => result.proof)
112112
report_bad_cred(ip, rport, result)
113113
when Metasploit::Model::Login::Status::INCORRECT
114-
vprint_brute :level => :verror, :ip => ip, :msg => "Failed: '#{result.credential}'"
114+
vprint_brute(:level => :verror, :ip => ip, :msg => "Failed: '#{result.credential}'")
115115
report_bad_cred(ip, rport, result)
116116
end
117117
end
@@ -121,7 +121,7 @@ def bruteforce(ip)
121121
# Start here
122122
def run_host(ip)
123123
unless scanner(ip).check_setup
124-
print_brute :level => :error, :ip => ip, :msg => 'Target is not Symantec Web Gateway'
124+
print_brute(:level => :error, :ip => ip, :msg => 'Target is not Symantec Web Gateway')
125125
return
126126
end
127127

0 commit comments

Comments
 (0)