Welcome to HBH! If you had an account on hellboundhacker.org you will need to reset your password using the Lost Password system before you will be able to login.

cURL problems


viperfx's Avatar
Member
0 0

for timed 1: i use like this

<?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.

  1. timed2, i code it and get "Malformed Request".
<?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


Parker's Avatar
Ph4n70m
0 0

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.


ghost's Avatar
0 0

In timed2 you send wrong data in postfields they are usually a bit different from GET .