Skip to content

Commit ae8c40c

Browse files
committed
Fix undefined method error
[FixRM rapid7#8329]
1 parent 42a7766 commit ae8c40c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

modules/auxiliary/scanner/http/vmware_server_dir_trav.rb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,14 @@ def run_host(target_host)
5252
'uri' => trav+file,
5353
'version' => '1.1',
5454
'method' => 'GET'
55-
}, 25)
55+
}, 25)
5656

57-
if (res and res.code == 200)
57+
if res.nil?
58+
print_error("Connection timed out")
59+
return
60+
end
61+
62+
if res.code == 200
5863
#print_status("Output Of Requested File:\n#{res.body}")
5964
print_status("#{target_host}:#{rport} appears vulnerable to VMWare Directory Traversal Vulnerability")
6065
report_vuln(

0 commit comments

Comments
 (0)