Join us at IRC!
Don't judge the unknown - Grindordie
Wednesday, May 23, 2012
Navigation
Members Online
Total Online: 28
Web Spiders: 14
Guests Online: 26
Members Online: 2

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

HellBound Hackers | Challenges | Timed Challenges

Author

cURL problems

viperfx
Member



Posts: 15
Location: NearYou‭‮
Joined: 19.02.08
Rank:
God
Posted on 27-02-08 07:25
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.

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



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:
God
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.





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

rumburak
Member

Posts: 47
Location:
Joined: 24.07.07
Rank:
Elite
Posted on 27-02-08 08:24
In timed2 you send wrong data in postfields
they are usually a bit different from GET .
rumburak.biz
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.