2007-02-25 21:25:17 +00:00
|
|
|
##
|
2010-05-03 17:13:09 +00:00
|
|
|
# This file is part of the Metasploit Framework and may be subject to
|
2007-02-25 21:25:17 +00:00
|
|
|
# redistribution and commercial restrictions. Please see the Metasploit
|
2012-10-09 02:29:55 +00:00
|
|
|
# web site for more information on licensing and terms of use.
|
|
|
|
# http://metasploit.com/
|
2007-02-25 21:25:17 +00:00
|
|
|
##
|
|
|
|
|
|
|
|
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.
|
|
|
|
#
|
|
|
|
###
|
2012-10-09 02:23:38 +00:00
|
|
|
class Metasploit4 < Msf::Auxiliary
|
2007-02-25 21:25:17 +00:00
|
|
|
|
2013-07-08 16:23:18 +00:00
|
|
|
def initialize(info={})
|
|
|
|
super(update_info(info,
|
2007-02-25 21:25:17 +00:00
|
|
|
'Name' => 'Sample Auxiliary Module',
|
|
|
|
'Description' => 'Sample Auxiliary Module',
|
2013-07-08 16:23:18 +00:00
|
|
|
'Author' => ['hdm'],
|
2007-02-25 21:25:17 +00:00
|
|
|
'License' => MSF_LICENSE,
|
|
|
|
'Actions' =>
|
|
|
|
[
|
|
|
|
['Default Action'],
|
|
|
|
['Another Action']
|
|
|
|
]
|
2013-07-08 16:23:18 +00:00
|
|
|
))
|
2007-02-25 21:25:17 +00:00
|
|
|
|
|
|
|
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
|
2010-05-03 17:13:09 +00:00
|
|
|
|
2007-02-25 21:25:17 +00:00
|
|
|
end
|