We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2597c71 commit 0561928Copy full SHA for 0561928
modules/auxiliary/scanner/http/majordomo2_directory_traversal.rb
@@ -71,6 +71,11 @@ def run_host(ip)
71
'uri' => uri + payload,
72
}, 25)
73
74
+ if res.nil?
75
+ print_error("Connection timed out")
76
+ return
77
+ end
78
+
79
print_status("#{rhost}:#{rport} Trying URL " + payload )
80
81
if (res and res.code == 200 and res.body)
@@ -93,6 +98,7 @@ def run_host(ip)
93
98
print_error("#{rhost}:#{rport} No HTML was returned")
94
99
end
95
100
else
101
+ # if res is nil, we hit this
96
102
print_error("#{rhost}:#{rport} Unrecognized #{res.code} response")
97
103
104
i += 1;
0 commit comments