Cisco交换机3750密码破解 2019-11-26 网络 暂无评论 2488 次阅读 c3750密码恢复步骤 1、用SecureCRT 或Xshell登陆交换机:9600-8-n-1 2、按住交换机前面板的“mode”按钮,然后给设备供电,当灯不闪后后,松掉“mode”按钮。长按MODE按钮约15秒钟。 3、显示: ``` The system has been interrupted prior to initializing the flash file system. The following commands will initialize the flash file system, and finish loading the operating system software: * 1 52 WS-C3750G-48TS 12.2(35)SE2 C3750-ADVIPSERVICESK Failed to generate persistent self-signed certificate. Secure server will use Base ethernet MAC Address: 00:1e:49:90:79:00 Xmodem file system is available. The password-recovery mechanism is enabled. The system has been interrupted prior to initializing the flash filesystem. The following commands will initialize the flash filesystem, and finish loading the operating system software: flash_init load_helper boot switch: flash_init Initializing Flash... flashfs[0]: 6 files, 3 directories flashfs[0]: 0 orphaned files, 0 orphaned directories flashfs[0]: Total bytes: 32514048 flashfs[0]: Bytes used: 9021952 flashfs[0]: Bytes available: 23492096 flashfs[0]: flashfs fsck took 8 seconds. ...done Initializing Flash. Boot Sector Filesystem (bs) installed, fsid: 3 Setting console baud rate to 9600... ``` 4、输入以下命令可以查看帮助 ``` switch: load_helper switch: help ``` 5、输入dir flash获得flash内的文件信息: ``` switch: dir flash Directory of flash: 2 -rwx 8756889 c3750-advipservicesk9-mz.122-35.SE2.bin 3 -rwx 1036 vlan.dat 4 -rwx 2999 private-config.text 6 drwx 64 crashinfo_ext 8 drwx 64 crashinfo 10 -rwx 12314 config.text 23492096 bytes available (9021952 bytes used) ``` 6、输入`rename flash:config.text flash:config.old`重命名原来的配置文件 7、敲入boot,重启动交换机 8、交换机启动完后显示:Continue with the configuration dialog? [yes ] : 输入N 9、Switch>en Switch# 10、进入enable模式后,输入`rename flash:config.old flash:config.text`恢复原来的配置文件 11、接着按以下步骤操作:将配置文件复制到当前运行的配置文件中 ``` Switch#copy flash:config.text system:running-config Source filename [config.text]? (回车) Destination filename [running-config]? (回车) ``` 12 、接着按以下步骤操作: ``` switch#configure switch(config)#no enable secret (去掉超级管理密码) switch(config)#no enable password(去掉密码第二种命令) switch(config)#ena secret XXX (重设置密码为XXX) switch(config)#ena password XXX switch(config)#wr (保存) Building configuration... ``` 标签: 恢复, cisco, 破解密码 本作品采用 知识共享署名-相同方式共享 4.0 国际许可协议 进行许可。