Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'msf/core'
- class Metasploit3 < Msf::Auxiliary
- def initialize
- super(
- 'Name' => 'Auxiliary module example.',
- 'Version' => '$Revision: 0 $',
- 'Description' => 'Our first Measploit Module.',
- 'Author' =>
- [
- 'Roi Mallo',
- 'Jesús Pérez'
- ],
- 'License' => MSF_LICENSE
- )
- register_options(
- [
- OptString.new('GREETING', [ true, "Words to say.", "Hi world! ;)" ])
- ], self.class)
- end
- def run()
- puts datastore['GREETING']
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement