Module Msf::Exploit::Remote::Ftp
In: lib/msf/core/exploit/ftp.rb

This module exposes methods that may be useful to exploits that deal with servers that speak the File Transfer Protocol (FTP).

Methods

Included Modules

Exploit::Remote::Tcp

Attributes

banner  [RW]  This attribute holds the banner that was read in after a successful call to connect or connect_login.

Public Class methods

Creates an instance of an FTP exploit module.

Public Instance methods

This method establishes an FTP connection to host and port specified by the RHOST and RPORT options, respectively. After connecting, the banner message is read in and stored in the ‘banner’ attribute.

Connect and login to the remote FTP server using the credentials that have been supplied in the exploit options.

Returns the user string from the ‘FTPPASS’ option.

This method transmits a FTP command and does not wait for a response

This method transmits a FTP command and waits for a response. If one is received, it is returned to the caller.

This method sends one command with zero or more parameters

This method completes user authentication by sending the supplied password using the FTP ‘PASS <pass>’ command.

This method logs in as the supplied user by transmitting the FTP ‘USER <user>’ command.

Returns the user string from the ‘FTPUSER’ option.

[Validate]