Skip to content

Commit 3a271e7

Browse files
committed
Fix undefined method error
[FixRM rapid7#8342]
1 parent 8806e76 commit 3a271e7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

modules/auxiliary/scanner/http/axis_local_file_include.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,12 @@ def get_credentials(uri)
8484

8585
print_status("#{target_url} - Apache Axis - Dumping administrative credentials")
8686

87-
if (res and res.code == 200)
87+
if res.nil?
88+
print_error("Connection timed out")
89+
return
90+
end
91+
92+
if (res.code == 200)
8893
if res.body.to_s.match(/axisconfig/)
8994

9095
res.body.scan(/parameter\sname=\"userName\">([^\s]+)</)

0 commit comments

Comments
 (0)