Libraries and functions

Let's see some important functions from the libraries that are used in this module, as follows:

Functions

Library file

Usage

run_host

/lib/msf/core/auxiliary/scanner.rb

The main method which will run once for each host.

connect

/lib/msf/core/exploit/ftp.rb

This function is responsible for initializing a connection to the host and grabbing the banner that it stores in the banner variable automatically.

report_service

/lib/msf/core/auxiliary/report.rb

This method is used specifically for adding a service and its associated details into the database.

 

We define the run_host method, which serves as the main method. The connect function will be responsible for initializing a connection ...

Get Mastering Metasploit - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.