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

<channel>
	<title>Burad&#039;s Blog &#187; xkcd</title>
	<atom:link href="http://www.aburad.com/blog/tag/xkcd/feed" rel="self" type="application/rss+xml" />
	<link>http://www.aburad.com/blog</link>
	<description>A computer nerd who would soon be an MBA</description>
	<lastBuildDate>Thu, 28 Oct 2010 15:53:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
		<item>
		<title>Purity of Mathematics</title>
		<link>http://www.aburad.com/blog/2008/06/purity-of-mathematics.html</link>
		<comments>http://www.aburad.com/blog/2008/06/purity-of-mathematics.html#comments</comments>
		<pubDate>Thu, 26 Jun 2008 18:00:06 +0000</pubDate>
		<dc:creator>burad</dc:creator>
				<category><![CDATA[offbeat]]></category>
		<category><![CDATA[mathematics]]></category>
		<category><![CDATA[xkcd]]></category>

		<guid isPermaLink="false">http://www.aburad.com/blog/?p=258</guid>
		<description><![CDATA[My friend, Abhishek has put up a series of posts which describes various branches of Mathematics (Applied Mathematics, Pure Mathematics). Some of you may not be able to read them as they are in hindi. Reading these I remembered a similar post on xkcd comparing purity of various field (branches) I&#8217;ll agree with it but [...]]]></description>
			<content:encoded><![CDATA[<p>My friend, <a href="http://kuchh-baatein.blogspot.com/">Abhishek </a>has put up a series of posts which describes various branches of Mathematics (<a href="http://kuchh-baatein.blogspot.com/2008/06/iii.html">Applied Mathematics</a>, <a href="http://kuchh-baatein.blogspot.com/2008/06/ii.html">Pure Mathematics</a>). Some of you may not be able to read them as they are in hindi.<br />
Reading these I remembered a similar post on xkcd comparing purity of various field (branches)</p>
<p><a href="http://xkcd.com/435/"><img src="http://imgs.xkcd.com/comics/purity.png" alt="mathematics purity" width="494" height="205" align="center" /></a><br />
I&#8217;ll agree with it but comic misses the Applied Mathematics, which i think will have application in the whole spectrum of various branches mentioned by comics.  On the other side Pure mathematics is purely based on reason, ignoring its usability.</p>
<blockquote><p>Mathematicians have always had differing opinions regarding the distinction between pure and applied mathematics. One of the most famous (but perhaps misunderstood) modern examples of this debate can be found in <a class="mw-redirect" title="G.H. Hardy" href="http://en.wikipedia.org/wiki/G.H._Hardy">G.H. Hardy&#8217;s</a> <em><a title="A Mathematician's Apology" href="http://en.wikipedia.org/wiki/A_Mathematician%27s_Apology">A Mathematician&#8217;s Apology</a></em>.</p>
<p>Applied mathematics sought to express physical truth in a mathematical framework, whereas pure mathematics expressed truths that were independent of the physical world.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.aburad.com/blog/2008/06/purity-of-mathematics.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Firefox about: pages</title>
		<link>http://www.aburad.com/blog/2007/01/firefox-about-pages.html</link>
		<comments>http://www.aburad.com/blog/2007/01/firefox-about-pages.html#comments</comments>
		<pubDate>Wed, 31 Jan 2007 09:16:00 +0000</pubDate>
		<dc:creator>burad</dc:creator>
				<category><![CDATA[firefox]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[xkcd]]></category>

		<guid isPermaLink="false">http://aburad.com/blog/?p=170</guid>
		<description><![CDATA[Special pages available in firefox : about: A simple prompt without any parameter will display the Mozilla “about” information. about:logo Displays firefox logo. about:licence Informaion regarding licencing, Mozilla Public licence, Source code licence about:buildconfig It shows the build platform configuration and parameters. about:blank — A blank page. Useful for setting as your homepage. about:cache Displays [...]]]></description>
			<content:encoded><![CDATA[<p>Special pages available in firefox :</p>
<ul>
<li><a href="about:"><strong>about:</strong></a> A simple prompt without any parameter will display the Mozilla “about” information.</li>
<li><a href="about:logo"><strong>about:logo</strong></a> Displays firefox logo.</li>
<li><a href="about:licence"><strong>about:licence</strong></a> Informaion regarding licencing, Mozilla Public licence, Source code licence</li>
<li><a href="about:buildconfig"><strong>about:buildconfig</strong></a> It shows the build platform configuration and parameters.</li>
<li><a href="about:blank">about:blank</a> — A blank page. Useful for setting as your homepage.</li>
<li><a href="about:cache"><strong>about:cache</strong></a> Displays info and statistics regarding memory cache device and disk cache device including the number of enteries, name of your cache’s directory and a list of the entries you can find there. From there ou can view cached webpages and images.</li>
<li><a href="about:config"><strong>about:config</strong></a> It provied you an nice interface to tweak firefox settings. It allows you to modify firefox preferences. Read <a href="http://kb.mozillazine.org/Firefox_:_FAQs_:_About:config_Entries">About:config entries</a> to more about it. These entries are stored in pref.js folder in your profile.</li>
<li><strong><a href="about:plugins">about:plugins</a> </strong>provides information regarding installed plugins (plugins help your browser perform specific functions like viewing special graphic formats or playing multimedia files.) like flash, quicktime, realplayer, adobe reader and java plugin</li>
<li><a href="about:credits"><strong>about:credits</strong></a> This is an alphabetically sorted list of all the people that gave their contribution to the development of Firefox.</li>
<li><a href="about:mozilla"><strong>about:Mozilla</strong></a> from <em>Book of Mozilla</em>, 7:15</li>
</ul>
<blockquote><p>And so at last the beast <em>fell</em> and the unbelievers rejoiced. But all was not lost, for from the ash rose a <em>great bird</em>. The bird gazed down upon the unbelievers and cast <em>fire</em> and <em>thunder</em> upon them. For the beast had been <em>reborn </em>with its strength <em>renewed</em>, and the followers of <em>Mammon</em> cowered in horror.</p></blockquote>
<p>Works with Flock too but with different Quote:<br />
from <em>Book of Mozilla</em>, 11:1</p>
<blockquote><p>And when the Beast had taken the quarter of the Earth under its rule, a quarter hundred Birds of Sulfur flew from the Depths. The birds crossed hundreds of mountain views and found twenty four wise men who came from the stars. And then it began, the believers dared to listen. Then, they took their pens and dared to create. Finally, they dared to share their deed with the whole of mankind. Spreading words of freedom and breaking the chains, the birds brought deliverance to everyone.</p></blockquote>
<p><span style="font-weight: bold">Update: (12th April 2007)<br />
</span></p>
<ul>
<li><a href="chrome://browser/content/browser.xul">chrome://browser/content/browser.xul</a> To open firefox inside firefox <img src='http://www.aburad.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
</ul>
<p><span style="font-weight: bold">Update: (13th April 2007)<br />
</span></p>
<ul>
<li><a href="http://www.mozilla.org/support/firefox/edit">Editing configuration files..</a></li>
</ul>
<p><span style="font-weight: bold">Update : (4th April 2008)</span></p>
<ul>
<li><a style="font-weight: bold" href="javascript:">javascript:</a> &#8211; opens the js console</li>
<li><a style="font-weight: bold" href="http://aburad.com/blog/wp-admin/view-source:google.com">view-source:www.google.com/</a> view source for given url</li>
</ul>
<p><strong>Update: (22nd April 2008)</strong></p>
<ul>
<li><a href="about:robots"><strong>about:robots</strong> </a> (Works with firefox versions later than v3 beta5) Message from Robots</li>
</ul>
<p><strong>Update: (2nd May 2008)</strong></p>
<ul>
<li>Type <a href="resource:"><strong>resource:</strong> </a> in your location bar to directly go to firefox installation directory.</li>
</ul>
<p><strong>Update: (5nd May 2008)</strong></p>
<ul>
<li><b><a href="about:crashes">about:crashes</a></b> (type it in location bar) to track all the crash reports that you have submitted whenever firefox crashes.</li>
</ul>
<p><a href="http://kb.mozillazine.org/About_protocol_links">About protocol links &gt;&gt;</a></p>
<p>Read <a href="http://www.mozilla.org/book/">The Book of Mozilla</a></p>
<p>Firefox: The Jewel of open Source, from xkcd<br />
<a href="http://xkcd.com/198/"><img src="http://imgs.xkcd.com/comics/perspective.png" alt="" /></a></p>
<p>Related Post:<br />
<a href="http://aburad.com/blog/2006/07/firefox-and-thunderbird-cheat-sheets.html">Firefox and Thunderbird cheat sheets</a><br />
<a href="http://aburad.com/blog/2005/10/firefox-tips.html">Firefox Tips</a><br />
<a href="http://aburad.com/blog/2005/11/speed-up-firefox.html">Speed up firefox</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.aburad.com/blog/2007/01/firefox-about-pages.html/feed</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>SQL Attacks : Hacking</title>
		<link>http://www.aburad.com/blog/2006/03/sql-attacks-hacking.html</link>
		<comments>http://www.aburad.com/blog/2006/03/sql-attacks-hacking.html#comments</comments>
		<pubDate>Sat, 04 Mar 2006 21:42:00 +0000</pubDate>
		<dc:creator>burad</dc:creator>
				<category><![CDATA[hacks]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[xkcd]]></category>

		<guid isPermaLink="false">http://aburad.com/blog/?p=50</guid>
		<description><![CDATA[Yesterday I was participating an hacking competetion in which at one stage I had login on a page and after that can get to next level . When at first i randomly typed any password. then it gave an sql error that &#8221; zero row selected&#8221; and incorrect password. So I thought of using SQL [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday I was participating an hacking competetion in which at one stage I had login on a page and after that can get to next level . When at first i randomly typed any password. then it gave an sql error that &#8221; zero row selected&#8221; and incorrect password. So I thought of using <span style="font-style: italic;">SQL string injection</span> . SQL is poor in security issues surrounding is the login and url strings. So idea is you give these values in login form :<br />
user : &#8216; OR 1=1&#8211;<br />
password : &#8216; OR 1=1&#8211;</p>
<p>and voila you are in. the other possible strings for password are :</p>
<ul>
<li><span style="font-style: italic;"> &#8216; OR a=a&#8211;</span></li>
<li><span style="font-style: italic;"> &#8216; or 0=0 #</span></li>
<li><span style="font-style: italic;"> &#8220;) or (&#8220;a&#8221;=&#8221;a</span></li>
<li><span style="font-style: italic;"> &#8216;) or (&#8216;a&#8217;='a</span></li>
</ul>
<p>A funny comic strip from xkcd illustrating  sql injection.<a href="http://xkcd.com/327/"><br />
<img src="http://imgs.xkcd.com/comics/exploits_of_a_mom.png" alt="xkcd" width="500" height="166" /></a></p>
<p>So whats the funda behind this :<br />
When you click &#8220;login&#8221; or &#8220;enter&#8221; on webpage the variables &#8216;userid&#8217; and &#8216;password&#8217;  are to sql. The underlying query is :</p>
<p><span style="font-style: italic;">SELECT * from auth_db where username = &#8216; $userid &#8216; AND password = &#8216;$password&#8217;</span></p>
<p>So if you have entered username = admin  and password = test123  then query executed will be :<br />
<span style="font-style: italic;">SELECT * from auth_db where username = &#8216; admin &#8216; AND password = &#8216;test123 &#8216;</span></p>
<p>So in auth_db , if userid and password are correct than corresponding row will be selected and as no of rows returned is &gt; 0 you will be granted access. But if password is incorrect than it will retun zero rows and permission won&#8217;t be granted. But if you use <span style="font-style: italic;">SQL string  injection </span>like if you put &#8216; OR 1=1&#8211; as password and username both than query executed will be :</p>
<p><span style="font-style: italic;">SELECT * from auth_db where username = &#8216; </span><span style="font-style: italic;">&#8216; OR 1=1&#8211;</span><span style="font-style: italic;"> &#8216; AND password = &#8221; OR 1=1&#8211; &#8216;</span></p>
<p>Because a pair of hyphens designate the beginning of a comment in SQL, the query becomes simply becomes :</p>
<p><span style="font-style: italic;">SELECT * from auth_db where username = &#8221; OR 1=1 </span></p>
<p>The expression 1=1 is always true for every row in the table, and a true expression or&#8217;d with another expression will always return true. So, assuming there&#8217;s at least one row in the Users table, this SQL will always return a nonzero count of records.So you are logged in now. And if in some cases But many times sql tries to parse = character in input strings and didn&#8217;t allow to do so, hence trick is using :<br />
&#8216; OR userid LIKE &#8216;%%</p>
<p>So resultant query will be</p>
<p><span style="font-style: italic;">SELECT * from auth_db where username = &#8216; </span>&#8216; OR userid LIKE &#8216;%% <span style="font-style: italic;">&#8216; AND password = &#8221; </span>OR userid LIKE &#8216;%% <span style="font-style: italic;">&#8216;</span><br />
So every string  matches &#8216;%%&#8217;  so it returns non zero number of and you are granted access.<br />
Not all SQL injection attacks involve forms authentication. All it takes is an application with some dynamically constructed SQL and untrusted user input. Most SQL-compliant databases, including SQL Server, store metadata in a series of system tables with the names sysobjects, syscolumns, sysindexes, and so on. This means that a hacker could use the system tables to ascertain schema information for a database to assist in the further compromise of the database. For example, the following text entered into the txtFilter textbox might be used to reveal the names of the user tables in the database:</p>
<pre class="clsCode" style="font-style: italic;">' UNION SELECT id, name, '', 0 FROM sysobjects WHERE xtype ='U' --</pre>
<p>The UNION statement in particular is useful to a hacker because it allows him to splice the results of one query onto another. In this case, the hacker has spliced the names of the user tables in the database to the original query of the Products table. The only trick is to match the number and datatypes of the columns to the original query. The previous query might reveal that a table named Users exists in the database. So after this with multiple queries you can get control over database.</p>
<p>Updated :<br />
Also visit <a href="http://spaces.msn.com/tamsun/Blog/cns%21549A39619D3FADA3%21488.entry">Ten hacker tricks to exploit SQL Server systems</a><br />
<a href="http://us2.php.net/mysql_real_escape_string">http://us2.php.net/mysql_real_escape_string</a><br />
<a href="http://www.unixwiz.net/techtips/sql-injection.html">http://www.unixwiz.net/techtips/sql-injection.html</a><br />
*******************************************************************************<br />
WARNING: the information provided is for educationally purposes only and not to be used for malicious use. i hold no responsibility<br />
********************************************************************************</p>
]]></content:encoded>
			<wfw:commentRss>http://www.aburad.com/blog/2006/03/sql-attacks-hacking.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

