June 2019
Beginner to intermediate
660 pages
14h 30m
English
The skeleton for Metasploit modules is reasonably straightforward. We can see the universal header section in the code shown here:
require 'msf/core'
class MetasploitModule < Msf::Auxiliary
def initialize(info = {})
super(update_info(info,
'Name' => 'Module name',
'Description' => %q{
Say something that the user might want to know.
},
'Author' => [ 'Name' ],
'License' => MSF_LICENSE
))
end
def run
# Main function
end
end
A module starts by including the necessary libraries using the require keyword, which in the preceding code is followed by the msf/core libraries. Thus, it includes the core libraries from the /msf directory.
The next major thing is to define the class type that is to specify the kind of ...
Read now
Unlock full access