Follow us on Twitter!
Few are those who can see with their own eyes and hear with their own hearts. - Albert Einstein
Wednesday, April 23, 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: 31
Guests Online: 26
Members Online: 5

Registered Members: 82879
Newest Member: pinkyPink
Latest Articles
View Thread

HellBound Hackers | Challenges | Realistic

Author

real 2 php help


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 19-09-06 03:33
teh following code bellow says that a certain page works, but when i goto that page it doesnt work! is there something wrong with me PHP coding?
Code
<?php

for($i=0;$i<30;$i++)
{
  for($j=1;$j<25;$j++)
  {
    $sqlfile="http://hellboundhackers.org/challenges/real2/backups/backup_2004-09-0" . $i . "_" . $j . "00.sql";
    $file=fopen($sqlfile,"r");
   if(!$file)
   {
     echo "<h6>DOESNT WORK!";
   }
   else
     echo "<h1>WORKS!!!!";
  }
}

?>







Edited by on 19-09-06 03:39
Author

RE: real 2 php help


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 19-09-06 13:13
Im pretty sure if you get the wrong sql file you do recieve some data aswel, so maybe its the !file bit.
Author

RE: real 2 php help

SySTeM
Member

Your avatar

Posts: 1524
Location: England, UK
Joined: 27.07.05
Rank:
HBH Guru
Posted on 19-09-06 15:33
also, you've put this:

Code
else
echo "<h1>WORKS!!!!";
}




it should be:

Code
else
{
echo "<h1>WORKS!!!!";
}





img138.imageshack.us/img138/6527/sig2ak1.jpg
www.hellboundhackers.org/sig/r/2783.png

http://www.elites0ft.com/
Author

RE: real 2 php help


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 25-09-06 01:49
i have redone my file, and this is what i have come up with:

Code
<?php

for($i=0;$i<32;$i++)
{
  for($j=0;$j<24;$j++)
  {
    if($i<10)
    {
      $sqlfile="http://hellboundhackers.org/challenges/real2/backups/backup_2004-09-0" . $i . "_" . $j . "00.sql";
      $file=fopen($sqlfile,"r");
      $theData=fread($file, filesize($sqlfile));
    }
    else
    {
      $sqlfile="http://hellboundhackers.org/challenges/real2/backups/backup_2004-09-" . $i . "_" . $j . "00.sql";
      $file=fopen($sqlfile,"r");
      $theData=fread($file, filesize($sqlfile));
    }
  }
}

?>