Skip to content

ftp_version: Various improvements#21378

Open
g0tmi1k wants to merge 9 commits intorapid7:masterfrom
g0tmi1k:ftp_version
Open

ftp_version: Various improvements#21378
g0tmi1k wants to merge 9 commits intorapid7:masterfrom
g0tmi1k:ftp_version

Conversation

@g0tmi1k
Copy link
Copy Markdown
Contributor

@g0tmi1k g0tmi1k commented Apr 26, 2026

This PR covers:

  • Cleaning up the banner
    • Before: 220 (vsFTPd 2.3.4)\x0d\x0a
    • After: 220 (vsFTPd 2.3.4)
  • Updating module metadata (adding notes, improve description)
  • Add report_note & report_host
  • Clean up options (removed un-used vars)

Before

[*] Connected to the database specified in the YAML file
[*] Connected to msf. Connection type: postgresql. Connection name: OYGIkFxA.
[*] Deleted workspace: default
[*] Recreated the default workspace
VERBOSE => true
RHOSTS => 10.0.0.10
LHOST => tap0
msf >
msf > use ftp_version

Matching Modules
================

   #  Name                               Disclosure Date  Rank    Check  Description
   -  ----                               ---------------  ----    -----  -----------
   0  auxiliary/scanner/ftp/ftp_version  .                normal  No     FTP Version Scanner


Interact with a module by name or index. For example info 0, use 0 or use auxiliary/scanner/ftp/ftp_version

[*] Using auxiliary/scanner/ftp/ftp_version
msf auxiliary(scanner/ftp/ftp_version) >
msf auxiliary(scanner/ftp/ftp_version) > use ftp_version

Matching Modules
================

   #  Name                               Disclosure Date  Rank    Check  Description
   -  ----                               ---------------  ----    -----  -----------
   0  auxiliary/scanner/ftp/ftp_version  .                normal  No     FTP Version Scanner


Interact with a module by name or index. For example info 0, use 0 or use auxiliary/scanner/ftp/ftp_version

[*] Using auxiliary/scanner/ftp/ftp_version
msf auxiliary(scanner/ftp/ftp_version) >
msf auxiliary(scanner/ftp/ftp_version) > options

Module options (auxiliary/scanner/ftp/ftp_version):

   Name     Current Setting      Required  Description
   ----     ---------------      --------  -----------
   FTPPASS  mozilla@example.com  no        The password for the specified username
   FTPUSER  anonymous            no        The username to authenticate as
   RHOSTS   10.0.0.10            yes       The target host(s), see https://docs.metasploit.com/docs/using-metasploit/basics/using-metasploit.html
   RPORT    21                   yes       The target port (TCP)
   THREADS  1                    yes       The number of concurrent threads (max one per host)


View the full module info with the info, or info -d command.

msf auxiliary(scanner/ftp/ftp_version) >
msf auxiliary(scanner/ftp/ftp_version) > run
[*] 10.0.0.10:21          - Connecting to FTP server 10.0.0.10:21...
[*] 10.0.0.10:21          - Connected to target FTP server.
[+] 10.0.0.10:21          - FTP Banner: '220 (vsFTPd 2.3.4)\x0d\x0a'
[*] 10.0.0.10:21          - Scanned 1 of 1 hosts (100% complete)
[*] Auxiliary module execution completed
msf auxiliary(scanner/ftp/ftp_version) > workspace -v

Workspaces
==========

current  name     hosts  services  vulns  creds  loots  notes
-------  ----     -----  --------  -----  -----  -----  -----
*        default  1      1         0      0      0      0

msf auxiliary(scanner/ftp/ftp_version) >
msf auxiliary(scanner/ftp/ftp_version) > services
Services
========

host       port  proto  name  state  info                        resource  parents
----       ----  -----  ----  -----  ----                        --------  -------
10.0.0.10  21    tcp    ftp   open   220 (vsFTPd 2.3.4)\x0d\x0a  {}

msf auxiliary(scanner/ftp/ftp_version) >

After

msf auxiliary(scanner/ftp/ftp_version) > git checkout ftp_version
[*] exec: git checkout ftp_version

Switched to branch 'ftp_version'
Your branch is up to date with 'origin/ftp_version'.
msf auxiliary(scanner/ftp/ftp_version) > reload
[*] Reloading module...
msf auxiliary(scanner/ftp/ftp_version) >
msf auxiliary(scanner/ftp/ftp_version) > run
[*] 10.0.0.10:21          - Connecting to FTP server 10.0.0.10:21...
[*] 10.0.0.10:21          - Connected to target FTP server.
[+] 10.0.0.10:21          - FTP Banner: '220 (vsFTPd 2.3.4)'
[*] 10.0.0.10:21          - Scanned 1 of 1 hosts (100% complete)
[*] Auxiliary module execution completed
msf auxiliary(scanner/ftp/ftp_version) >
msf auxiliary(scanner/ftp/ftp_version) > services
Services
========

host       port  proto  name  state  info                resource  parents
----       ----  -----  ----  -----  ----                --------  -------
10.0.0.10  21    tcp    ftp   open   220 (vsFTPd 2.3.4)  {}

msf auxiliary(scanner/ftp/ftp_version) >

Comment thread modules/auxiliary/scanner/ftp/ftp_version.rb Outdated
@g0tmi1k g0tmi1k force-pushed the ftp_version branch 5 times, most recently from 3d18f78 to 78166c6 Compare April 27, 2026 13:41
@g0tmi1k
Copy link
Copy Markdown
Contributor Author

g0tmi1k commented Apr 27, 2026

msf auxiliary(scanner/ftp/ftp_version) > reload
[*] Reloading module...
msf auxiliary(scanner/ftp/ftp_version) >
msf auxiliary(scanner/ftp/ftp_version) > options

Module options (auxiliary/scanner/ftp/ftp_version):

   Name     Current Setting  Required  Description
   ----     ---------------  --------  -----------
   RHOSTS   10.0.0.10        yes       The target host(s), see https://docs.metasploit.com/docs/using-metasploit/basics/using-metasploit.html
   RPORT    21               yes       The target port (TCP)
   THREADS  1                yes       The number of concurrent threads (max one per host)


View the full module info with the info, or info -d command.

msf auxiliary(scanner/ftp/ftp_version) >
msf auxiliary(scanner/ftp/ftp_version) > run
[*] 10.0.0.10:21          - Connecting to FTP server 10.0.0.10:21...
[*] 10.0.0.10:21          - Connected to target FTP server.
[+] 10.0.0.10:21          - FTP Banner: vsFTPd 2.3.4
[*] 10.0.0.10:21          - Scanned 1 of 1 hosts (100% complete)
[*] Auxiliary module execution completed
msf auxiliary(scanner/ftp/ftp_version) >
msf auxiliary(scanner/ftp/ftp_version) > set RPORT 2121
RPORT => 2121
msf auxiliary(scanner/ftp/ftp_version) > run
[*] 10.0.0.10:2121        - Connecting to FTP server 10.0.0.10:2121...
[*] 10.0.0.10:2121        - Connected to target FTP server.
[+] 10.0.0.10:2121        - FTP Banner: ProFTPD 1.3.1 Server (Debian) [::ffff:10.0.0.10]
[*] 10.0.0.10:2121        - Scanned 1 of 1 hosts (100% complete)
[*] Auxiliary module execution completed
msf auxiliary(scanner/ftp/ftp_version) >
msf auxiliary(scanner/ftp/ftp_version) > workspace -v

Workspaces
==========

current  name     hosts  services  vulns  creds  loots  notes
-------  ----     -----  --------  -----  -----  -----  -----
*        default  1      2         0      0      0      0

msf auxiliary(scanner/ftp/ftp_version) > services
Services
========

host       port  proto  name  state  info                                              resource  parents
----       ----  -----  ----  -----  ----                                              --------  -------
10.0.0.10  21    tcp    ftp   open   vsFTPd 2.3.4                                      {}
10.0.0.10  2121  tcp    ftp   open   ProFTPD 1.3.1 Server (Debian) [::ffff:10.0.0.10]  {}

msf auxiliary(scanner/ftp/ftp_version) >

@g0tmi1k g0tmi1k force-pushed the ftp_version branch 6 times, most recently from 116233e to 0cf2482 Compare April 30, 2026 11:58
@g0tmi1k g0tmi1k requested a review from adfoster-r7 May 4, 2026 11:40
@g0tmi1k g0tmi1k changed the title ftp_version: Strip banner ftp_version: Various improvements May 4, 2026
@g0tmi1k g0tmi1k force-pushed the ftp_version branch 6 times, most recently from 57c88ca to 896421d Compare May 5, 2026 17:46
@g0tmi1k
Copy link
Copy Markdown
Contributor Author

g0tmi1k commented May 5, 2026

This now needs #21380 to be merged ahead of time.

@g0tmi1k g0tmi1k force-pushed the ftp_version branch 6 times, most recently from c2f518c to ef71838 Compare May 6, 2026 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

3 participants