metasploit-framework/modules/auxiliary/test.rb

38 lines
691 B
Ruby
Raw Normal View History

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