原理:
路由器密碼破解依據改變路由器寄存器值,使路由器在啓動過程中不再讀取配置文件,進入出廠設置,從而跳過密碼封鎖,在進入系統後,把配置文件調到內存中,修改密碼和其他信息後,保存,使自己要求的配置生效。
PC機直接用CONS線與路由器連接,打開PC機的超級終端,開始—程序—附件—通訊—超級終端。然後重新啓動路由器,在路由器重啓的過程中,按住CTRL+BREAK
命令格式如下:
1、修改寄存器值
Rommon1>confreg 0x42
Rommon2>reset
2、再次重啓,突破密碼封鎖
Router> en
將配置文件調入內存
Router>copy start run
3、修改配置文件
Router(conf ig)#enable secret admin
Router(conf ig)#line console 0
Router(conf ig-line)#passwor cisco
Router(conf ig-line)#login
Router(conf ig)#line vty 0 4
Router(conf ig-line)#password test
Router(conf ig-line)#login
還有什麼要修改的,那就要看自己的需要了。
4、再次修改寄存器值,使之恢復到正常的啓動狀態
Router(conf ig)#config-register 0x2102
5、保存
Router#copy run start
這樣就成功地修改了密碼,以後就不用詢問別人了