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 07f8eb6 commit 5fe2f96Copy full SHA for 5fe2f96
modules/auxiliary/scanner/http/rails_xml_yaml_scanner.rb
@@ -35,16 +35,12 @@ def initialize(info={})
35
36
def send_probe(ptype, pdata)
37
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
+ res = send_request_cgi({
+ 'uri' => datastore['URIPATH'] || "/",
+ 'method' => 'POST',
+ 'ctype' => 'application/xml',
+ 'data' => odata
+ }, 25)
48
end
49
50
def run_host(ip)
0 commit comments