Vous êtes sur la page 1sur 15

By : Prof Poonam Garg !

@#$%&*(*%$@

Are you tired . . .?

frustrated . . .?

confused . . .?

Cause your @#$!% PASSWORD wont work!#&(*!!!

No problem, Ive got just the key!

Given that youre 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 Now press with the command press Enter i Enter and tell the router to reboot and then again.

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 Enter

Following reboot, you will see a generic prompt. Type enable to enter priveleged mode. Notice that you didnt 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 wouldnt

work!#&(*!!! work!#&(*!!!

Now we must get the router back to the way it was before you broke into it!

At the privileged prompt, type copy start run .

copy

run
start

Moves the contents of NVRAM into RAM, your running-configuration.

Now that were back where we want to be, lets change the passwords back to the way they should be.

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: Enter follows each of these commands.

config t enable secret ***** line con 0 login password ***** exit

Were almost done! Now we must go back and undo what weve 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)#

Change the config-register back by entering config-register 0x2102 And then show ver to verify that the change has been made.
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 wont have any more password woes.

SuperRouter#copy run start Destination filename [startup-config]? Building configuration... [OK]

Thats 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>

Vous aimerez peut-être aussi