美文网首页
交换机密码破解

交换机密码破解

作者: IT小驿 | 来源:发表于2019-08-24 23:57 被阅读0次
IT小驿


原理

交换机启动过程

1、加电自检,检查设备硬件是否完好;

2、启动BootStrap引导程序,搜寻IOS;

3、加载IOS;

4、启动配置文件,如果找不到配置文件,则进入配置模式;

key:从第4个步骤入手,将交换机的配置文件重命名,让交换机找不到配置文件从而进入原始配置模式,然后将原配置导入,实现查看、修改原始密码的操作。


步骤

1、拔掉电源,用手按住交换机“Mode”按钮,插上电源,等待交换机进入控制台模式。

2、重命名配置文件。

switch:flash_init   //初始化flash文件系统

switch:dir flash:   //查看flash中配置文件名

3、switch:rename flash:config.text flash:config.old   //命令把原来的配置文件改名为config.old(old可以随机命名)

4、switch:boot    //重启交换机

5、交换机出现是否进入配置时选no

6、switch#show flash  //特权模式查看flash中的配置文件

7、改回配置名

switch>#enable    //进入特权执行模式。

witch:rename flash:config.old flash:config.text   //把配置文件名字修改回来

8、switch:copy flash:config.text system running-config

9、修改/清除密码

Switch#config terminal   //进入全局配置模式

Switch(config)#no enable password    //删除使能密码

Switch(config)#no enable secret    /删除加密的密码

Switch(config)#end    //直接返回到特权模式

Switch#show runnig-config   //查看正在进行的配置文件,注意查看密码

10、保存配置

Switch#copy running-config startup-config     //备份配置文件到NVRAM

相关文章

网友评论

      本文标题:交换机密码破解

      本文链接:https://www.haomeiwen.com/subject/jbpcectx.html