Advertisement
Guest User

Untitled

a guest
Mar 14th, 2012
2,638
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.46 KB | None | 0 0
  1. require 'msf/core'
  2.  
  3. class Metasploit3 < Msf::Auxiliary
  4.  
  5. def initialize
  6.     super(
  7.     'Name'   => 'Auxiliary module example.',
  8.     'Version'    => '$Revision: 0 $',
  9.     'Description'    => 'Our first Measploit Module.',
  10.     'Author' =>
  11.     [
  12.     'Roi Mallo',
  13.     'Jesús Pérez'
  14.     ],
  15.     'License' => MSF_LICENSE
  16.     )
  17.  
  18.     register_options(
  19.     [
  20.     OptString.new('GREETING', [ true, "Words to say.", "Hi world! ;)" ])
  21.     ], self.class)
  22. end
  23.  
  24. def run()
  25.     puts datastore['GREETING']
  26. end
  27.  
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement