Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Some knowledge points about password cracking of switch and router (Danet)

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Switch password cracking:

Essence: when the switch looks up the name of the configuration file during startup, it cannot find the file with the corresponding file name (this file is: config.text)

Cracking steps:

1. Power up the device and keep pressing the mode key all the time, and the device enters the switch:

Mode.

2. Enter the flash_ init command in switch: mode

3. Find, change, and verify that the profile name has been modified to another name

Switch: dir

Switch: rename {source-file} {destination-file}

For example: rename flash: config.text flash:111

Switch: dir / / verify that the file name has been changed successfully

4. Restart the device: switch: boot / / restart the device in the romm mode of the switch

You can change the switch password.

5. Save the configuration

Router password cracking:

The core of cracking the router password is to modify the configuration register. The default value is 0x2102, which means that during the startup process of the device, it is necessary to find and load the startup configuration file-startup-config. In order to achieve password cracking, the value of the register needs to be changed to 0x2142, in order to skip the step of "find and load configuration file" during startup.

Cracking steps:

Power up the device and keep pressing the key combination: ctrl + break, and the device will enter romm mode (security mode similar to PC) and change the configuration register value to 0x2142 and restart the device

Romm1 > confreg 0x2142 / / modify the configuration register

Romm2 > Omax r 0x2142 / / modify the configuration register

Romm3 >? / the help command is still supported in romm mode -?

Romm4 > reset / / restart the device in romm mode

After the device is rebooted, enter the "system dialog configuration" mode, select-no, and then enter "user mode" to change the router password.

Note:

The startup configuration file (startup- config) is a command that exists in nvram to view files stored on network devices:

Dir all- filesystem

Delete the file:

Delete flash:\ xxxxxxx.bin / / Delete a specific file under a specific path

When deleting a startup configuration file, you typically use:

Erase nvram: / / erase all files in nvram

Recently, I forgot to crack the switch and routing password. I hope it will be of some help to friends in the same situation!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report