June 19, 2013, 04:09:08 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: THC Hack Challenges Released!
 

 
advertisement:

Pages: [1]
  Print  
Author Topic: programming:2  (Read 351 times)
zomgwtfbbq
Challenge Coder
Administrator
Hero Member
*****

Karma: +31341/-1
Posts: I am a geek!!


thc title: thc elite
thc points: 3315
challenges: (69/83)

View Profile
« on: February 20, 2010, 12:58:17 PM »
Share on FacebookFacebook Share

programming:2 - finding hidden directories
As you can see this challenge requires you to find a file in a directory, now ofcourse you could do it the time consuming way and keep trying until you find the directory, or do it smarter, and write a program that attempts to find the file.

Alright, as you can see there's a folder called adminxxx, the three x's stand for numbers or alphanumeric characters, this means you'll have to code something that will automatically generate a folder with the following name admin[a-zA-Z0-9]{3}, this is the easiest part.

Once you have coded a script that generates this string, it's time to make a connection and see if the particular file actually exists, there are several php functions that are able to do this, I personally used fsockopen to beat this one.

Have fun!
Logged


only registered users with at least 25 hack challenge points can see links:
  click here in order to visit the hack challenges


Ook al ben ik een slet toch houdt ik van je..
Pages: [1]
  Print  
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
RSS: AVR Programming 01: Introduction
Hacking RSS Tutorials
zomgwtfbbq 0 157 Last post October 23, 2010, 05:18:29 PM
by zomgwtfbbq
RSS: Key fob programming
Hacking RSS Tutorials
zomgwtfbbq 0 131 Last post July 13, 2010, 04:22:00 PM
by zomgwtfbbq
RSS: PHP 5 Power Programming
Nulled Scripts
zomgwtfbbq 0 158 Last post June 08, 2010, 06:44:41 AM
by zomgwtfbbq
RSS: JTAG programming over a network
Hacking RSS Tutorials
zomgwtfbbq 0 111 Last post June 01, 2010, 05:20:24 PM
by zomgwtfbbq
SMF Board hacked and modded by zomgwtfbekjam aka Rembo from Tools & Design