Skip to content

Commit 5fe2f96

Browse files
author
jvazquez-r7
committed
this rescue is done in the mixin
1 parent 07f8eb6 commit 5fe2f96

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

modules/auxiliary/scanner/http/rails_xml_yaml_scanner.rb

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,12 @@ def initialize(info={})
3535

3636
def send_probe(ptype, pdata)
3737
odata = %Q^<?xml version="1.0" encoding="UTF-8"?>\n<probe type="#{ptype}"><![CDATA[\n#{pdata}\n]]></probe>^
38-
begin
39-
res = send_request_cgi({
40-
'uri' => datastore['URIPATH'] || "/",
41-
'method' => 'POST',
42-
'ctype' => 'application/xml',
43-
'data' => odata
44-
}, 25)
45-
rescue ::Timeout::Error
46-
nil
47-
end
38+
res = send_request_cgi({
39+
'uri' => datastore['URIPATH'] || "/",
40+
'method' => 'POST',
41+
'ctype' => 'application/xml',
42+
'data' => odata
43+
}, 25)
4844
end
4945

5046
def run_host(ip)

0 commit comments

Comments
 (0)