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.
perl url checker
I was trying to make a url checker in perl and now im completely lost
$url = "http://www.hellboundhackers.org/challenges/real2/backups/backup_2004-09-$day_$hour00.sql";
$day = 1;
$hour = 1;
use LWP::Simple;
while(!$check)
{
print $day, " ", $hour, "\n";
$hour = $hour + 1;
if($hour == 24)
{
$day = $day + 1;
$hour = 1;
}
if($day = 1||2||3||4||5||6||7||8||9)
{
$day = "$day";
}
if($hour = 1||2||3||4||5||6||7||8||9)
{
$hour = "$hour0";
}
if($day == 31)
{
print "YOU SCREWED UP, NOTHING WAS FOUND";
exit;
}
my $check = get $url;
}
print "THE URL ", $url, " IS NOT EMPTY";```
The problem is that it wont increment the day or hour variables and it wont add them to the URL