Skip to content

Scanner module status prints reference rhost, but rhost is not a default or advanced option. #6989

@bwatters-r7

Description

@bwatters-r7

Steps to Reproduce

  • open msfconsole
  • use auxiliary/scanner/ftp/ftp_version
  • set rhosts 192.168.33.120-192.168.33.129
    (You do not actually have to have any targets up)
  • run
  • verify that the scanner works as intended
  • `show options``
  • verify that rhost is not a default option
  • `show advanced``
  • verify that rhost is not an advanced option
  • set rhost 9.9.9.9
  • run
  • verify that the ip address you entered for rhost is used at the start of each line

Test Run

msf > use auxiliary/scanner/ftp/ftp_version 
msf auxiliary(ftp_version) > set rhosts 192.168.33.120-192.168.33.129
rhosts => 192.168.33.120-192.168.33.129
msf auxiliary(ftp_version) > run

[*] Scanned  1 of 10 hosts (10% complete)
[*] Scanned  2 of 10 hosts (20% complete)
[*] Scanned  3 of 10 hosts (30% complete)
[*] Scanned  4 of 10 hosts (40% complete)
[*] Scanned  5 of 10 hosts (50% complete)
[*] Scanned  6 of 10 hosts (60% complete)
[*] Scanned  7 of 10 hosts (70% complete)
[*] Scanned  8 of 10 hosts (80% complete)
[*] Scanned  9 of 10 hosts (90% complete)
[*] Scanned 10 of 10 hosts (100% complete)
[*] Auxiliary module execution completed
msf auxiliary(ftp_version) > show 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   192.168.33.120-192.168.33.129  yes       The target address range or CIDR identifier
   RPORT    21                             yes       The target port
   THREADS  1                              yes       The number of concurrent threads

msf auxiliary(ftp_version) > show advanced

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

   Name                 Current Setting  Required  Description
   ----                 ---------------  --------  -----------
   CHOST                                 no        The local client address
   CPORT                                 no        The local client port
   ConnectTimeout       10               yes       Maximum number of seconds to establish a TCP connection
   FTPDEBUG             false            no        Whether or not to print verbose debug statements
   FTPTimeout           16               yes       The number of seconds to wait for a reply from an FTP command
   Proxies                               no        A proxy chain of format type:host:port[,type:host:port][...]
   SSL                  false            no        Negotiate SSL/TLS for outgoing connections
   SSLCipher                             no        String for SSL cipher - "DHE-RSA-AES256-SHA" or "ADH"
   SSLVerifyMode        PEER             no        SSL verification method (Accepted: CLIENT_ONCE, FAIL_IF_NO_PEER_CERT, NONE, PEER)
   SSLVersion           Auto             no        Specify the version of SSL/TLS to be used (Auto, TLS and SSL23 are auto-negotiate) (Accepted: Auto, SSL2, SSL3, SSL23, TLS, TLS1, TLS1.1, TLS1.2)
   ShowProgress         true             yes       Display progress messages during a scan
   ShowProgressPercent  10               yes       The interval in percent that progress should be shown
   VERBOSE              false            no        Enable detailed status messages
   WORKSPACE                             no        Specify the workspace for this module

msf auxiliary(ftp_version) > set rhost 9.9.9.9
rhost => 9.9.9.9
msf auxiliary(ftp_version) > run

[*] 9.9.9.9:21            - Scanned  1 of 10 hosts (10% complete)
[*] 9.9.9.9:21            - Scanned  2 of 10 hosts (20% complete)
[*] 9.9.9.9:21            - Scanned  3 of 10 hosts (30% complete)
[*] 9.9.9.9:21            - Scanned  4 of 10 hosts (40% complete)
[*] 9.9.9.9:21            - Scanned  5 of 10 hosts (50% complete)
[*] 9.9.9.9:21            - Scanned  6 of 10 hosts (60% complete)
[*] 9.9.9.9:21            - Scanned  7 of 10 hosts (70% complete)
[*] 9.9.9.9:21            - Scanned  8 of 10 hosts (80% complete)
[*] 9.9.9.9:21            - Scanned  9 of 10 hosts (90% complete)
[*] 9.9.9.9:21            - Scanned 10 of 10 hosts (100% complete)
[*] Auxiliary module execution completed
msf auxiliary(ftp_version) > 

@wvu-r7 suggested that this was in relation to #6526

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions