Home Funny Pictures YouTube Funny Videos Funny GIFs Text/Links Channels Search

Site hack challenge

 
Tags: site | hack | bored
-6
Views: 324
Favorited: 0
Submitted: 08/19/2012
Share On Facebook
Add to favorites Subscribe to herpdaki Subscribe to computer-geek E-mail to friend submit to reddit
Share on facebook Share on StumbleUpon Share on Tumblr Share on Google Plus E-mail to friend
Show:   Top Rated Controversial Best Lowest Rated Newest Per page:
Order:

Show All Replies Show Shortcuts
#1 - kothaex (08/19/2012) [-]
I'm a complete noob at stuff like this, but I want to program for a living so i'll give it a shot.
Point me in the right direction for level 1?
User avatar #2 to #1 - herpdaki (08/19/2012) [-]
Press begin near the top.

Also the first few levels basically just involve page source.
User avatar #3 to #2 - kothaex (08/19/2012) [-]
Yeah i'm on the first one, I found the begin button. -.-
Point me in the right direction for the first one.
I don't know javascript, I messed with it once for my computing exam but forgot it all ages ago.
User avatar #4 to #3 - herpdaki (08/19/2012) [-]
Once you have the page source open just view the javascript and look for something that relates to a password.
User avatar #5 to #4 - kothaex (08/19/2012) [-]
Hm. On google chrome how do I look at the entire page source. I can only seem to find specific elements' code, with the 'inspect element' option.
User avatar #7 to #5 - herpdaki (08/19/2012) [-]
That's actually the right thing to do. Once you press inspect element somewhere, the page source will pop up.

then look for this: <script language="JavaScript">

near that is the part I was talking about.
User avatar #13 to #7 - press (08/19/2012) [-]
ok bro you are the 365th prtdon to "mention" me in a comment heres a thumb.
User avatar #14 to #13 - herpdaki (08/19/2012) [-]
lol thanks
User avatar #6 to #5 - kothaex (08/19/2012) [-]
Oh, there is a 'view page source' option.
Not very useful though:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>::[ Try to hack ]::</TITLE></HEAD><SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
document.write('<FRAMESET COLS="100%,*" FRAMEBORDER="NO" BORDER="0"><FRAME SRC="news.php" SCROLLING="AUTO"></FRAMESET>')
//-->
</SCRIPT><BODY></BODY></HTML>
User avatar #8 to #6 - herpdaki (08/19/2012) [-]
You can also use "view frame source."
It works the same way as inspect element.
User avatar #11 to #8 - kothaex (08/19/2012) [-]
Aaand, level 2 got me stumped.
Apparently it is not
'Hacker007'
'hyundai'

nor is it

'ozzy'
'ozburn'
User avatar #12 to #11 - herpdaki (08/19/2012) [-]
There's a little trick there, yes lol.
For here, try to find the element that directly corresponds to the submit button and see if you notice anything strange.
User avatar #15 to #12 - kothaex (08/19/2012) [-]
Ok, can't find it.
I've tried moving onto the next page manually by using the URL for page 3, asks for password but none work.
I also can't find a way to run Tryi
or for the form to run and accept the info, as the continue button is of type 'reset'.
User avatar #16 to #15 - herpdaki (08/19/2012) [-]
When you use the URL for level three, do you get a popup asking for the password?
If so, then that is the correct level 3.

if not, then I'll give you another hint.

Here's the script (I'm sure you've already looked through it)
<script language="JavaScript">function Tryi(uzer,pswd){if(uzer"ozzy" && pswd"osburn"){alert("Great! Go to the 3d level...");location.href="level3-kbbe.htm";}else{alert("Wrong username and/or password. Go away...");location.href="about:blank";}}</script>

and here's the button
form name="testi">username: <input type="text" name="uzr" size="20"><br>password: <input type="password" name="pass" size="20"><br><br><input type="reset" value="Click if you want to continue" onclick="Tryi(testi.pass.value, testi.uzr.value)"></form>

I've underlined the part that should seem strange.
User avatar #18 to #16 - kothaex (08/19/2012) [-]
Oh it says uzr instead of uzer.
I still don't know how to make that work though.
User avatar #19 to #18 - herpdaki (08/19/2012) [-]
ok lol well you got that uzr=ozzy and pass=osburn,
but the button is accepting them in reverse order.
i.e. the username is pass (osburn).
and the password is uzr (ozzy).
User avatar #20 to #19 - kothaex (08/19/2012) [-]
Oh.
Cool, thanks.
User avatar #17 to #16 - kothaex (08/19/2012) [-]
Tired, and haven't done programming, coding, javascript of any kind in ages.
Enlighten me.
User avatar #10 to #8 - kothaex (08/19/2012) [-]
Wait, I got it.
View frame works fine.
Thanks.
Time for level 2 now.
User avatar #9 to #8 - kothaex (08/19/2012) [-]
Well 'view source' only brings up those lines of code.
Inspect element only brings up the code for that element.
How do I bring up the entire page in code?
 Friends (0)