Restart the switch, press the mode key
Switch:flash_init
Switch:dir Flash:
Switch:rename Flash:config.text Flash:config.old
Switch:boot
Would to enter the initial configuration dialog? [Yes/no]: N
switch>en
Switch>enable
Switch#dir
Directory of flash:/
2-RWX 1915 Mar 1 1993 00:07:55 +00:00 Private-config.text
3-RWX 804 Mar 1 1993 01:55:43 +00:00 Vlan.dat
4-RWX 2344 Mar 1 1993 00:07:55 +00:00 Config.old
5-RWX 3096 Mar 1 1993 00:07:55 +00:00 Multiple-fs
6 drwx 192 Mar 1 1993 00:07:12 +00:00 C2960-lanbasek9-mz.122-44.se6
Switch#rename Flash:config.old Flash:config.text
Destination filename [config.text]?
Switch#copy Flash:config.text System:running-config
Destination filename [running-config]?
Sw1#sh Run
SW1 (config) #no enable secret
SW1 (config) #no enable password
Sw1#write
Building configuration ...
[OK]
Sw1#reload
Loading "Flash:c2960-lanbasek9-mz.122-44.se6/[email protected]@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Ion saved to NVRAM
Sw1>
This article is from the "Guolinux" blog, make sure to keep this source http://guolinux.blog.51cto.com/8485939/1584702
Cisco switch password cracking