Skip to content

Commit 90df0f1

Browse files
committed
Land rapid7#3489 - Add verbosity to Jenkins Enum
2 parents ecba956 + c6675a2 commit 90df0f1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

modules/auxiliary/scanner/http/jenkins_enum.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def run_host(ip)
5353
end
5454

5555
version = res.headers['X-Jenkins']
56-
vprint_status("#{peer} - Jenkins Version - #{version}")
56+
print_status("#{peer} - Jenkins Version - #{version}")
5757
report_service(
5858
:host => rhost,
5959
:port => rport,
@@ -120,17 +120,17 @@ def check_app(app)
120120
)
121121
end
122122
when 403
123-
vprint_status("#{peer} - #{uri_path} restricted (403)")
123+
print_status("#{peer} - #{uri_path} restricted (403)")
124124
when 401
125-
vprint_status("#{peer} - #{uri_path} requires authentication (401): #{res.headers['WWW-Authenticate']}")
125+
print_status("#{peer} - #{uri_path} requires authentication (401): #{res.headers['WWW-Authenticate']}")
126126
when 404
127-
vprint_status("#{peer} - #{uri_path} not found (404)")
127+
print_status("#{peer} - #{uri_path} not found (404)")
128128
when 301
129-
vprint_status("#{peer} - #{uri_path} is redirected (#{res.code}) to #{res.headers['Location']} (not following)")
129+
print_status("#{peer} - #{uri_path} is redirected (#{res.code}) to #{res.headers['Location']} (not following)")
130130
when 302
131-
vprint_status("#{peer} - #{uri_path} is redirected (#{res.code}) to #{res.headers['Location']} (not following)")
131+
print_status("#{peer} - #{uri_path} is redirected (#{res.code}) to #{res.headers['Location']} (not following)")
132132
else
133-
vprint_status("#{peer} - #{uri_path} Don't know how to handle response code #{res.code}")
133+
print_status("#{peer} - #{uri_path} Don't know how to handle response code #{res.code}")
134134
end
135135
end
136136

0 commit comments

Comments
 (0)