cisco pix 防火墙口令恢复现场秀






前两天买了台ciscopix506e 防火墙,因为没有口令,不能用,pix防火墙一旦口令丢失,要想获得防火墙的访问权限,需要删除口令再次重新设置。在网站找资料 ,做试验,经一小时后就把口令破解了。方法很简单,相信看完这篇文章后,这些问题对你来说就是小菜一碟了。(呵呵,别卖关子了, 讲吧!)

文章顺序

-cisco关于这个问题的官方原文
-我的原文解释
-我的恢复经历
-其它两个实例

----------------------------------begin--------------------- -------------------
一、 这是cisco官方关于这个问题的原文:

cisco pix 500 series firewalls

password recovery and aaa c recovery procedure for the pix
document id: 8529
c
introduction
before you begin
c
prerequisites
step-by-step procedure
pix with a floppy drive
pix without a floppy drive
sample output
related information


------------------------------------------------------------ --------------------

introduction
this document describes how to recover a pix password for pix software releases through 6.3. note that performing password recovery on the pix erases the password, not the configuration. if there are telnet or c aaa authentication commands in versi 6.2 and greater, the system will also prompt to remove these.

note: if you have c aaa on the pix and the aaa server is down, you can access the pix by entering the telnet password initially, and then "pix" as the username and the enable password (enable password password) for the password. if there is no enable password in the pix c enter "pix" for the username and press enter. if the enable and telnet passwords are set but not known, you will need to c with the password recovery process.

the pix password lockout utility is based on the pix software release you are running.

in addition to the required files listed in the next secti you will need the following items to follow the password recovery procedure:

a pc

a working serial terminal or terminal emulator

approximately 10 minutes of pix and network downtime

before you begin
c
for more information on document c see the cisco technical tips conventions.

prerequisites
to use the password recovery procedure, you need the pix password lockout utility, which includes the following files:

one of the following files, depending on the pix software version you are running:

np63.bin (6.3 release)

np62.bin (6.2 release)

np61.bin (6.1 release)

np60.bin (6.0 release)

np53.bin (5.3 release)

np52.bin (5.2 release)

np51.bin (5.1 release)

np50.bin (5.0 release)

np44.bin (4.4 release)

nppix.bin (4.3 and earlier releases)

rawrite.exe (needed for pix machines with a floppy drive)

tftp server software (needed for pix machines without a floppy drive) — tftp server software is no l available from cisco.com, but you can find many tftp servers by searching for "tftp server" on your favorite internet search engine. cisco does not specifically recommend any particular tftp implementation.

step-by-step procedure
pix with a floppy drive
to recover your password, follow the steps below:

execute the rawrite.exe file on your pc and answer the questi on the screen using the correct password recovery file.

install a serial terminal or a pc with terminal emulation software on the pix c port.

verify that you have a c with the pix, and that characters are going from the terminal to the pix, and from the pix to the terminal.

note: because you are locked out, you will see a password prompt.

insert the pix password lockout utility disk into the floppy drive of the pix.

push the reset button on the fr of the pix. the pix will reboot from the floppy and print the message below:

erasing flash password. please eject diskette and reboot.
eject the disk and press the reset button. you will now be able to log in without a password. when you are prompted for a password, press enter.

the default telnet password after this process is "cisco." there is no default enable password. go into c mode and issue the passwd your_password command to change your telnet password and the enable password your_enable_password command to create an enable password, and then save your configuration.

pix without a floppy drive
to recover your password, follow the steps below:

note: sample output from the password recovery procedure is available below.

install a serial terminal or a pc with terminal emulation software on the pix c port.

verify that you have a c with the pix, and that characters are going from the terminal to the pix, and from the pix to the terminal.

note: because you are locked out, you will see a password prompt.

immediately after you power on the pix firewall and the startup messages appear, send a break character or press the esc key. the m prompt is displayed. if needed, type ? (question mark) to list the available commands.

use the interface command to specify which interface the ping traffic should use. for floppiless pixes with two interfaces, the m command defaults to the inside interface.

use the address command to specify the ip address of the pix firewall's interface.

use the server command to specify the ip address of the remote tftp server c the pix password recovery file.

use the file command to specify the filename of the pix password recovery file. for example, the 5.1 release uses a file named np51.bin.

if needed, enter the gateway command to specify the ip address of a router gateway through which the server is accessible.

if needed, use the ping command to verify accessibility. if this command fails, fix access to the server before continuing.

use the tftp command to start the download.

as the password recovery file loads, the following message is displayed:

do you wish to erase the passwords? [yn] y
passwords have been erased.
note: if there are telnet or c aaa authentication commands in version 6.2, the system will also prompt to remove these.

the default telnet password after this process is "cisco." there is no default enable password. go into c mode and issue the passwd your_password command to change your telnet password and the enable password your_enable_password command to create an enable password, and then save your configuration.

sample output
the following example of floppiless pix password recovery with the tftp server on the outside interface is taken from a lab environment.

network diagram

m interface 0
0: i8255x @ pci(bus:0 dev:13 irq:10)
1: i8255x @ pci(bus:0 dev:14 irq:7 )

using 0: i82559 @ pci(bus:0 dev:13 irq:10), mac: 0050.54ff.82b9
m address 10.21.1.99
address 10.21.1.99
m server 172.18.125.3
server 172.18.125.3
m file np52.bin
file np52.bin
m gateway 10.21.1.1
gateway 10.21.1.1
m ping 172.18.125.3
sending 5, 100-byte 0xf8d3 icmp echoes to 172.18.125.3, timeout is 4 sec
!!!!!
success rate is 100 percent (5/5)
m tftp
tftp np52.bin@172.18.125.3 via 10.21.1.1...................................
received 73728 bytes

cisco secure pix firewall password tool (3.0) #0: tue aug 22 23:22:19 pdt 2000
flash=i28f640j5 @ 0x300
bios flash=at29c257 @ 0xd8000

do you wish to erase the passwords? [yn] y
passwords have been erased.

rebooting....

************************************************************ ***********

二、我对这篇文章的解释(如有误,请执笔斧正)

介绍
这篇文?饕樯茉趐ix6.3软件版本下怎样恢复pix口令。这个口令恢复程序只针对pix的口令恢复,不能删除其配置,但是 它也可以通过提示去除控制台、telnet和aaa认证口令。

注:如果在 pix上配置有aaa,但是这个aaa服务器“down”掉了,在这种情况下你可以用telnet的初始密码通过telnet登 录到pix进行口令恢复。过程如下,用pix作为用户名,再用enable password password 恢复enable模式口令。如果在pix上没有配置enable password,就可以只输pix再回车进入。再者设置了密码,但搞忘了,没有办法,只有按照下面程序的来了。

这个pix口令恢复实用程序要根据当前运行pix的软件版本来的选择。

下面是在后面口令恢复过程中需要具备的一些条件:

·一台pc
·一个可以通过串口连接到pix的终端
·大约要把网络停个10来分钟

在开始做之前的准备工作

惯例:

上网看cisco技术文档找相关资料

先决条件:

在恢复过程中,我们要用得下面一些pix口令恢复实用程序:

·一个根据当前运行的pix软件版本来确定的np**.bin(用来恢复口令的的主要文件)
·一个只在有软驱pix机子用得上的rawrite.exe写二进制文件到软盘的程序
·另外要的是一个在没有软驱的新型pix机子必备的tftp服务软件,这个软件到处都可以下载。cisco没有对这个tftp服 务软件作特别的要求,一般的就行。

好了,开始按步就班的来吧

首先我们来在一个带有软驱的pix机子进行口令恢复

第一步,在一台pc机上用rawrite.exe程序,按照屏幕提示把np**.bin文件写到一张可用的软盘上。

第二步,找一条控制台的专用线(rollover线)把pc与pix连接起来。

第三步,通过 pc超级终端建立与pix连接,确保串口线没有问题。(由于没有正确的enable口令,我们只能看到密码提示符)

第四步,把刚才我们用rawrite.exe写好的软盘插入pix机子软驱。

第五步,接着按一下pix机子的复位键,pix这次从软盘引导,并在屏幕上显示下面一些消息:
erasing flash password. please eject diskette and reboot.
(口令恢复已经搞定,请把 软盘拿出来再重启机子)

第六步,当拿出软盘,按?仄艏螅颐蔷涂梢圆挥每诹罱雙ix的ios了。如果出现提示要口令,不管它,直接按回车就对了。

第七步,当前面步骤完成之后,pix的远程telnet口令恢复成默认的"cisco",并且进入enable特权模式也不需要密码。要改口令的话,进入 c your_password命令改远程telnet口令,用enable password your_enable_password命令建立enable特权模式口令。记着在改或创建完成保存配置,这就大功告成了。

其次我们来在一个没有带有软驱的pix机子进行口令恢复

按照我们的步骤来,你一定会搞定的。这儿有个例子,你们可以参考:
[url]http://www.cisco.com/en/us/products/hw/***devc/ps2030/produc[/url] ts_password_recovery09186a008009478b.shtml#sample

第一步,根前面第二步一样,找一条控制台的专用线(rollover线)把pc与pix连接起来。

第二步,检查有没有连通,根前面的第三步一样。

第三步,当打开 pix机子,看见启动消息后,按下break键或esc键。之后就进入m 式下可以用哪些命令。

第四步,用interface 命令指定一个准备用的ethernet口(interface 0,0端口与远程tftp服务器相连)。一般pix有只两个接口。(建议用交叉线把pc的网卡与pix的ethernet口连接 起来,用pc当tftp服务器)

第五步,用address命令在pix的ethernet口指定一个ip地址,不用输入掩码。

第六步,用server命令指定远程可以传np**.bin文件的tftp服务器的ip地址,也不用输入掩码。

第七步,用file命令指定远程tftp服务器上np**.bin的文件名。例如ios版本为5.1的口令恢复文件为np51.bin。

第八步,如果有要通过网关的话,要用gateway命令指定通过的网关路由器的ip地址。

第九步,如果有必要,用ping命令验证pix与远程tftp服务器是否连通。如果ping不通的话,检查一下连接正不正确。

第十步,接着输入tftp命令开始从tftp传np**.bin文件到pix。

第十一步,文件传完之后,就出现下面的询问消息,问删不删除原来的口令。如果有telnet或aaa认证口令的话,这个*作也会把他们原来成缺省或干掉。

第十二步,和上篇的第七步一样,同上,省。

sample output例子。

看不懂跟贴说!~

************************************************************ ***********

三、我的口令恢复经历(pix506e)

由于pix506e这个型号是没有软驱的,我采用了第二种方案。//此方案也适用于升级ios

首要条件:
1,从网上下载相关pix ios版本的np**.bin 我的为pix633.bin 自然选用下载np63.bin;
2,在控制台pc安装tftp服务器程序,把np63.bin放到tftp服务目录下; & nbsp;
3,用控制台这台pc作为远程tftp服务器,ip为192.168.1.88,找条交叉线把网卡与pix的ehernet 0连接起来 ;
4,准备预设pix的ehernet 0 ip为192.168.1.1


步骤如下:

第一步,找一条控制台的专用线(rollover串口线)把pc与pix连接起来。

第二步,用一条交叉线把控制台网卡与pix的ehernet 0连接起来。

第三步,通过串口建立超级终端,开机检查是否能接入pix。没问题,但是由于没有原来的口令,进不去特权模式。

第四步,在能够通过 c itor模式。

第五步,在m 0进入接口模式。

第六步,add 192.168.1.1 指定pix端口的ip地址。

第七步,server 192.168.1.88 指定我的tftp服务器的ip地址。

第八步,file np63.bin 指定预传送的口令恢复文件名(不知道就到tftp目录下看一下)。

第九步,ping 192.168.1.88 测试到tftp的三层连通性。不通的话,就得仔细检查一下网卡与pix的连接了。

第十步,tftp 回车,开始传送文件。传送完成后,提示是否要删除口令,输入y,确认删除,系统删除口令成功后,会自动重启,enable口令默 认为空了。

第十步,照样提示输入口令,不管它,回车,ok!~~大功告成!~~

第十一步,如果要改密码的话,按照上面说的用相关命令改就ok了。

************************************************************ ***********

四、其它两个实例

pix防火墙口令恢复 --带软驱

pix防火墙一旦口令丢失,要想获得防火墙的访问权限,需要删除口令再次重新设置。
目前pix防火墙分为带软驱的(例如pix520)和不带软驱的(例如pix525)两种。这两种防火墙口令恢复的方法不太一样 ,尤其对于带软驱的,可以使用一种比较简单的方式完成,下面具体介绍带软驱的防火墙口令恢复办法。
前提条件:
格式化好的软盘一张(windows下格式化)
删除口令的bin文件一个(要求下载与防火墙软件版本一致的文件),下载链接为:
[url]http://www.cisco.com/en/us/products/hw/***devc/ps2030/produc[/url] ts_password_recovery09186a008009478b.shtml
解压软件一个:rawrite.exe文件,可以从与bin文件相同的链接下载
恢复步骤:
将下载的bin文件和rawrite.exe文件放在同一个目录下,如:c:pix
将软盘放入软驱(注意使用后,软盘格式windows将无法识别,需要彻底格式化才可使用)
运行rawrite.exe,按提示输入bin文件名,软驱盘符,等待程序制作口令恢复盘
制作完毕后,将软盘放入pix的软驱中,按reset按钮,系统自动重启,会从软驱启动,并提示是否要删除口令,输入y,确认删 除,系统删除口令成功后,会自动重启,取出软盘,系统启动后登录口令为cisco,enable口令默认为空
如果系统显示booting floppy,但是没有任何提示就又从flash引导系统了,可能是由于pix内的软驱线没有连接,有人为了确保口令安全而将软 驱的线从机箱中拆除掉,通过观察启动时软驱灯是否亮就可以判断

*********************************************
pix防火墙口令恢复 --不带软驱

主旨是要覆盖原bin文件
进入m
m interface 0
0: i8255x @ pci(bus:0 dev:13 irq:10) 1: i8255x @ pci(bus:0 dev:14 irq:7 ) using 0: i82559 @ pci(bus:0 dev:13 irq:10), mac: 0050.54ff.82b9
设置本端口地址 m
address 10.21.1.99
设置服务器地址 m
server 172.18.125.3
获取文件 m file np52.bin
设置网关 m gateway 10.21.1.1
m ping 172.18.125.3 sending 5, 100-byte 0xf8d3 icmp echoes to 172.18.125.3, timeout is 4 sec !!!!! success rate is 100 percent (5/5)
执行下载传输命令m tftp
tftp np52.bin@172.18.125.3 via 10.21.1.1............................

............................................................ ........

................................................. received 73728 bytes cisco secure pix firewall password tool (3.0) 0: tue aug 22 23:22:19 pdt 2000 flash=i28f640j5 @ 0x300 bios flash=at29c257 @ 0xd8000 do you wish to erase the passwords? [yn] y passwords have been erased. rebooting.... 28.

-----------------------------end---------------------------- -----------

 

cisco pix 防火墙口令恢复现场秀






前两天买了台ciscopix506e 防火墙,因为没有口令,不能用,pix防火墙一旦口令丢失,要想获得防火墙的访问权限,需要删除口令再次重新设置。在网站找资料 ,做试验,经一小时后就把口令破解了。方法很简单,相信看完这篇文章后,这些问题对你来说就是小菜一碟了。(呵呵,别卖关子了, 讲吧!)

文章顺序

-cisco关于这个问题的官方原文
-我的原文解释
-我的恢复经历
-其它两个实例

----------------------------------begin--------------------- -------------------
一、 这是cisco官方关于这个问题的原文:

cisco pix 500 series firewalls

password recovery and aaa c recovery procedure for the pix
document id: 8529
c
introduction
before you begin
c
prerequisites
step-by-step procedure
pix with a floppy drive
pix without a floppy drive
sample output
related information


------------------------------------------------------------ --------------------

introduction
this document describes how to recover a pix password for pix software releases through 6.3. note that performing password recovery on the pix erases the password, not the configuration. if there are telnet or c aaa authentication commands in versi 6.2 and greater, the system will also prompt to remove these.

note: if you have c aaa on the pix and the aaa server is down, you can access the pix by entering the telnet password initially, and then "pix" as the username and the enable password (enable password password) for the password. if there is no enable password in the pix c enter "pix" for the username and press enter. if the enable and telnet passwords are set but not known, you will need to c with the password recovery process.

the pix password lockout utility is based on the pix software release you are running.

in addition to the required files listed in the next secti you will need the following items to follow the password recovery procedure:

a pc

a working serial terminal or terminal emulator

approximately 10 minutes of pix and network downtime

before you begin
c
for more information on document c see the cisco technical tips conventions.

prerequisites
to use the password recovery procedure, you need the pix password lockout utility, which includes the following files:

one of the following files, depending on the pix software version you are running:

np63.bin (6.3 release)

np62.bin (6.2 release)

np61.bin (6.1 release)

np60.bin (6.0 release)

np53.bin (5.3 release)

np52.bin (5.2 release)

np51.bin (5.1 release)

np50.bin (5.0 release)

np44.bin (4.4 release)

nppix.bin (4.3 and earlier releases)

rawrite.exe (needed for pix machines with a floppy drive)

tftp server software (needed for pix machines without a floppy drive) — tftp server software is no l available from cisco.com, but you can find many tftp servers by searching for "tftp server" on your favorite internet search engine. cisco does not specifically recommend any particular tftp implementation.

step-by-step procedure
pix with a floppy drive
to recover your password, follow the steps below:

execute the rawrite.exe file on your pc and answer the questi on the screen using the correct password recovery file.

install a serial terminal or a pc with terminal emulation software on the pix c port.

verify that you have a c with the pix, and that characters are going from the terminal to the pix, and from the pix to the terminal.

note: because you are locked out, you will see a password prompt.

insert the pix password lockout utility disk into the floppy drive of the pix.

push the reset button on the fr of the pix. the pix will reboot from the floppy and print the message below:

erasing flash password. please eject diskette and reboot.
eject the disk and press the reset button. you will now be able to log in without a password. when you are prompted for a password, press enter.

the default telnet password after this process is "cisco." there is no default enable password. go into c mode and issue the passwd your_password command to change your telnet password and the enable password your_enable_password command to create an enable password, and then save your configuration.

pix without a floppy drive
to recover your password, follow the steps below:

note: sample output from the password recovery procedure is available below.

install a serial terminal or a pc with terminal emulation software on the pix c port.

verify that you have a c with the pix, and that characters are going from the terminal to the pix, and from the pix to the terminal.

note: because you are locked out, you will see a password prompt.

immediately after you power on the pix firewall and the startup messages appear, send a break character or press the esc key. the m prompt is displayed. if needed, type ? (question mark) to list the available commands.

use the interface command to specify which interface the ping traffic should use. for floppiless pixes with two interfaces, the m command defaults to the inside interface.

use the address command to specify the ip address of the pix firewall's interface.

use the server command to specify the ip address of the remote tftp server c the pix password recovery file.

use the file command to specify the filename of the pix password recovery file. for example, the 5.1 release uses a file named np51.bin.

if needed, enter the gateway command to specify the ip address of a router gateway through which the server is accessible.

if needed, use the ping command to verify accessibility. if this command fails, fix access to the server before continuing.

use the tftp command to start the download.

as the password recovery file loads, the following message is displayed:

do you wish to erase the passwords? [yn] y
passwords have been erased.
note: if there are telnet or c aaa authentication commands in version 6.2, the system will also prompt to remove these.

the default telnet password after this process is "cisco." there is no default enable password. go into c mode and issue the passwd your_password command to change your telnet password and the enable password your_enable_password command to create an enable password, and then save your configuration.

sample output
the following example of floppiless pix password recovery with the tftp server on the outside interface is taken from a lab environment.

network diagram

m interface 0
0: i8255x @ pci(bus:0 dev:13 irq:10)
1: i8255x @ pci(bus:0 dev:14 irq:7 )

using 0: i82559 @ pci(bus:0 dev:13 irq:10), mac: 0050.54ff.82b9
m address 10.21.1.99
address 10.21.1.99
m server 172.18.125.3
server 172.18.125.3
m file np52.bin
file np52.bin
m gateway 10.21.1.1
gateway 10.21.1.1
m ping 172.18.125.3
sending 5, 100-byte 0xf8d3 icmp echoes to 172.18.125.3, timeout is 4 sec
!!!!!
success rate is 100 percent (5/5)
m tftp
tftp np52.bin@172.18.125.3 via 10.21.1.1...................................
received 73728 bytes

cisco secure pix firewall password tool (3.0) #0: tue aug 22 23:22:19 pdt 2000
flash=i28f640j5 @ 0x300
bios flash=at29c257 @ 0xd8000

do you wish to erase the passwords? [yn] y
passwords have been erased.

rebooting....

************************************************************ ***********

二、我对这篇文章的解释(如有误,请执笔斧正)

介绍
这篇文?饕樯茉趐ix6.3软件版本下怎样恢复pix口令。这个口令恢复程序只针对pix的口令恢复,不能删除其配置,但是 它也可以通过提示去除控制台、telnet和aaa认证口令。

注:如果在 pix上配置有aaa,但是这个aaa服务器“down”掉了,在这种情况下你可以用telnet的初始密码通过telnet登 录到pix进行口令恢复。过程如下,用pix作为用户名,再用enable password password 恢复enable模式口令。如果在pix上没有配置enable password,就可以只输pix再回车进入。再者设置了密码,但搞忘了,没有办法,只有按照下面程序的来了。

这个pix口令恢复实用程序要根据当前运行pix的软件版本来的选择。

下面是在后面口令恢复过程中需要具备的一些条件:

·一台pc
·一个可以通过串口连接到pix的终端
·大约要把网络停个10来分钟

在开始做之前的准备工作

惯例:

上网看cisco技术文档找相关资料

先决条件:

在恢复过程中,我们要用得下面一些pix口令恢复实用程序:

·一个根据当前运行的pix软件版本来确定的np**.bin(用来恢复口令的的主要文件)
·一个只在有软驱pix机子用得上的rawrite.exe写二进制文件到软盘的程序
·另外要的是一个在没有软驱的新型pix机子必备的tftp服务软件,这个软件到处都可以下载。cisco没有对这个tftp服 务软件作特别的要求,一般的就行。

好了,开始按步就班的来吧

首先我们来在一个带有软驱的pix机子进行口令恢复

第一步,在一台pc机上用rawrite.exe程序,按照屏幕提示把np**.bin文件写到一张可用的软盘上。

第二步,找一条控制台的专用线(rollover线)把pc与pix连接起来。

第三步,通过 pc超级终端建立与pix连接,确保串口线没有问题。(由于没有正确的enable口令,我们只能看到密码提示符)

第四步,把刚才我们用rawrite.exe写好的软盘插入pix机子软驱。

第五步,接着按一下pix机子的复位键,pix这次从软盘引导,并在屏幕上显示下面一些消息:
erasing flash password. please eject diskette and reboot.
(口令恢复已经搞定,请把 软盘拿出来再重启机子)

第六步,当拿出软盘,按?仄艏螅颐蔷涂梢圆挥每诹罱雙ix的ios了。如果出现提示要口令,不管它,直接按回车就对了。

第七步,当前面步骤完成之后,pix的远程telnet口令恢复成默认的"cisco",并且进入enable特权模式也不需要密码。要改口令的话,进入 c your_password命令改远程telnet口令,用enable password your_enable_password命令建立enable特权模式口令。记着在改或创建完成保存配置,这就大功告成了。

其次我们来在一个没有带有软驱的pix机子进行口令恢复

按照我们的步骤来,你一定会搞定的。这儿有个例子,你们可以参考:
[url]http://www.cisco.com/en/us/products/hw/***devc/ps2030/produc[/url] ts_password_recovery09186a008009478b.shtml#sample

第一步,根前面第二步一样,找一条控制台的专用线(rollover线)把pc与pix连接起来。

第二步,检查有没有连通,根前面的第三步一样。

第三步,当打开 pix机子,看见启动消息后,按下break键或esc键。之后就进入m 式下可以用哪些命令。

第四步,用interface 命令指定一个准备用的ethernet口(interface 0,0端口与远程tftp服务器相连)。一般pix有只两个接口。(建议用交叉线把pc的网卡与pix的ethernet口连接 起来,用pc当tftp服务器)

第五步,用address命令在pix的ethernet口指定一个ip地址,不用输入掩码。

第六步,用server命令指定远程可以传np**.bin文件的tftp服务器的ip地址,也不用输入掩码。

第七步,用file命令指定远程tftp服务器上np**.bin的文件名。例如ios版本为5.1的口令恢复文件为np51.bin。

第八步,如果有要通过网关的话,要用gateway命令指定通过的网关路由器的ip地址。

第九步,如果有必要,用ping命令验证pix与远程tftp服务器是否连通。如果ping不通的话,检查一下连接正不正确。

第十步,接着输入tftp命令开始从tftp传np**.bin文件到pix。

第十一步,文件传完之后,就出现下面的询问消息,问删不删除原来的口令。如果有telnet或aaa认证口令的话,这个*作也会把他们原来成缺省或干掉。

第十二步,和上篇的第七步一样,同上,省。

sample output例子。

看不懂跟贴说!~

************************************************************ ***********

三、我的口令恢复经历(pix506e)

由于pix506e这个型号是没有软驱的,我采用了第二种方案。//此方案也适用于升级ios

首要条件:
1,从网上下载相关pix ios版本的np**.bin 我的为pix633.bin 自然选用下载np63.bin;
2,在控制台pc安装tftp服务器程序,把np63.bin放到tftp服务目录下; & nbsp;
3,用控制台这台pc作为远程tftp服务器,ip为192.168.1.88,找条交叉线把网卡与pix的ehernet 0连接起来 ;
4,准备预设pix的ehernet 0 ip为192.168.1.1


步骤如下:

第一步,找一条控制台的专用线(rollover串口线)把pc与pix连接起来。

第二步,用一条交叉线把控制台网卡与pix的ehernet 0连接起来。

第三步,通过串口建立超级终端,开机检查是否能接入pix。没问题,但是由于没有原来的口令,进不去特权模式。

第四步,在能够通过 c itor模式。

第五步,在m 0进入接口模式。

第六步,add 192.168.1.1 指定pix端口的ip地址。

第七步,server 192.168.1.88 指定我的tftp服务器的ip地址。

第八步,file np63.bin 指定预传送的口令恢复文件名(不知道就到tftp目录下看一下)。

第九步,ping 192.168.1.88 测试到tftp的三层连通性。不通的话,就得仔细检查一下网卡与pix的连接了。

第十步,tftp 回车,开始传送文件。传送完成后,提示是否要删除口令,输入y,确认删除,系统删除口令成功后,会自动重启,enable口令默 认为空了。

第十步,照样提示输入口令,不管它,回车,ok!~~大功告成!~~

第十一步,如果要改密码的话,按照上面说的用相关命令改就ok了。

************************************************************ ***********

四、其它两个实例

pix防火墙口令恢复 --带软驱

pix防火墙一旦口令丢失,要想获得防火墙的访问权限,需要删除口令再次重新设置。
目前pix防火墙分为带软驱的(例如pix520)和不带软驱的(例如pix525)两种。这两种防火墙口令恢复的方法不太一样 ,尤其对于带软驱的,可以使用一种比较简单的方式完成,下面具体介绍带软驱的防火墙口令恢复办法。
前提条件:
格式化好的软盘一张(windows下格式化)
删除口令的bin文件一个(要求下载与防火墙软件版本一致的文件),下载链接为:
[url]http://www.cisco.com/en/us/products/hw/***devc/ps2030/produc[/url] ts_password_recovery09186a008009478b.shtml
解压软件一个:rawrite.exe文件,可以从与bin文件相同的链接下载
恢复步骤:
将下载的bin文件和rawrite.exe文件放在同一个目录下,如:c:pix
将软盘放入软驱(注意使用后,软盘格式windows将无法识别,需要彻底格式化才可使用)
运行rawrite.exe,按提示输入bin文件名,软驱盘符,等待程序制作口令恢复盘
制作完毕后,将软盘放入pix的软驱中,按reset按钮,系统自动重启,会从软驱启动,并提示是否要删除口令,输入y,确认删 除,系统删除口令成功后,会自动重启,取出软盘,系统启动后登录口令为cisco,enable口令默认为空
如果系统显示booting floppy,但是没有任何提示就又从flash引导系统了,可能是由于pix内的软驱线没有连接,有人为了确保口令安全而将软 驱的线从机箱中拆除掉,通过观察启动时软驱灯是否亮就可以判断

*********************************************
pix防火墙口令恢复 --不带软驱

主旨是要覆盖原bin文件
进入m
m interface 0
0: i8255x @ pci(bus:0 dev:13 irq:10) 1: i8255x @ pci(bus:0 dev:14 irq:7 ) using 0: i82559 @ pci(bus:0 dev:13 irq:10), mac: 0050.54ff.82b9
设置本端口地址 m
address 10.21.1.99
设置服务器地址 m
server 172.18.125.3
获取文件 m file np52.bin
设置网关 m gateway 10.21.1.1
m ping 172.18.125.3 sending 5, 100-byte 0xf8d3 icmp echoes to 172.18.125.3, timeout is 4 sec !!!!! success rate is 100 percent (5/5)
执行下载传输命令m tftp
tftp np52.bin@172.18.125.3 via 10.21.1.1............................

............................................................ ........

................................................. received 73728 bytes cisco secure pix firewall password tool (3.0) 0: tue aug 22 23:22:19 pdt 2000 flash=i28f640j5 @ 0x300 bios flash=at29c257 @ 0xd8000 do you wish to erase the passwords? [yn] y passwords have been erased. rebooting.... 28.

-----------------------------end---------------------------- -----------