Follow us on Twitter!
One mans freedom fighter, another's terrorist.
Friday, April 25, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 19
Guests Online: 19
Members Online: 0

Registered Members: 82908
Newest Member: krishna7799
Latest Articles
View Thread

HellBound Hackers | Challenges | Timed Challenges

Author

cURL help


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 29-11-07 16:47
Every time I try to use my cURL script, it always takes longer than 1 second to load and I can't seem to get it to work whatsoever, even through the night when nobody is on. I haven't really thought of any other method to use, can anyone maybe point me in a direction I'm lost :\
Author

RE: cURL help

spyware
Member



Posts: 4192
Location:
Joined: 14.04.07
Rank:
God
Warn Level: 90
Posted on 29-11-07 16:53
What is your host?



img507.imageshack.us/img507/3580/spynewsig3il1.png
"The chowner of property." - Zeph
[small]
Widespread intellectual and moral docility may be convenient for leaders in the short term,
but it is suicidal for nations in the long term.
- Carl Sagan
[center]�Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor?� - Ebert[/ce
Author

RE: cURL help


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 29-11-07 16:58
spyware wrote:
What is your host?


I'm hosting locally.
Author

RE: cURL help

spyware
Member



Posts: 4192
Location:
Joined: 14.04.07
Rank:
God
Warn Level: 90
Posted on 29-11-07 17:00
Maybe it's your internet connection. But more possible would be you haven't optimized your code. Try to optimize it, when you open the connection immediately create and post your data.



img507.imageshack.us/img507/3580/spynewsig3il1.png
"The chowner of property." - Zeph
[small]
Widespread intellectual and moral docility may be convenient for leaders in the short term,
but it is suicidal for nations in the long term.
- Carl Sagan
[center]�Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor?� - Ebert[/ce
Author

RE: cURL help


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 29-11-07 21:13
Bleh I'm stumped. Would anyone care to take a look at my script and see if I'm doing it right or wrong plz?
Author

RE: cURL help


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 29-11-07 23:11
I would care.
Author

RE: cURL help


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 01-12-07 23:42
Got it.

Edited by on 02-12-07 00:15
Author

RE: cURL help


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 02-12-07 01:20
Wow, way-to-go.

Care to share?


Author

RE: cURL help


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 02-12-07 01:49
Flash wrote:
Wow, way-to-go.

Care to share?



Well, I don't wanna post my whole code as that's an instant spoiler, but here's what I was doing wrong:


After the initial cURL to get the page, I decided for some reason to use header( 'Location: http://www.hellboundhackers.org/challenges/timed/timed1/index.php?b64=.$var' ) ;

Among other things, until I decided that the best way to tackle it and use the very least time is to use cURL to get the page, like so:

Code

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"http://www.hellboundhackers.org/challenges/timed/timed2/index.php");
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11");
curl_setopt($ch, CURLOPT_COOKIE,"PHPSESSID=censored; fusion_user=censored");
$result = curl_exec($ch);
curl_close($ch);





Then after the page has been processed, use the preg_match_all() function to find each string after "string: ". This information is stored in the $result variable (That's where the HTML of the page that cURL retrieved is). Single the variable out by selecting only one element out of the array like so: $matches[1][0] then it's a simple matter of using the base64_decode() function on $matches[1][0], and then use cURL once more to get the URL

http://www.hellboundhackers.org/challenges/timed/timed1/index.php?b64=

and append the variable to the end that you assigned to the base64_decode ($string=base64_decode($matches[1][0]);
It should look very similar to the first cURL script, except the URL difference. The new URL option for cURL will look something like this:

curl_setopt($ch1, CURLOPT_URL,"http://www.hellboundhackers.org/challenges/timed/timed1/index.php?b64=" . $string);

Hope this helps, and I hope it's not a spoiler. If there are sections that spoil the challenges feel free to remove.

Edited by on 02-12-07 01:53
Author

RE: cURL help


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 02-12-07 07:46
Well, I don't know if it is, there isn't much to it anyway. I just made my curl script for #1 and modified it accordingly for the next 3.
Author

RE: cURL help


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 02-12-07 08:20
sharpskater80 wrote:
Well, I don't know if it is, there isn't much to it anyway. I just made my curl script for #1 and modified it accordingly for the next 3.


Yeah I know, that's why I thought it may have been a spoiler. Because there's not much to it after cURL. Besides, I was kinda getting sick of seeing all these 'how do i hack hotmail' and mentor threads Pfft

Edited by on 02-12-07 08:23