Skip to content

Commit f66ffbf

Browse files
committed
vprint_status mod
1 parent f92f59b commit f66ffbf

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

modules/auxiliary/scanner/sap/sap_soap_rfc_eps_delete_file_smb_relay.rb

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

0 commit comments

Comments
 (0)