May 20, 2012, 12:54:11 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: THC is up and running !
 

 
advertisement:

Pages: [1]
  Print  
Author Topic: HBH Timed 8  (Read 694 times)
zomgwtfbbq
Challenge Coder
Administrator
Hero Member
*****

Karma: +31340/-1
Posts: I am a geek!!


thc title: thc elite
thc points: 3315
challenges: (69/83)

View Profile
« on: March 17, 2009, 11:27:47 AM »
Share on FacebookFacebook Share

Quote

You have to find out the value of 'a'.
Post back your answer, where ans = a

a+78x51=300

Don't forget to change the CURLOPT_COOKIE option value to your own cookie.

<?php
$curl 
curl_init();
curl_setopt($curlCURLOPT_URL,"http://www.hellboundhackers.org/challenges/timed/timed8/index.php");
curl_setopt($curlCURLOPT_RETURNTRANSFER1);
curl_setopt($curlCURLOPT_FOLLOWLOCATION1);
curl_setopt($curlCURLOPT_VERBOSE1);
curl_setopt($curlCURLOPT_COOKIE,"fusion_user=20837.xxxxxxxxxxxxxxxx; PHPSESSID=xxxxxxxxx;");
curl_setopt($curlCURLOPT_USERAGENT"Mozilla/5.0 (X11; U; Linux i686; it; rv:1.8.1.5) Gecko/20070713 Firefox/2.0.0.5");
$result curl_exec($curl);
curl_close($curl);
//where ans = a

a+62x78=271

preg_match_all
('/a\+[0-9]+x[0-9]+=[0-9]+/',$result,$aMatch);
// sum without +a
$sSum substr($aMatch[0][0],2);
// break sum up in parts
$aSum explode("=",$sSum);
// break apart multiplification factor
$aMulti explode("x",$aSum[0]);
// determine a var
$iNumber $aSum[1] - ($aMulti[0] * $aMulti[1]);
$curl1 curl_init();
curl_setopt($curl1CURLOPT_URL,"http://www.hellboundhackers.org/challenges/timed/timed8/index.php");
curl_setopt($curl1CURLOPT_POST1);
curl_setopt($curl1CURLOPT_POSTFIELDS"ans=".$iNumber);
curl_setopt($curl1CURLOPT_RETURNTRANSFER1);
curl_setopt($curl1CURLOPT_FOLLOWLOCATION1);
curl_setopt($curl1CURLOPT_COOKIE,"fusion_user=20837.xxxxxxxxxxxxxxxxxxxxx; PHPSESSID=xxxxxxxxxxxxxxxxxxxxx;");
curl_setopt($curl1CURLOPT_USERAGENT"Mozilla/5.0 (X11; U; Linux i686; it; rv:1.8.1.5) Gecko/20070713 Firefox/2.0.0.5");
curl_setopt($curl1CURLOPT_REFERER,"http://www.hellboundhackers.org/challenges/timed/timed8/index.php");
$result1 curl_exec($curl1);
curl_close($curl1);
print 
$result1;
?>
Logged


only registered users with at least 25 hack challenge points can see links:
  click here in order to visit the hack challenges


Ook al ben ik een slet toch houdt ik van je..
Pages: [1]
  Print  
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
RSS: OpenFeint gets SMS invites, timed leaderboards
Internet News
zomgwtfbbq 0 56 Last post August 18, 2010, 05:12:17 PM
by zomgwtfbbq
SMF Board hacked and modded by zomgwtfbekjam aka Rembo from Tools & Design