<?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; javascript</title>
	<atom:link href="http://www.axino.net/tag/javascript/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.958 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 4.916 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.891 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.875 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.807 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.859 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.838 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>hackthissite.org solutions to all javascript missions</title>
		<link>http://www.axino.net/tutorial/2010/05/hackthissite-org-solutions-to-all-javascript-missions</link>
		<comments>http://www.axino.net/tutorial/2010/05/hackthissite-org-solutions-to-all-javascript-missions#comments</comments>
		<pubDate>Sat, 22 May 2010 22:59:51 +0000</pubDate>
		<dc:creator>Arxleol</dc:creator>
				<category><![CDATA[hackthissite.org]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[solution]]></category>

		<guid isPermaLink="false">http://www.axino.net/?p=942</guid>
		<description><![CDATA[Javascript missions Javascript Missions 1 :: Idiot Test Javascript Missions 2 :: Disable Javascript Javascript Missions 3 :: Math time Javascript Missions 4 :: Var? Javascript Missions 5 :: Escape! Javascript Missions 6 :: go go away .js Javascript Missions 7 :: JS Obfuscation. FTW! Similar Posts: Tutorials Javascript Missions 2 :: Disable Javascript JavaScript [...]]]></description>
			<content:encoded><![CDATA[<h1>Javascript missions</h1>
<ul>
<li><a href="../../tutorial/2009/06/javascript-missions-1-idiot-test">Javascript Missions 1 :: Idiot Test</a></li>
<li><a href="http://www.axino.net/tutorial/2010/01/javascript-missions-2-disable-javascript">Javascript Missions 2 :: Disable Javascript</a></li>
<li><a href="http://www.axino.net/tutorial/2010/05/javascript-missions-3-math-time">Javascript Missions 3 :: Math time</a></li>
<li><a href="http://www.axino.net/tutorial/2010/05/javascript-missions-4-var">Javascript Missions 4 :: Var?</a></li>
<li><a href="http://www.axino.net/uncategorized/2010/05/javascript-missions-5-escape">Javascript Missions 5 :: Escape!</a></li>
<li><a href="http://www.axino.net/hack/hack-this-site/2010/05/javascript-missions-6-go-go-away-js">Javascript Missions 6 :: go go away .js</a></li>
<li><a href="http://www.axino.net/tutorial/2010/05/javascript-missions-7-js-obfuscation-ftw">Javascript Missions 7 :: JS Obfuscation. FTW!</a></li>
</ul>
<p><strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.axino.net/tutorials" rel="bookmark" title="Wednesday 07.01.2009">Tutorials</a></li>
<li><a href="http://www.axino.net/tutorial/2010/01/javascript-missions-2-disable-javascript" rel="bookmark" title="Wednesday 06.01.2010">Javascript Missions 2 :: Disable Javascript</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/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/03/hack-test-com-3-link-colour" rel="bookmark" title="Saturday 20.03.2010">hack-test.com 3 :: link colour</a></li>
</ul>
<p><!-- Similar Posts took 4.640 ms --></p>
 <img src="http://www.axino.net/wordpress/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=942" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.axino.net/tutorial/2010/05/hackthissite-org-solutions-to-all-javascript-missions/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Javascript Missions 7 :: JS Obfuscation. FTW!</title>
		<link>http://www.axino.net/tutorial/2010/05/javascript-missions-7-js-obfuscation-ftw</link>
		<comments>http://www.axino.net/tutorial/2010/05/javascript-missions-7-js-obfuscation-ftw#comments</comments>
		<pubDate>Sat, 22 May 2010 09:37:32 +0000</pubDate>
		<dc:creator>Arxleol</dc:creator>
				<category><![CDATA[hackthissite.org]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[firebug]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[Google Chrome]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[solution]]></category>

		<guid isPermaLink="false">http://www.axino.net/?p=925</guid>
		<description><![CDATA[Now this one is really tricky if you are not using right tool. At first I was checking obfuscated code and couldn&#8217;t figure out much. Then I went to search trough source code of the page and didn&#8217;t find anything useful. Noteworthy is that I was using Google Chrome. Then I switched to Firefox and examined [...]]]></description>
			<content:encoded><![CDATA[<p>Now this one is really tricky if you are not using right tool. At first I was checking obfuscated code and couldn&#8217;t figure out much. Then I went to search trough source code of the page and didn&#8217;t find anything useful. Noteworthy is that I was using Google Chrome. Then I switched to Firefox and examined code with Firebug. And what surprise awaited me. Well see for yourself:</p>
<p><span id="more-925"></span><br />
<code> </code></p>
<p><code></p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;button onclick=&quot;javascript:if (document.getElementById(&amp;quot;pass&amp;quot;).value==&amp;quot;j00w1n&amp;quot;){alert(&amp;quot;You WIN!&amp;quot;);window.location += &amp;quot;?lvl_password=&amp;quot;+document.getElementById(&amp;quot;pass&amp;quot;).value}else {alert(&amp;quot;WRONG! Try again!&amp;quot;)}&quot;&gt;Check Password&lt;/button&gt;</pre></div></div>

<p></code></p>
<p>And this did not show up in Chrome really interesting. So you can see that password is: <strong>j00w1n</strong><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/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/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/11/hackertest-net-level-15" rel="bookmark" title="Saturday 28.11.2009">hackertest.net level 15 :: really valid photo</a></li>
<li><a href="http://www.axino.net/tutorial/2010/01/basic-web-hacking-13-forgotten-george" rel="bookmark" title="Friday 08.01.2010">Basic Web Hacking 13 :: Forgotten George</a></li>
</ul>
<p><!-- Similar Posts took 4.830 ms --></p>
 <img src="http://www.axino.net/wordpress/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=925" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.axino.net/tutorial/2010/05/javascript-missions-7-js-obfuscation-ftw/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Javascript Missions 6 :: go go away .js</title>
		<link>http://www.axino.net/hack/hack-this-site/2010/05/javascript-missions-6-go-go-away-js</link>
		<comments>http://www.axino.net/hack/hack-this-site/2010/05/javascript-missions-6-go-go-away-js#comments</comments>
		<pubDate>Wed, 19 May 2010 23:00:03 +0000</pubDate>
		<dc:creator>Arxleol</dc:creator>
				<category><![CDATA[hackthissite.org]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[solution]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.axino.net/?p=921</guid>
		<description><![CDATA[This is nice example of some kind of decoy strategy. At first when you opened mission you checked source code and found following two functions. RawrRawr = &#34;moo&#34;; function check&#40;x&#41; &#123; &#34;+RawrRawr+&#34; == &#34;hack_this_site&#34; if &#40;x == &#34;&#34;+RawrRawr+&#34;&#34;&#41; &#123; alert&#40;&#34;Rawr! win!&#34;&#41;; window.location = &#34;about:blank&#34;; &#125; else &#123; alert&#40;&#34;Rawr, nope, try again!&#34;&#41;; &#125; &#125; &#160; function [...]]]></description>
			<content:encoded><![CDATA[<p>This is nice example of some kind of decoy strategy. At first when you opened mission you checked source code and found following two functions.</p>
<p><span id="more-921"></span><br />
<code> </code></p>
<p><code></p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">RawrRawr <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;moo&quot;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">function</span> check<span style="color: #009900;">&#40;</span>x<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
<span style="color: #3366CC;">&quot;+RawrRawr+&quot;</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">&quot;hack_this_site&quot;</span>
<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>x <span style="color: #339933;">==</span> <span style="color: #3366CC;">&quot;&quot;</span><span style="color: #339933;">+</span>RawrRawr<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;&quot;</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;">&quot;Rawr! win!&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
window.<span style="color: #660066;">location</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;about:blank&quot;</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;Rawr, nope, try again!&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>
&nbsp;
<span style="color: #003366; font-weight: bold;">function</span> checkpassw<span style="color: #009900;">&#40;</span>moo<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
RawrRawr <span style="color: #339933;">=</span> moo<span style="color: #339933;">;</span>
checkpass<span style="color: #009900;">&#40;</span>RawrRawr<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p></code></p>
<p>Now if you check HTML code of the button you will notice that function is not among these two present.<br />
<code> </code></p>
<p><code></p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;button onclick=&quot;javascript:checkpass(document.getElementById('pass').value)&quot;&gt;Check Password&lt;/button&gt;</pre></div></div>

<p></code></p>
<p>So I followed this clue and found that above those two functions there is remotely connected javascript file.<br />
<code> </code></p>
<p><code></p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;script src=&quot;http://hackthissite.org/missions/javascript/6/checkpass&quot; type=&quot;text/javascript&quot;&gt;&lt;!--mce:0--&gt;&lt;/script&gt;</pre></div></div>

<p></code></p>
<p>When you open that file you will find following javascript code:<br />
<code> </code></p>
<p><code></p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">dairycow<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;moo&quot;</span><span style="color: #339933;">;</span>
moo <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;pwns&quot;</span><span style="color: #339933;">;</span>
rawr <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;moo&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">function</span> checkpass<span style="color: #009900;">&#40;</span>pass<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>pass <span style="color: #339933;">==</span> rawr<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot; &quot;</span><span style="color: #339933;">+</span>moo<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;How did you do that??? Good job!&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
window.<span style="color: #660066;">location</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;../../../missions/javascript/6/?lvl_password=&quot;</span><span style="color: #339933;">+</span>pass<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;Nope, try again&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></pre></div></div>

<p></code></p>
<p>I guess that from here you are already able to figure that password is: <strong>moo pwns</strong>. If not then ask <img src='http://www.axino.net/wordpress/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> <strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.axino.net/tutorial/2010/05/javascript-missions-4-var" rel="bookmark" title="Wednesday 19.05.2010">Javascript Missions 4 :: Var?</a></li>
<li><a href="http://www.axino.net/tutorial/2010/02/javascript-challenge-6-simple-strings" rel="bookmark" title="Wednesday 03.02.2010">JavaScript Challenge 6 :: Simple strings</a></li>
<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/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/hack/hackertestnet/2009/01/hackertestnet-level-6-linking-javascript" rel="bookmark" title="Thursday 15.01.2009">hackertest.net level 6 :: Linking javascript</a></li>
</ul>
<p><!-- Similar Posts took 4.973 ms --></p>
 <img src="http://www.axino.net/wordpress/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=921" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.axino.net/hack/hack-this-site/2010/05/javascript-missions-6-go-go-away-js/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
