Skip to content

Commit

Permalink
this rescue is done in the mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
jvazquez-r7 committed Jan 9, 2013
1 parent 07f8eb6 commit 5fe2f96
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions modules/auxiliary/scanner/http/rails_xml_yaml_scanner.rb
Expand Up @@ -35,16 +35,12 @@ def initialize(info={})

def send_probe(ptype, pdata)
odata = %Q^<?xml version="1.0" encoding="UTF-8"?>\n<probe type="#{ptype}"><![CDATA[\n#{pdata}\n]]></probe>^
begin
res = send_request_cgi({
'uri' => datastore['URIPATH'] || "/",
'method' => 'POST',
'ctype' => 'application/xml',
'data' => odata
}, 25)
rescue ::Timeout::Error
nil
end
res = send_request_cgi({
'uri' => datastore['URIPATH'] || "/",
'method' => 'POST',
'ctype' => 'application/xml',
'data' => odata
}, 25)
end

def run_host(ip)
Expand Down

0 comments on commit 5fe2f96

Please sign in to comment.