5 ms·
$data = "http://hackerunderground.com/solution/blank; $ch = curl_init($data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $base = curl_exec($ch);
by redredraider 16y ago
$data = "http://hackerunderground.com/solution/blank;
$ch = curl_init($data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$base = curl_exec($ch);
for($i=0;$i<10000;$i++)
{
$data = "http://hackerunderground.com/solution/$i;
$ch = curl_init($data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
if($response != $base)
{
echo $i;
}
}
I like my solution best. Everyone should try it!
- mickdarling 16y agoThis will work for all the puzzles too. :-)
- biznickman 16y agoThat's a true hack ... :)
- jkkramer 16y agoI like how it keeps going even after it finds the solution.
- redredraider 16y agoHaha my bad.