破解密碼原則 只刪除密碼不破壞配置
1 重啓 路由器 按 ctrl + pause break 鍵 進入mini IOS
2 修改寄存器值改變啓動次序
rommon 1 > confreg 0x2142
3 在mini IOS下重啓路由
rommon 2 > reset
System Bootstrap, Version 12.1(3r)T2, RELEASE SOFTWARE (fc1)
Copyright (c) 2000 by cisco Systems, Inc.
cisco 2621 (MPC860) processor (revision 0x200) with 60416K/5120K bytes of memory
Self decompressing the image :
OK
Restricted Rights Legend
Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.
cisco Systems, Inc.
170 West Tasman Drive
San Jose, California 95134-1706
Cisco Internetwork Operating System Software
IOS (tm) C2600 Software (C2600-I-M), Version 12.2(28), RELEASE SOFTWARE (fc5)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2005 by cisco Systems, Inc.
Compiled Wed 27-Apr-04 19:01 by miwang
cisco 2621 (MPC860) processor (revision 0x200) with 60416K/5120K bytes of memory
.
Processor board ID JAD05190MTZ (4292891495)
M860 processor: part number 0, mask 49
Bridging software.
X.25 software, Version 3.0.0.
2 FastEthernet/IEEE 802.3 interface(s)
2 Low-speed serial(sync/async) network interface(s)
32K bytes of non-volatile configuration memory.
16384K bytes of processor board System flash (Read/Write)
--- System Configuration Dialog ---
Continue with configuration dialog? yes/no: n
Press RETURN to get started!
Router>
看這裏進入系統之後 直接就進入了用戶模式 沒要密碼
Router>en
Routercopy start run
Destination filename running-config?
552 bytes copied in 0.416 secs (1326 bytes/sec)
ru1
我們 輸入enable 進入特權模式 輸入命令 copy start run 從NVRAM 裏面調用配置到內存中
下一步更換密碼
ru1conf t
Enter configuration commands, one per line. End with CNTL/Z.
ru1(config)line console 0
ru1(config-line)pass admin
ru1(config-line)login
ru1(config-line)exit
ru1(config)line vty 0 4
ru1(config-line)pass admin
ru1(config-line)login
ru1(config-line)exit
ru1(config)enable pass admin
ru1(config)enable secret admin
ru1(config)service password-encryption
比如說我們將密碼修改爲admin 實驗環境下 只採用這一個密碼
下一步 更改寄存器值 恢復到正常的啓動次序
ru1(config)config-register 0x2102
下一步 保存配置到NVRAM裏面
ru1(config)exit
%SYS-5-CONFIG_I: Configured from console by console
ru1copy run start
Destination filename startup-config?
Building configuration...
OK
ru1
重啓一下
ru1rel
Proceed with reload? confirm
%SYS-5-RELOAD: Reload requested by console. Reload Reason: Reload Command.
System Bootstrap, Version 12.1(3r)T2, RELEASE SOFTWARE (fc1)
Copyright (c) 2000 by cisco Systems, Inc.
cisco 2621 (MPC860) processor (revision 0x200) with 60416K/5120K bytes of memory
Self decompressing the image :
OK
Restricted Rights Legend
Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.
cisco Systems, Inc.
170 West Tasman Drive
San Jose, California 95134-1706
Cisco Internetwork Operating System Software
IOS (tm) C2600 Software (C2600-I-M), Version 12.2(28), RELEASE SOFTWARE (fc5)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2005 by cisco Systems, Inc.
Compiled Wed 27-Apr-04 19:01 by miwang
cisco 2621 (MPC860) processor (revision 0x200) with 60416K/5120K bytes of memory
.
Processor board ID JAD05190MTZ (4292891495)
M860 processor: part number 0, mask 49
Bridging software.
X.25 software, Version 3.0.0.
2 FastEthernet/IEEE 802.3 interface(s)
2 Low-speed serial(sync/async) network interface(s)
32K bytes of non-volatile configuration memory.
16384K bytes of processor board System flash (Read/Write)
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to administratively down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to down
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to administratively down
Press RETURN to get started!
User Access Verification
Password:
ru1>en
Password:
ru1
最後解釋一下 文中帶下劃線的爲個人說明
陰影部分是必要的步驟 是要輸入命令的