Join us at IRC!
Things are more like they are now than they have ever been before. - Dwight D. Eisenhower
Wednesday, May 23, 2012
Navigation
Members Online
Total Online: 34
Web Spiders: 17
Guests Online: 32
Members Online: 2

Registered Members: 70173
Newest Member: TheGreek
Latest Articles
View Thread

HellBound Hackers | Challenges | Timed Challenges

Author

cURL help

slpctrl
Member

Posts: 945
Location: 2147483647
Joined: 19.04.07
Rank:
God
Posted on 29-11-07 16:47
Every time I try to use my cURL scblockedript, 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 :\
http://www.totse.com
Author

RE: cURL help

spyware
Member



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




"The chowner of property." - Zeph
“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
“Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor?” - Ebert
http://bitsofspy.net
Author

RE: cURL help

slpctrl
Member

Posts: 945
Location: 2147483647
Joined: 19.04.07
Rank:
God
Posted on 29-11-07 16:58
spyware wrote:
What is your host?


I'm hosting locally.
http://www.totse.com
Author

RE: cURL help

spyware
Member



Posts: 4190
Location: The Netherlands
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.




"The chowner of property." - Zeph
“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
“Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor?” - Ebert
http://bitsofspy.net
Author

RE: cURL help

slpctrl
Member

Posts: 945
Location: 2147483647
Joined: 19.04.07
Rank:
God
Posted on 29-11-07 21:13
Bleh I'm stumped. Would anyone care to take a look at my scblockedript and see if I'm doing it right or wrong plz?
http://www.totse.com
Author

RE: cURL help

rumburak
Member

Posts: 47
Location:
Joined: 24.07.07
Rank:
Elite
Posted on 29-11-07 23:11
I would care.
rumburak.biz
Author

RE: cURL help

slpctrl
Member

Posts: 945
Location: 2147483647
Joined: 19.04.07
Rank:
God
Posted on 01-12-07 23:42
Got it.

Edited by slpctrl on 02-12-07 00:15
http://www.totse.com
Author

RE: cURL help

Flash
%00

Posts: 898
Location:
Joined: 14.05.06
Rank:
God
Posted on 02-12-07 01:20
Wow, way-to-go.

Care to share?


^.^
Author

RE: cURL help

slpctrl
Member

Posts: 945
Location: 2147483647
Joined: 19.04.07
Rank:
God
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:


$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 scblockedript, 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 slpctrl on 02-12-07 01:53
http://www.totse.com
Author

RE: cURL help

sharpskater80
Member

Posts: 170
Location: Missouri
Joined: 18.09.05
Rank:
God
Warn Level: 10
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 scblockedript for #1 and modified it accordingly for the next 3.
Author

RE: cURL help

slpctrl
Member

Posts: 945
Location: 2147483647
Joined: 19.04.07
Rank:
God
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 scblockedript 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 :p

Edited by slpctrl on 02-12-07 08:23
http://www.totse.com
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.