cisco交換機、路由器破解密碼

                                                                cisco交換機、路由器破解密碼

1. 交換機破解密碼

         1 啓動長按交換機的mode鍵,進入xmodem模式:

image.png

 

         2 輸入flash_init 命令 初始化Flash

         3)輸入dir flash 查看配置文件

         image.png

 

         4)使用 rename flash:config.text flash:config.old  重命名config.text文件

         5)輸入boot 重啓交換機

         6) 重啓後,進入特權模式輸入rename flash:config.old flash:config.text  修改回來

         7)再次輸入:copy flash:config.text system:running-config 命令恢復原來配置

         8)修改密碼: enable  password   xxx

         9copy running-config startup-config

 

 

2.      路由器密碼破解:

         1)路由器使用conson線連接後,開機同時按鍵盤上的ctrl+ Break(中斷)鍵後,會彈出以下窗口 自動進入rommon模式

 

image.png

 

         2)修改配置寄存器的值並重啓

 

rommon 2 > ?

boot       boot up an external process

confreg    configuration register utility

dir        list files in file system

help       monitor builtin command help

reset      system reset

set        display the monitor variables

tftpdnld   tftp image download

unset       unset a monitor variable

rommon 3 > confreg 0x2142

rommon 4 > boot

 

         3 修改特權模式的密碼後,恢復配置寄存器的值(路由器:0x2102

Router(config)#enable password 123

Router(config)#config-register 0x2102           修改爲正常值

Router#copy running-config startup-config      保存到啓動配置文件中

 

 

 

 

 

cisco 備份還原配置文件文獻

https://www.cisco.com/c/en/us/support/docs/ios-nx-os-software/ios-software-releases-122-mainline/46741-backup-config.html?referring_site=RE&pos=2&page=https://www.cisco.com/c/en/us/support/docs/routers/10000-series-routers/48700-tftp-server.html


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章