2007-02-18 00:10:39 +00:00
|
|
|
##
|
|
|
|
# $Id:$
|
|
|
|
##
|
|
|
|
|
|
|
|
##
|
|
|
|
# This file is part of the Metasploit Framework and may be subject to
|
|
|
|
# redistribution and commercial restrictions. Please see the Metasploit
|
|
|
|
# Framework web site for more information on licensing and terms of use.
|
|
|
|
# http://metasploit.com/projects/Framework/
|
|
|
|
##
|
|
|
|
|
|
|
|
|
2006-04-27 05:16:03 +00:00
|
|
|
require 'msf/core'
|
|
|
|
|
|
|
|
module Msf
|
|
|
|
|
|
|
|
class Auxiliary::Test < Msf::Auxiliary
|
|
|
|
|
|
|
|
def initialize
|
|
|
|
super(
|
|
|
|
'Name' => 'Simple Auxiliary Module Tester',
|
|
|
|
'Version' => '$Revision$',
|
|
|
|
'Description' => 'Simple Auxiliary Module Tester',
|
|
|
|
'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
|
|
|
|
|
|
|
|
end
|