Follow us on Twitter!
Things are more like they are now than they have ever been before. - Dwight D. Eisenhower
Saturday, April 19, 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: 22
Guests Online: 22
Members Online: 0

Registered Members: 82832
Newest Member: SerMSYS
Latest Articles
View Thread

HellBound Hackers | Challenges | Timed Challenges

Author

cURL problems

viperfx
Member

Your avatar

Posts: 15
Location: NearYou‭‮
Joined: 19.02.08
Rank:
Newbie
Posted on 27-02-08 07:25
for timed 1: i use like this
Code

<?php

$url = "http://www.hellboundhackers.com/challenges/timed/timed1/index.php;

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL,$url);
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.6) Gecko/20070725 Firefox/2.0.0.6");
curl_setopt($ch, [CENSORED]);
$result = curl_exec($ch);
curl_close($ch);

[some codes to get the base64 string]

$dec= base64_decode($base);
$url = "http://www.hellboundhackers.org/challenges/timed/timed1/index.php?b64=$dec";

header("Location: $url");
?>





the location i get is always url-decoded. so ` was interpreted as %60.

2. timed2, i code it and get "Malformed Request".
Code

<?php

$url = "http://www.hellboundhackers.org/challenges/timed/timed2/index.php";
//$url = "http://localhost/timed2.htm";
$ch = curl_init();

[same curl declarations]

[some code to get sum, store it in $jmlh]

$url = "http://www.hellboundhackers.org/challenges/timed/timed2/index.php?check";
$ch = curl_init();

curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "ans=" . $jmlh);
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.6) Gecko/20070725 Firefox/2.0.0.6");
curl_setopt($ch, CURLOPT_COOKIE, [CENSORED]);
$result = curl_exec($ch);
curl_close($ch);

echo $result;





plz help me with these problems. thnx



Edited by viperfx on 27-02-08 08:41
Author

RE: cURL problems

Parker
Member



Posts: 77
Location: England, UK
Joined: 26.11.07
Rank:
Newbie
Posted on 27-02-08 07:49
Please use the code tags
And also, try and make your problem abit clearer (Literally)

Hmmm, i can't say i know your problem though.. Sorry.



[img]http://i19.photobucket.com/albums/b153/Golden_Lemur/parkersig.png [/img]


Cheers Lemur


The Ultimate security will not protect you, it is your understanding of reality that will. - ZoDoom

The 1st thing to do, is to have "certainty" that it is not a hardware problem! - RootsBabilonia
silance@hotmail.co.uk
Author

RE: cURL problems


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 27-02-08 08:24
In timed2 you send wrong data in postfields
they are usually a bit different from GET .