December 2017
Intermediate to advanced
860 pages
16h 1m
English
The skeleton for a Metasploit modules is fairly simple. We can see the universal header section in the following code:
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 generally starts by including the important libraries with 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 in place of MetasploitModule, which ...
Read now
Unlock full access