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

@ -27,7 +27,7 @@ class MetasploitModule < Msf::Auxiliary
'References' => [ 'References' => [
[ 'URL', 'https://twitter.com/nitr0usmx/status/740673507684679680/photo/1' ], [ 'URL', 'https://twitter.com/nitr0usmx/status/740673507684679680/photo/1' ],
[ 'URL', 'https://github.com/vrtadmin/clamav-faq/raw/master/manual/clamdoc.pdf' ] [ 'URL', 'https://github.com/vrtadmin/clamav-faq/raw/master/manual/clamdoc.pdf' ]
], ],
'DisclosureDate' => 'Jun 8 2016', 'DisclosureDate' => 'Jun 8 2016',
'Actions' => [ 'Actions' => [
[ 'VERSION', 'Description' => 'Get Version Information' ], [ 'VERSION', 'Description' => 'Get Version Information' ],
@ -36,19 +36,26 @@ class MetasploitModule < Msf::Auxiliary
'DefaultAction' => 'VERSION' 'DefaultAction' => 'VERSION'
) )
) )
register_options([ register_options(
Opt::RPORT(3310) [
], self.class) Opt::RPORT(3310)
], self.class
)
end end
def run_host(ip) def run_host(_ip)
begin begin
connect connect
sock.put(action.name + "\n") sock.put(action.name + "\n")
print_good(sock.get_once) 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 rescue EOFError
print_bad('Successfully shut down ClamAV Service') print_good('Successfully shut down ClamAV Service')
ensure ensure
disconnect disconnect
end end