Brocade Configuration Importer - Metasploit
This page contains detailed information about how to use the auxiliary/admin/networking/brocade_config metasploit module. For list of all metasploit modules, visit the Metasploit Module Library.
Module Overview
Name: Brocade Configuration Importer
Module: auxiliary/admin/networking/brocade_config
Source code: modules/auxiliary/admin/networking/brocade_config.rb
Disclosure date: -
Last modification time: 2020-09-22 02:56:51 +0000
Supported architecture(s): -
Supported platform(s): -
Target service / protocol: -
Target network port(s): 22
List of CVEs: -
This module imports a Brocade device configuration.
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
msf > use auxiliary/admin/networking/brocade_config
msf auxiliary(brocade_config) > show targets
... a list of targets ...
msf auxiliary(brocade_config) > set TARGET target-id
msf auxiliary(brocade_config) > show options
... show and set options ...
msf auxiliary(brocade_config) > exploit
Required Options
CONFIG: Path to configuration to import
RHOSTS: The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
Knowledge Base
Vulnerable Application
General Notes
This module imports a Brocade configuration file into the database.
This is similar to post/networking/gather/enum_brocade
only access isn't required,
and assumes you already have the file.
Example Config
Example files for import can be found on git, like this.
!
Startup-config data location is flash memory
!
Startup configuration:
!
ver 08.0.20T311
!
stack unit 1
module 1 icx6430-24-port-management-module
module 2 icx6430-sfp-4port-4g-module
!
!
!
!
!
!
!
!
aaa authentication web-server default local
aaa authentication login default local
enable password-display
enable super-user-password 8 $1$QP3H93Wm$uxYAs2HmAK0lQiP3ig5tm.
ip address 2.2.2.2 255.255.255.0 dynamic
ip dns server-address 1.1.1.1
ip default-gateway 1.1.1.1
!
username brocade password 8 $1$f/uxhovU$dST5lNskZCPQe/5QijULi0
username test password 8 $1$qKOcZizM$ySW1EyiUpKSHw9MT4PZ11.
snmp-server community 2 $MlVzZCFAbg== ro
snmp-server community 2 $U2kyXj1k rw
!
!
interface ethernet 1/1/1
speed-duplex 1000-full-master
!
interface ethernet 1/1/2
speed-duplex 1000-full-master
!
interface ethernet 1/1/3
speed-duplex 1000-full-master
!
interface ethernet 1/1/4
speed-duplex 1000-full-master
!
interface ethernet 1/1/5
speed-duplex 1000-full-master
!
interface ethernet 1/1/6
speed-duplex 1000-full-master
!
interface ethernet 1/1/7
speed-duplex 1000-full-master
!
interface ethernet 1/1/8
speed-duplex 1000-full-master
!
interface ethernet 1/1/9
speed-duplex 1000-full-master
!
interface ethernet 1/1/10
speed-duplex 1000-full-master
!
interface ethernet 1/1/11
speed-duplex 1000-full-master
!
interface ethernet 1/1/12
speed-duplex 1000-full-master
!
interface ethernet 1/1/13
speed-duplex 1000-full-master
!
interface ethernet 1/1/14
speed-duplex 1000-full-master
!
interface ethernet 1/1/15
speed-duplex 1000-full-master
!
interface ethernet 1/1/16
speed-duplex 1000-full-master
!
interface ethernet 1/1/17
speed-duplex 1000-full-master
!
interface ethernet 1/1/18
speed-duplex 1000-full-master
!
interface ethernet 1/1/19
speed-duplex 1000-full-master
!
interface ethernet 1/1/20
speed-duplex 1000-full-master
!
interface ethernet 1/1/21
speed-duplex 1000-full-master
!
interface ethernet 1/1/22
speed-duplex 1000-full-master
!
interface ethernet 1/1/23
speed-duplex 1000-full-master
no spanning-tree
!
interface ethernet 1/1/24
speed-duplex 1000-full-master
no spanning-tree
!
!
!
!
!
!
!
!
end
Verification Steps
- Have a Brocade configuration file
- Start
msfconsole
use auxiliary/admin/networking/brocade_config
set RHOST x.x.x.x
set CONFIG /tmp/file.config
run
Options
RHOST
Needed for setting services and items to. This is relatively arbitrary.
CONFIG
File path to the configuration file.
Scenarios
msf5 > wget https://raw.githubusercontent.com/h00die/MSF-Testing-Scripts/master/brocade_08.0.30hT311_ic_icx6430.conf -o /dev/null -O /tmp/brocade.conf
msf5 > use auxiliary/admin/networking/brocade_config
msf5 auxiliary(admin/networking/brocade_config) > set rhosts 127.0.0.1
rhosts => 127.0.0.1
msf5 auxiliary(admin/networking/brocade_config) > set config /tmp/brocade.conf
config => /tmp/brocade.conf
msf5 auxiliary(admin/networking/brocade_config) > run
[*] Running module against 127.0.0.1
[*] Importing config
[+] 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
[+] Config import successful
[*] Auxiliary module execution completed
Go back to menu.
Msfconsole Usage
Here is how the admin/networking/brocade_config auxiliary module looks in the msfconsole:
msf6 > use auxiliary/admin/networking/brocade_config
msf6 auxiliary(admin/networking/brocade_config) > show info
Name: Brocade Configuration Importer
Module: auxiliary/admin/networking/brocade_config
License: Metasploit Framework License (BSD)
Rank: Normal
Provided by:
h00die
Check supported:
No
Basic options:
Name Current Setting Required Description
---- --------------- -------- -----------
CONFIG yes Path to configuration to import
RHOSTS yes The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
RPORT 22 yes The target port
Description:
This module imports a Brocade device configuration.
Module Options
This is a complete list of options available in the admin/networking/brocade_config auxiliary module:
msf6 auxiliary(admin/networking/brocade_config) > show options
Module options (auxiliary/admin/networking/brocade_config):
Name Current Setting Required Description
---- --------------- -------- -----------
CONFIG yes Path to configuration to import
RHOSTS yes The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
RPORT 22 yes The target port
Advanced Options
Here is a complete list of advanced options supported by the admin/networking/brocade_config auxiliary module:
msf6 auxiliary(admin/networking/brocade_config) > show advanced
Module advanced options (auxiliary/admin/networking/brocade_config):
Name Current Setting Required Description
---- --------------- -------- -----------
VERBOSE false no Enable detailed status messages
WORKSPACE no Specify the workspace for this module
Auxiliary Actions
This is a list of all auxiliary actions that the admin/networking/brocade_config module can do:
msf6 auxiliary(admin/networking/brocade_config) > show actions
Auxiliary actions:
Name Description
---- -----------
Evasion Options
Here is the full list of possible evasion options supported by the admin/networking/brocade_config auxiliary module in order to evade defenses (e.g. Antivirus, EDR, Firewall, NIDS etc.):
msf6 auxiliary(admin/networking/brocade_config) > show evasion
Module evasion options:
Name Current Setting Required Description
---- --------------- -------- -----------
Go back to menu.
Error Messages
This module may fail with the following error messages:
Check for the possible causes from the code snippets below found in the module source code. This can often times help in identifying the root cause of the problem.
Brocade config file <CONFIG> does not exist!
Here is a relevant code snippet related to the "Brocade config file <CONFIG> does not exist!" error message:
32:
33: end
34:
35: def run
36: unless ::File.exist?(datastore['CONFIG'])
37: fail_with Failure::BadConfig, "Brocade config file #{datastore['CONFIG']} does not exist!"
38: end
39: brocade_config = ::File.open(datastore['CONFIG'], 'rb')
40: print_status('Importing config')
41: brocade_config_eater(datastore['RHOSTS'], datastore['RPORT'], brocade_config.read)
42: print_good('Config import successful')
Go back to menu.
Related Pull Requests
- #14202 Merged Pull Request: Implement the zeitwerk autoloader within lib/msf/core
- #14031 Merged Pull Request: F5 processor
- #13870 Merged Pull Request: Arista processor
- #13750 Merged Pull Request: Centralize networking
Go back to menu.
See Also
Check also the following modules related to this module:
- auxiliary/scanner/snmp/brocade_enumhash
- auxiliary/scanner/telnet/brocade_enable_login
- post/networking/gather/enum_brocade
- auxiliary/admin/networking/arista_config
- auxiliary/admin/networking/cisco_asa_extrabacon
- auxiliary/admin/networking/cisco_config
- auxiliary/admin/networking/cisco_dcnm_auth_bypass
- auxiliary/admin/networking/cisco_dcnm_download
- auxiliary/admin/networking/cisco_secure_acs_bypass
- auxiliary/admin/networking/cisco_vpn_3000_ftp_bypass
- auxiliary/admin/networking/f5_config
- auxiliary/admin/networking/juniper_config
- auxiliary/admin/networking/mikrotik_config
- auxiliary/admin/networking/ubiquiti_config
- auxiliary/admin/networking/vyos_config
- auxiliary/admin/misc/sercomm_dump_config
- auxiliary/gather/cisco_pvc2300_download_config
- auxiliary/gather/cisco_rv320_config
- auxiliary/scanner/http/epmp1000_dump_config
- auxiliary/admin/citrix/citrix_netscaler_config_decrypt
- auxiliary/admin/sap/sap_configservlet_exec_noauth
- auxiliary/scanner/http/binom3_login_config_pass_dump
- auxiliary/scanner/misc/dvr_config_disclosure
- auxiliary/scanner/snmp/cisco_config_tftp
- exploit/linux/http/op5_config_exec
- exploit/linux/local/vmware_alsa_config
- exploit/multi/browser/opera_configoverwrite
- exploit/multi/http/zenworks_configuration_management_upload
- exploit/unix/webapp/awstats_configdir_exec
- exploit/unix/webapp/freepbx_config_exec
- exploit/unix/webapp/phpmyadmin_config
- exploit/windows/http/sap_configservlet_exec_noauth
- post/linux/gather/enum_configs
Authors
- h00die
Version
This page has been produced using Metasploit Framework version 6.2.23-dev. For more modules, visit the Metasploit Module Library.
Go back to menu.