Skip to content

Commit da6a99d

Browse files
committed
vprint_status mod
1 parent 01ee30e commit da6a99d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

modules/auxiliary/scanner/sap/sap_soap_rfc_pfl_check_os_file_existence_smb_relay.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,9 @@ def run_host(ip)
7979
'Content-Type' => 'text/xml; charset=UTF-8',}
8080
}, 45)
8181
if res
82-
if datastore['VERBOSE'] == true
83-
print_status("[SAP] #{rhost}:#{rport} - Error code: " + res.code.to_s)
84-
print_status("[SAP] #{rhost}:#{rport} - Error title: " + res.message.to_s)
85-
print_status("[SAP] #{rhost}:#{rport} - Error message: " + res.body.to_s)
86-
end
82+
vprint_status("[SAP] #{rhost}:#{rport} - Error code: " + res.code.to_s)
83+
vprint_status("[SAP] #{rhost}:#{rport} - Error title: " + res.message.to_s)
84+
vprint_status("[SAP] #{rhost}:#{rport} - Error message: " + res.body.to_s)
8785
end
8886
rescue ::Rex::ConnectionError
8987
print_error("#{rhost}:#{rport} - Unable to connect")

0 commit comments

Comments
 (0)