论坛升级后通告

论坛注册须知

NetEmu社区 FAQ

NetEmu招募新版主

企业IT架构选型选购与应用

中小企业轻松建网实操攻略

论坛强烈声明

广告招租QQ:1164258114

返回列表 回复 发帖

[原创] 在PIX OS上打开webvpn

看到这个话题,一般懂CISCO FW的人会觉得奇怪,PIX 不支持WEBVPN,只有ASA才支持,没错.从硬件上来说 pix 任何一个型号都是不支持WEBVPN的,但是从软件上来看 pix与asa 在8.x之前(具体哪个小版本不详)是完全一样的,你可以认为PIXOS 与ASA OS 仅仅只是文件名不同.那么也就是说pix os 本质上是支持webvpn的.

注意:本文一下将介绍如何修改pixos,来打开webvpn.并用pemu加载.
我想说的是, 以下内容仅供学习交流之用,请不要做任何超出该范围之外的事.否则任何法律问题,后果自负.




1.验证pix722.bin MD5

#md5sum pix722.bin
d2641f1441347b0204449da1d4a06758  pix722.bin
之后解压pix722.bin
#unzip pix722.bin

2.去除image 校验认证

原       : 000122a4: e8 57 fc f3 00 85 c0 0f 84 86 01 00 00
修改后: 000122a4: 90 90 90 90 90 90 90 90 90 90 90 90 90
  
注意我使用的是
linux 下的16进制编辑器hexedit
#hexedit pix722.bin
然后 Ctrl+G 输入0x122a4
光标将定位到
000122A0   00 00 10 00  E8 57 FC F3  00 85 C0 0F  84 86 01 00  .....W..........
000122B0   00 8B 45 EC  89 44 24 04  8B 45 F0 89  04 24 E8 DD  ..E..D$..E...$..
将上面红色字段修改为以下蓝色字段
000122A0   00 00 10 00  90 90 90 90 90 90 90 90 90 90 90 90  .....W..........
000122B0   90 8B 45 EC  89 44 24 04  8B 45 F0 89  04 24 E8 DD  ..E..D$..E...$..
继续下一步操作

3.修改webvpn是否开启的函数
原       : 00d31c18: 55 89 e5 57
修改后: 00d31c18: 31 C0 40 C3
光标定位到:
00D31C10   00 8D BC 27  00 00 00 00  55 89 E5 57  56 83 EC 20  ...'....U..WV..
将上面红色字段修改为以下蓝色字段
00D31C10   00 8D BC 27  00 00 00 00  31 C0 40 C3 56 83 EC 20  ...'....U..WV..
继续下一步操作


4.修改返回得到许可的ssl peers数量的函数
原       : 00f5c990: 55 a1 70 4c 3a 01
修改后:  00f5c990: b8 00 01 00 00 c3
光标将定位到
00F5C990   55 A1 70 4C  3A 01 89 E5  5D C3 8D B6  00 00 00 00  U.pL:...].......
将上面红色字段修改为以下蓝色字段
00F5C990   b8 00 01 00 00 c3 89 E5  5D C3 8D B6  00 00 00 00  U.pL:...].......

完成上面三个步骤 按F2保存,Ctrl+C,退出
之后就可以使用PEMU来加载这个修改过的PIX OS 了


5.使用pemu加载
pixfirewall# show version

Cisco PIX Security Appliance Software Version 7.2(2)

Compiled on Wed 22-Nov-06 14:16 by builders
System image file is "Unknown, monitor mode tftp booted image"
Config file at boot was "startup-config"

pixfirewall up 51 secs

Hardware:   PIX-525, 128 MB RAM, CPU Pentium II 1 MHz
Flash E28F128J3 @ 0xfff00000, 16MB
BIOS Flash AM29F400B @ 0xfffd8000, 32KB

0: Ext: Ethernet0           : address is 00aa.0000.0202, irq 9
The Running Activation Key is not valid, using default settings:

pixfirewall# conf t
pixfirewall(config)# web
pixfirewall(config)# webvpn
pixfirewall(config-webvpn)# ?

WebVPN commands:
  apcf                         Load Application Profile Customization Framework
                               (APCF) profile
  authorization-dn-attributes  The DN of the peer certificate used as username
                               for authorization
  authorization-required       Require users to authorize successfully in order
                               to connect
  auto-signon                  Auto signon
  cache                        Configure WebVPN cache
  character-encoding           Configures the character encoding for WebVPN
                               portal pages
  csd                          This specifies whether Cisco Secure Desktop is
                               enabled and the package file name to be used.
  customization                Configure WebVPN GUI Customization object
  default-idle-timeout         This is the default idle timeout in seconds
  enable                       Enable WebVPN on the specified interface
  exit                         Exit from WebVPN configuration mode
  file-encoding                Configures the file encoding for a file sharing
                               server
  help                         Help for WebVPN commands
  http-proxy                   This is the proxy server to use for HTTP
                               requests
  https-proxy                  This is the proxy server to use for HTTPS
                               requests
  java-trustpoint              Configure WebVPN java trustpoint
  memory-size                  Configure WebVPN memory size
  no                           Remove a WebVPN command or set to its default
  port                         WebVPN should listen for connections on the
                               specified port
  port-forward                 Configure the port-forward list for WebVPN
  proxy-bypass                 Configure proxy bypass
  rewrite                      Configure content rewriting rule
  sso-server                   Configure an SSO Server
  svc                          This specifies whether the SSL VPN Client is
                               enabled and the package file name to be used.
  tunnel-group-list            Configure WebVPN group list dropdown in login
                               page
  url-list                     Configure a list of URLs for use with WebVPN
pixfirewall(config-webvpn)#





真的是重大发现,太强了。我有两个问题:
1. 如果是换一个PIX版本v8.0该如何来做第二、三、四步呢,同样的字串吗,这些字串怎么来的呢?
2. 缺省ASA支持2个webvpn client,这个也是一样么?
多谢。。。。

[ 本帖最后由 redbear 于 2008-6-10 08:30 编辑 ]
不要拿PIX OS 7.22以外的任何OS去做尝试!
又学到好东西了!
嘿.. 锅巴好样的!!!!
If you want to contact with me.
Please Enter My Web Site.
Http://Www.Ice-Man.Cn          Http://Www.CiscoVista.Cn

Dear sir
Could you shared your already modify PIX 7.22 IOS ??  Tks
原帖由 lunai 于 2008-6-10 09:32 发表
Dear sir
Could you shared your already modify PIX 7.22 IOS ??  Tks
http://netemu.cn/Soft/CiscoIos/20071029/383-1.html
www.netemu.cn
致力于网络模拟器的应用
ps:模拟器问题请在论坛直接提问
锅巴真是太厉害了
问:CCIE-security难考吗?
答:没有难不难考,只有努力与不努力.
感谢这位朋友点化.
嗯,不错,用WinHex或UltraEdit在Windows下一样操作。
这个地址http://netemu.cn/Soft/CiscoIos/20071029/383-1.html下的好像不是722啊。
按照锅巴老大的制作的ios文件,大家可以用用看看
http://rapidshare.com/files/1213 ... pix_webvpn.rar.html
有个问题,这个csd怎么配置呢??/
牛................
成功了.謝謝....不知道8.0如何.....
搞定了,呵呵,不过也只能看看,要是有个设备就好咯。。。。
呵呵,看看而已.........
超级棒,!锅巴巨献!~
谁谓河广,一苇杭之

开博了:WWW.BluShin.CN
高手高手高高手,佩服
Very good! Excellent done! , but then we loose the unrestricted feature of the pix. Anyway, strong useful!
锅巴兄真是厉害。
www.netemu.cn
致力于网络模拟器的应用
ps:模拟器问题请在论坛直接提问
这是一项很邪恶的技术.
If you want to contact with me.
Please Enter My Web Site.
Http://Www.Ice-Man.Cn          Http://Www.CiscoVista.Cn

老锅,你实在太强,不愧是IT人士中的英雄,想必你和你的朋友都付出了辛苦的代价,各位兄弟,让我们为这些技术高超,无私精神的几位英雄致敬!

求助楼主

我有一台pix525,按照楼主的方法修改了ios,却不知按照什么格式才能打包回pix722.bin格式。目前是这样试验的,原来的pix722.bin由0x17000前的部分和后面的zip archive格式组成,我把修改过的文件压缩为zip archive,然后与前0x17000字节合并,并修改了md5sum值,但是copy tftp flash会重新启动,更新不成功,估计是chksum或者sumval没有通过校验或者其他原因,请高手赐教,不胜感激..
锅巴能否告知这方法是从哪儿来的,我想知道更多信息~
原帖由 pillow 于 2009-7-27 13:07 发表 锅巴能否告知这方法是从哪儿来的,我想知道更多信息~
7200emu.hacki.at论坛联系mmm123也就是pemu的作者,
www.netemu.cn
致力于网络模拟器的应用
ps:模拟器问题请在论坛直接提问
原帖由 wuliaozhai 于 2009-4-27 16:18 发表
我有一台pix525,按照楼主的方法修改了ios,却不知按照什么格式才能打包回pix722.bin格式。目前是这样试验的,原来的pix722.bin由0x17000前的部分和后面的zip archive格式组成,我把修改过的文件压缩为zip archive, ...
有与wuliaozhai 相同的问题,若是知道方法,也分享一下,共同进步~谢谢!
原帖由 admin 于 2009-7-27 13:11 发表


7200emu.hacki.at论坛联系mmm123也就是pemu的作者,
谢谢admin,那个论坛我也找到了,发了贴(http://7200emu.hacki.at/viewtopic.php?t=7416);并额外PM给他;但不知为什么一直没有回应……

我再以此贴中的一些字词去7200上搜搜看有无新的进展。
该帖子在这里:
http://7200emu.hacki.at/viewtopic.php?t=4299
可以看mmm123的回话,他确实在7200emu论坛发过,但是因为当时涉及到一些法律问题被版主删除了。
原帖由 wuliaozhai 于 2009-4-27 16:18 发表
我有一台pix525,按照楼主的方法修改了ios,却不知按照什么格式才能打包回pix722.bin格式。目前是这样试验的,原来的pix722.bin由0x17000前的部分和后面的zip archive格式组成,我把修改过的文件压缩为zip archive, ...
修改這個應該沒這麼簡單,要看看這個。jj說共有6處CRC呢。
http://hackaday.com/2008/09/28/upgrading-the-cisco-pix-506e/#comment-43889


另外uncompressed image你改的md5 checksum後面接下來的8個字節中的第3,4個,肯定也要改的。我目前還猜不出來算法是自自怎樣的。
多谢呀,真是太好了,能支持多模式吗
返回列表