vprint_status mod

unstable
nmonkee 2013-03-25 20:18:14 +00:00
parent 5be98593a9
commit 121c75f646
1 changed files with 3 additions and 5 deletions

View File

@ -83,11 +83,9 @@ class Metasploit4 < Msf::Auxiliary
'Content-Type' => 'text/xml; charset=UTF-8',}
}, 45)
if res
if datastore['VERBOSE'] == true
print_status("[SAP] #{rhost}:#{rport} - Error code: " + res.code.to_s)
print_status("[SAP] #{rhost}:#{rport} - Error title: " + res.message.to_s)
print_status("[SAP] #{rhost}:#{rport} - Error message: " + res.body.to_s)
end
vprint_status("[SAP] #{rhost}:#{rport} - Error code: " + res.code.to_s)
vprint_status("[SAP] #{rhost}:#{rport} - Error title: " + res.message.to_s)
vprint_status("[SAP] #{rhost}:#{rport} - Error message: " + res.body.to_s)
end
rescue ::Rex::ConnectionError
print_error("#{rhost}:#{rport} - Unable to connect")