Python:基础入门
2012-03-25 16:16
441 查看
Cisco路由器交换机密码破解(小妞作品)路由器设备型号:2621XM实验步骤:Router>show version…………………cisco 2621XM (MPC860P) processor (revision 0x200) with 126976K/4096K bytes of memory.Processor board ID JAE075202KQ (2960342124)M860 processor: part number 5, mask 2Bridging software.X.25 software, Version 3.0.0.2 FastEthernet/IEEE 802.3 interface(s)4 Low-speed serial(sync/async) network interface(s)32K bytes of non-volatile configuration memory.32768K bytes of processor board System flash (Read/Write)Configuration register is 0x2102注意:0x2102 是指开机时加载配置文件 0x2142 是指开机时不加载配置文件断电重启,在超级终端里按下ctr+break键,进入画面(break键就是esc键) System Bootstrap, Version 12.2(8r) [cmong 8r], RELEASE SOFTWARE (fc1)Copyright (c) 2003 by cisco Systems, Inc.PC = 0xfff0ac3c, Vector = 0x500, SP = 0x680127c0C2600 platform with 131072 Kbytes of main memoryPC = 0xfff0ac3c, Vector = 0x500, SP = 0x80004884monitor: command "boot" aborted due to user interruptrommon 1 >把寄存器值改成0x2142rommon 1 > ? ….confreg configuration register utility…..rommon 2 > confreg Configuration Summary (Virtual Configuration Register: 0x2102)enabled are:load rom after netboot failsconsole baud: 9600boot: image specified by the boot system commands or default to: cisco2-C2600do you wish to change the configuration? y/n
: yenable "diagnostic mode"? y/n
: nenable "use net in IP bcast address"? y/n
: ndisable "load rom after netboot fails"? y/n
: nenable "use all zero broadcast"? y/n
: nenable "break/abort has effect"? y/n
: nenable "ignore system config info"? y/n
: ychange console baud rate? y/n
: nchange the boot characteristics? y/n
: n Configuration Summary (Virtual Configuration Register: 0x2142)enabled are:load rom after netboot failsignore system config infoconsole baud: 9600boot: image specified by the boot system commands or default to: cisco2-C2600do you wish to change the configuration? y/n
: You must reset or power cycle for new config to take effectrommon 3 >用命令重启路由器rommon 3 > reset开机之后Router>sh verCisco Internetwork Operating System Software ………Configuration register is 0x2142Router#sh run 会发现是初始配置Router#copy startup-config runDestination filename [running-config]? Slot is empty or does not support clock participate WIC slot is empty or does not support clock participate 853 bytes copied in 0.956 secs (892 bytes/sec)Router#sh runBuilding configuration...enable password xunbo!Router#config Router(config)#no enable passRouter(config)#endRouter#sh ruRouter# copy run startDestination filename [startup-config]? Building configuration...[OK]Router#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#config 0x2102Router(config)#end这样重启之后只是删了密码,但是配置还在。交换机型号2950系列交换机与路由器不一样,与寄存器无关准备工作:Switch(config)#enable pass xunboSwitch#copy run startDestination filename [startup-config]? Building configuration...[OK]Switch#dir /allDirectory of flash:/ 2 -rwx 916 Mar 01 1993 00:04:09 +00:00 vlan.dat 3 -rwx 3117090 Mar 01 1993 00:03:17 +00:00 c2950-i6q4l2-mz.121-22.EA7.bin 4 drwx 4160 Mar 01 1993 00:03:50 +00:00 html 375 -rwx 5 Mar 01 1993 00:26:31 +00:00 private-config.text 376 -rwx 831 Mar 01 1993 00:26:31 +00:00 config.textSwitch#more config.text!enable password xunbo重启之后Switch>enPassword:需要密码,现在我们假如不知道密码1)断电重启,在启动的过程按住mode键,直到进入The system has been interrupted prior to initializing theflash filesystem. The following commands will initializethe flash filesystem, and finish loading the operating system software: flash_init load_helper bootswitch:2)switch: flash_initInitializing Flash...flashfs[0]: 371 files, 4 directoriesflashfs[0]: 0 orphaned files, 0 orphaned directoriesflashfs[0]: Total bytes: 7741440flashfs[0]: Bytes used: 4739072flashfs[0]: Bytes available: 3002368flashfs[0]: flashfs fsck took 7 seconds....done initializing flash.Boot Sector Filesystem (bs:) installed, fsid: 3Parameter Block Filesystem (pb:) installed, fsid: 43)switch: dir flash:Directory of flash:/2 -rwx 916 <date> vlan.dat3 -rwx 3117090 <date> c2950-i6q4l2-mz.121-22.EA7.bin4 drwx 4160 <date> html375 -rwx 5 <date> private-config.text376 -rwx 831 <date> config.text4)switch: rename flash:config.text flash:config.oldswitch: dir flash:Directory of flash:/2 -rwx 916 <date> vlan.dat3 -rwx 3117090 <date> c2950-i6q4l2-mz.121-22.EA7.bin4 drwx 4160 <date> html375 -rwx 5 <date> private-config.text376 -rwx 831 <date> config.old5)switch: boot//重启Switch>enSwitch#00:01:31: %LINK-5-CHANGED: Interface Vlan1, changed state to administratively downSwitch#Switch#Switch#sh run恢复出厂配置6)Switch#rename flash:config.old flash:config.textSwitch#copy start run%% Non-volatile configuration memory invalid or not present //不知道为什么行不通Switch#copy flash:config.text system:running-configDestination filename [running-config]? 831 bytes copied in 0.716 secs (1161 bytes/sec)Switch#sh runhostname Switch!enable password xunbo7)接下来删掉密码Switch# conf tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#no enable pass xunboSwitch(config)#endSwitch#00:09:05: %SYS-5-CONFIG_I: Configured from console by consoleSwitch#writeBuilding configuration...[OK]Switch#dir flash:Directory of flash:/ 2 -rwx 916 Mar 01 1993 00:04:09 +00:00 vlan.dat 3 -rwx 3117090 Mar 01 1993 00:03:17 +00:00 c2950-i6q4l2-mz.121-22.EA7.bin 4 drwx 4160 Mar 01 1993 00:03:50 +00:00 html 374 -rwx 5 Mar 01 1993 00:09:16 +00:00 private-config.text 376 -rwx 809 Mar 01 1993 00:09:16 +00:00 config.text大功告成!!!记住要点:交换机与路由器的破解不一样。交换机与寄存器无关。破解交换机的步骤:把原来的配置改名,断电重启,按住mode键,把命名后的密码重新导入。
本文出自 “技术博客” 博客,请务必保留此出处http://zln0518.blog.51cto.com/3337045/1210067
: yenable "diagnostic mode"? y/n
: nenable "use net in IP bcast address"? y/n
: ndisable "load rom after netboot fails"? y/n
: nenable "use all zero broadcast"? y/n
: nenable "break/abort has effect"? y/n
: nenable "ignore system config info"? y/n
: ychange console baud rate? y/n
: nchange the boot characteristics? y/n
: n Configuration Summary (Virtual Configuration Register: 0x2142)enabled are:load rom after netboot failsignore system config infoconsole baud: 9600boot: image specified by the boot system commands or default to: cisco2-C2600do you wish to change the configuration? y/n
: You must reset or power cycle for new config to take effectrommon 3 >用命令重启路由器rommon 3 > reset开机之后Router>sh verCisco Internetwork Operating System Software ………Configuration register is 0x2142Router#sh run 会发现是初始配置Router#copy startup-config runDestination filename [running-config]? Slot is empty or does not support clock participate WIC slot is empty or does not support clock participate 853 bytes copied in 0.956 secs (892 bytes/sec)Router#sh runBuilding configuration...enable password xunbo!Router#config Router(config)#no enable passRouter(config)#endRouter#sh ruRouter# copy run startDestination filename [startup-config]? Building configuration...[OK]Router#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#config 0x2102Router(config)#end这样重启之后只是删了密码,但是配置还在。交换机型号2950系列交换机与路由器不一样,与寄存器无关准备工作:Switch(config)#enable pass xunboSwitch#copy run startDestination filename [startup-config]? Building configuration...[OK]Switch#dir /allDirectory of flash:/ 2 -rwx 916 Mar 01 1993 00:04:09 +00:00 vlan.dat 3 -rwx 3117090 Mar 01 1993 00:03:17 +00:00 c2950-i6q4l2-mz.121-22.EA7.bin 4 drwx 4160 Mar 01 1993 00:03:50 +00:00 html 375 -rwx 5 Mar 01 1993 00:26:31 +00:00 private-config.text 376 -rwx 831 Mar 01 1993 00:26:31 +00:00 config.textSwitch#more config.text!enable password xunbo重启之后Switch>enPassword:需要密码,现在我们假如不知道密码1)断电重启,在启动的过程按住mode键,直到进入The system has been interrupted prior to initializing theflash filesystem. The following commands will initializethe flash filesystem, and finish loading the operating system software: flash_init load_helper bootswitch:2)switch: flash_initInitializing Flash...flashfs[0]: 371 files, 4 directoriesflashfs[0]: 0 orphaned files, 0 orphaned directoriesflashfs[0]: Total bytes: 7741440flashfs[0]: Bytes used: 4739072flashfs[0]: Bytes available: 3002368flashfs[0]: flashfs fsck took 7 seconds....done initializing flash.Boot Sector Filesystem (bs:) installed, fsid: 3Parameter Block Filesystem (pb:) installed, fsid: 43)switch: dir flash:Directory of flash:/2 -rwx 916 <date> vlan.dat3 -rwx 3117090 <date> c2950-i6q4l2-mz.121-22.EA7.bin4 drwx 4160 <date> html375 -rwx 5 <date> private-config.text376 -rwx 831 <date> config.text4)switch: rename flash:config.text flash:config.oldswitch: dir flash:Directory of flash:/2 -rwx 916 <date> vlan.dat3 -rwx 3117090 <date> c2950-i6q4l2-mz.121-22.EA7.bin4 drwx 4160 <date> html375 -rwx 5 <date> private-config.text376 -rwx 831 <date> config.old5)switch: boot//重启Switch>enSwitch#00:01:31: %LINK-5-CHANGED: Interface Vlan1, changed state to administratively downSwitch#Switch#Switch#sh run恢复出厂配置6)Switch#rename flash:config.old flash:config.textSwitch#copy start run%% Non-volatile configuration memory invalid or not present //不知道为什么行不通Switch#copy flash:config.text system:running-configDestination filename [running-config]? 831 bytes copied in 0.716 secs (1161 bytes/sec)Switch#sh runhostname Switch!enable password xunbo7)接下来删掉密码Switch# conf tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#no enable pass xunboSwitch(config)#endSwitch#00:09:05: %SYS-5-CONFIG_I: Configured from console by consoleSwitch#writeBuilding configuration...[OK]Switch#dir flash:Directory of flash:/ 2 -rwx 916 Mar 01 1993 00:04:09 +00:00 vlan.dat 3 -rwx 3117090 Mar 01 1993 00:03:17 +00:00 c2950-i6q4l2-mz.121-22.EA7.bin 4 drwx 4160 Mar 01 1993 00:03:50 +00:00 html 374 -rwx 5 Mar 01 1993 00:09:16 +00:00 private-config.text 376 -rwx 809 Mar 01 1993 00:09:16 +00:00 config.text大功告成!!!记住要点:交换机与路由器的破解不一样。交换机与寄存器无关。破解交换机的步骤:把原来的配置改名,断电重启,按住mode键,把命名后的密码重新导入。
本文出自 “技术博客” 博客,请务必保留此出处http://zln0518.blog.51cto.com/3337045/1210067
相关文章推荐
- Python基础入门(六)- 什么是变量
- Python学习入门基础教程(learning Python)--1.1Python程序设计流程
- 零基础入门学习Python(3):数据类型
- python基础教程之简单入门说明(变量和控制语言使用方法)
- python3 [入门基础实战] 爬虫入门之智联招聘的学习(一)
- Python基础入门之List和Tuple类型二
- 【零基础入门学习Python笔记002】用Python设计第一个游戏:课后测试集答案
- Python学习入门基础教程(learning Python)--8.3 字典常用的方法函数介绍
- Python学习入门基础教程(learning Python)--2.3.1 Python传参函数设计
- Python 入门学习 -----变量及基础类型(元组,列表,字典,集合)
- python入门-基础知识
- Python 入门学习 -----变量及基础类型(元组,列表,字典,集合)
- Python学习入门基础教程(learning Python)--3.3.1 Python下的布尔表达式
- Python爬虫入门基础
- python入门基础(1)-写在最前面
- 大牛整理最全Python零基础入门学习资料
- python入门基础教程08 函数的形参与实参
- python入门基础教程04 Python程序基本组成
- Python知识(1)----基础入门和进阶总结。
- python基础入门学习笔记(1)