Use logging rather than printing

This commit is contained in:
Ashley Donaldson 2021-09-17 09:48:34 +10:00
parent dba6ce56bc
commit 68a074231e
No known key found for this signature in database
GPG Key ID: 70277622B54D3BCE
1 changed files with 3 additions and 3 deletions

View File

@ -274,7 +274,7 @@ module Msf::Sessions
msf_channel = TcpServerChannel.new(params, self, params.localhost, remote_port)
@server_channels[key] = msf_channel
else
print_error("Remote forwarding failed on #{params.localhost}:#{params.localport}")
elog("Remote forwarding failed on #{params.localhost}:#{params.localport}")
end
completed_event.set
end
@ -296,9 +296,9 @@ module Msf::Sessions
if success
key = [host, port]
@server_channels.delete(key)
print_status("Reverse SSH listener on #{host}:#{port} stopped")
ilog("Reverse SSH listener on #{host}:#{port} stopped")
else
print_error("Could not stop reverse listener on #{host}:#{port}")
elog("Could not stop reverse listener on #{host}:#{port}")
end
completed_event.set
end