Join us at IRC!
The important thing is not to stop questioning. - Albert Einstein
Thursday, May 17, 2012
Navigation
Members Online
Total Online: 35
Web Spiders: 14
Guests Online: 32
Members Online: 3

Registered Members: 70043
Newest Member: nixium
Latest Articles

Realistic 11



FLV Blaster - Download Music and Videos Faster

website security Detailed tutorial to beat the most difficult Realistic challenge (worth 150 points)! May contain spoilers!



Detailed tutorial to beat the most difficult Realistic challenge (worth 150 points)!

*Objectives*:

Clear the database
Delete all the pages

*Skills and prerequisites*:

Basic programming skill (cURL, PHP, Javascblockedript, HTML)
Application cracking and debugging

*Tutorial*:

Let's view the homepage: there's not so much there, so have a look at the Staff page. From there you will be able to see a picture and a list of names.
Now click on "Client Login". That page has got a (very basic) protection: when you insert a bad username/password combination, the form fields will be disabled and you'll be locked out. If it happens you should simply delete your "PHPSESSID" cookie and refresh the page. Click on "Help": the last point is very important. Now you should try every username you've found on the "Forgot password" page: there's only one valid user. Write down that username. Now you need its password. Go back to the login page... but, wait. What's the form action? Go to that URL, you'll be redirected: that's not what we're looking for. You need to view the source of that page: you'll find something very interesting! Ok, now you have the password too, so log in.

In the admin panel you'll have two options: "Remove Database" and "Delete Pages". You should complete them in that order.
You'll clear the database by doubling a random number and submitting it in less than one second. You will realize that it is impossible to do that manually: you'll need to code up something for that. The simplest solution is to use Javascblockedript: use document.body.innerHTML to retrieve the page content and location.replace("***?number=***") to submit the form.

In order to delete pages, you'll have to download a certain software called "KeyCheck". It is a Windows executable, and obviously it is a FILE. In which directory would you place a FILE? Ok, now it's time to crack it: open it with OllyDbg. Right click on the main window and choose "Search for -> All Referenced Text Strings". You'll notice that there's a nice UNICODE value there. You should convert it to another format, and CAPITALIZE (hint!) the result in order to pass the password check. The "Check" button is now named "Decrypt". Insert the random string provided by the admin panel and click on "Decrypt". Paste the result.

Congratulations! You've completed the challenge, and earned 150 points!

Please feel free to rate this article if it has been useful for you :)

Comments

JohnDoe on March 11 2007 - 19:22:21
Nice article miki, I wanted to do it with JS before but I was missing that little part :D
Larika on March 11 2007 - 21:27:04
Nice the javascblockedript part.
JohnDoe on March 11 2007 - 21:47:24
This should help all of you guys out -> http://www.w3schools.com/js/js_obj_string.asp
What_A_Legend on March 11 2007 - 23:58:06
Nice article helped me het so far,
mikispag on March 12 2007 - 12:28:47
Thank you for your great ratings and comments! I'm glad to help you!
Itachi Uchiha on March 13 2007 - 07:06:52
Nice one.
Post Comment

Sorry.

You must have completed the challenge Basic 1 and have 100 points or more, to be able to post.
Ratings
Rating is available to members only.

Please login or register to vote.

Awesome! 100% [8 Votes]
Very Good 0% [No Votes]
Good 0% [No Votes]
Average 0% [No Votes]
Poor 0% [No Votes]
Guest
Username

Password

Remember Me


Bookmark This Page
Affiliates
Adverts

 

 

Links
By using, viewing or obtaining any information contained on this site, you agree to the disclaimer.

© HellBound Hackers 2008- 2009. Since 3rd December 2004.