Skip to content

Commit d8086a2

Browse files
committed
vprint_status mod
1 parent e840578 commit d8086a2

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

modules/auxiliary/scanner/sap/sap_soap_xmla_bw_smb_relay.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,9 @@ def run_host(ip)
7171
'Content-Type' => 'text/xml; charset=UTF-8',}
7272
}, 45)
7373
if res
74-
if datastore['VERBOSE'] == true
75-
print_status("[SAP] #{rhost}:#{rport} - Error code: " + res.code.to_s)
76-
print_status("[SAP] #{rhost}:#{rport} - Error title: " + res.message.to_s)
77-
print_status("[SAP] #{rhost}:#{rport} - Error message: " + res.body.to_s)
78-
end
74+
vprint_status("[SAP] #{rhost}:#{rport} - Error code: " + res.code.to_s)
75+
vprint_status("[SAP] #{rhost}:#{rport} - Error title: " + res.message.to_s)
76+
vprint_status("[SAP] #{rhost}:#{rport} - Error message: " + res.body.to_s)
7977
end
8078
rescue ::Rex::ConnectionError
8179
print_error("#{rhost}:#{rport} - Unable to connect")

0 commit comments

Comments
 (0)