46 lines
1.1 KiB
Ruby
46 lines
1.1 KiB
Ruby
##
|
|
# This file is part of the Metasploit Framework and may be subject to
|
|
# redistribution and commercial restrictions. Please see the Metasploit
|
|
# web site for more information on licensing and terms of use.
|
|
# http://metasploit.com/
|
|
##
|
|
|
|
require 'msf/core'
|
|
|
|
###
|
|
#
|
|
# This sample auxiliary module simply displays the selected action and
|
|
# registers a custom command that will show up when the module is used.
|
|
#
|
|
###
|
|
class Metasploit4 < Msf::Auxiliary
|
|
|
|
def initialize(info={})
|
|
super(update_info(info,
|
|
'Name' => 'Sample Auxiliary Module',
|
|
'Description' => 'Sample Auxiliary Module',
|
|
'Author' => ['hdm'],
|
|
'License' => MSF_LICENSE,
|
|
'Actions' =>
|
|
[
|
|
['Default Action'],
|
|
['Another Action']
|
|
]
|
|
))
|
|
|
|
end
|
|
|
|
def run
|
|
print_status("Running the simple auxiliary module with action #{action.name}")
|
|
end
|
|
|
|
def auxiliary_commands
|
|
return { "aux_extra_command" => "Run this auxiliary test commmand" }
|
|
end
|
|
|
|
def cmd_aux_extra_command(*args)
|
|
print_status("Running inside aux_extra_command()")
|
|
end
|
|
|
|
end
|