Cisco Switch - Password Recovery

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] now we will perform password recovery on a real switch so here we have a Cisco 35 60 series POS switch and we also have a power port and we also have our console cable so we're going to turn the switch around and plug in our console table I already have my session started actually on the switch on my Mac here so as soon as I plug this power cable in I'm going to be one to hold down the mode button and we already eat our console connected so that we can observe what's happening on the screen as we plug it in and we're holding down the mode button here is the mode button on the left leg now I'm going to simultaneously hold this thing down and plug in the power holding down the mode hugging in the power then I'll just be watching the console to see the switch booting up here the password recovery mechanism is enabled alright and when you see that usually you should be able to let go of the mode button and yes there we are now in the rom monitor mode of the switch so now what we can do is we can just type flash underscore in it and this will initialize the flash memory and we can use the question mark here to see different commands that we can use just like we would whenever we were in regular Cisco IOS command prompt command line interface so now that I've initialized the flash I'm just going to do a question mark look at my commands available and what we're going to do here is make it so that the switch will actually ignore the me file that it uses to boot and we see that we have this Derick command here directory so actually I'm going to look in our memory let me just do it straight up there flash that's we need their flash there we go so you have to initialize the flash before you can actually run that command so if you're trying to look at the flash directory before you initialize the flash it's never going to work so you have to do the flash underscore initialize my ass from score in it then you can do the dirt flash command and here we see that config dot txt file so now we're going to rename this file rename is one of the commands available to us let's rename flash colon config dot txt we'll rename that the flash colon config dot old really just got to change the name of it Morde is going to change the extension to something that is not going to recognize so we've now renamed that file so if we do add our flash we will see not putting a colon in there after a dirt flash : d ir FL a sh : they're good now you can see it's called config dot old so the switch is not going to actually recognize the config file because normally it's called config dot txt so what do we do now all we do is put the device [Music] now it's going to boot up and it's not going to see its configuration file [Music] okay now we're in the switch and you'll notice it doesn't have any configuration on it right it's completely blanked because it could not find its configuration file we can do it there a flash command again and we see that config file it now what we can do is go ahead and rename this file let's do rename flash : config dot old flash point Big Tex we want to go ahead and rename that file because now whenever reboots it'll actually boot up with the actual configuration but what we want to do is change the password because the whole reason why we needed to break in this wish is because we didn't have the password information right so we need to update the enable secret password here so now I'm just going to flash point between this rememory here haven't actually looked at the procedure to running config yes that's what we want okay so now I'm copying the config file into our running config and there was a lot of stuff configured here it is demo 3560 switch you see the hostname ssh is now enabled i have copied the config in and now let's see we just need to change the enable secret so we can just change it to anything left enable secret and I'll just use our company name obviously that's not best practice but for the purpose of this demo I have just updated the password with something simple and now I can exit out and try to get back in the switch and I should be able to use my new password and now I have access so we have now successfully broken into the thirty five sixty series switch here done the password recovery and recovered that password changed to something else that we actually know welcome back wasn't that fun you have seen how to successfully break into a switch cool stuff [Music] Jacob has here thank you guys for viewing the video I hope you really enjoyed it and I'd also like to remind you that if you're truly serious about your career in information technology be sure to check out our career blueprint and engineer training program and ww0 to engineer calm you
Info
Channel: NexGenT
Views: 29,498
Rating: undefined out of 5
Keywords: Network, Engineer, Cisco, Network+, CCNA, CCENT, CCNP, CCIE, Switch, Network Engineer, Systems Engineer, Routing and Switching, Switching
Id: VyEm0wesDXA
Channel Id: undefined
Length: 6min 52sec (412 seconds)
Published: Wed Aug 29 2018
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.