160 likes | 180 Views
Password Recovery. By Felicia Nelson ESC Region 13 Austin, TX. “!@#$%&*(*%$@”. Are you tired . . .? frustrated . . .? confused . . .?. ’ Cause your @#$!% PASSWORD won’t work!#&(*!!!. No problem, I’ve got just the key!. Given that you’re already consoled in to the offending router,
E N D
Password Recovery By Felicia Nelson ESC Region 13 Austin, TX “!@#$%&*(*%$@”
Are you tired . . .? frustrated . . .? confused . . .? ’Cause your @#$!% PASSWORD won’t work!#&(*!!!
Given that you’re already consoled in to the offending router, manually flip the router switch off and then on again.
As soon as you turn the router back on, you will see text scrolling by indicating that the router is rebooting. Within 60 seconds of re-powering the router, press Ctrl + Break. Pause Break Ctrl Keyboards will vary.
Upon halting the routing process, you will be given a prompt. At this prompt, you must enter a command that tells the router that at next reboot, it must ignore the contents of NVRAM. That command is o/r 0x2142 and tell the router to reboot Now press Enter and then with the command i press again. Enter
As the router is rebooting, it will discover that it cannot find its configuration files (because you tricked it) and it will ask you if you would like to enter setup mode. Type n for “no” and press n Enter
enable Following reboot, you will see a generic prompt. Type to enter priveleged mode. Notice that you didn’t need a password because the router is not utilizing the contents of NVRAM where that password is stored.
Once you have entered the privileged mode, you have successfully overcome your initial problem -- remember? Your @#$!% PASSWORD wouldn’t work!#&(*!!! work!#&(*!!! Now we must get the router back to the way it was before you broke into it! copy start run At the privileged prompt, type .
copy run start Moves the contents of NVRAM into RAM, your running-configuration.
Now that we’re back where we want to be, let’s change the passwords back to the way they should be. config t Enter global configuration mode: Change your secret password: Enter line configuration mode: Log in to the console: Reconfigure the console password: Return to global configuration mode: enable secret ***** line con 0 login password ***** exit follows each of these commands. Enter
We’re almost done! Now we must go back and undo what we’ve done to the config-register. Right now you have your router set so that it boots to 0x2142. This needs to be changed to 0x2102 so that your router will find its running-config files in NVRAM when it boots. Return to global configuration mode. SuperRouter(config-line)#exit SuperRouter(config)#
config-register 0x2102 Change the config-register back by entering to verify that the change has been made. And then show ver SuperRouter(config)#config-register 0x2102 SuperRouter(config)#show ver Configuration register is 0x2142 (will be 0x2102 at next reboot)
You made it! Now all you need to do is copy your present configuration back into your NVRAM so that when you re-boot your router, you won’t have any more password woes. SuperRouter#copy run start Destination filename [startup-config]? Building configuration... [OK]
That’s all you do! • Within 60 seconds of re-booting the router, <ctrl break>. • Set up a register entry to ignore NVRAM , <o/r 0x2142> • Restart the router, <i> • Bypass the configuration utility, <n> or <Ctrl c> • Enter privileged mode, <enable> • Copy NVRAM to RAM, <copy start run> • Enter global configuration mode, <config t> • Change secret password, <enable secret *****> • Change console password, < line con 0>, <login>, <password *****> • Return to global configuration mode, <exit> or <Ctrl z> • Reset register entry, <config-register 0x2102> • Verify changes, <show ver> • Copy RAM to NVRAM, <copy run start> Happy Routing! By Felicia Nelson