您的位置:首页 > 编程语言 > Python开发

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: