Updated logging, but still probably wrong.

bug/bundler_fix
Brendan Watters 2016-06-17 13:31:24 -05:00
parent 813777a8e4
commit c130495968
1 changed files with 14 additions and 7 deletions

View File

@ -36,19 +36,26 @@ class MetasploitModule < Msf::Auxiliary
'DefaultAction' => 'VERSION'
)
)
register_options([
register_options(
[
Opt::RPORT(3310)
], self.class)
], self.class
)
end
def run_host(ip)
def run_host(_ip)
begin
connect
sock.put(action.name + "\n")
print_good(sock.get_once)
rescue Rex::ConnectionRefused, Rex::ConnectionTimeout, Rex::HostUnreachable
rescue Rex::ConnectionRefused
ilog("Connection Refused")
rescue Rex::ConnectionTimeout
ilog("Connection Timeout")
rescue Rex::HostUnreachable
ilog("Host Unreachable")
rescue EOFError
print_bad('Successfully shut down ClamAV Service')
print_good('Successfully shut down ClamAV Service')
ensure
disconnect
end