Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

real 2


ghost's Avatar
0 0

heres what i have

<script type="text/javascript">

var month = 1

var day = 1

var x = 0

while ( month != 12 && day != 31)

{

	//adding dates/months
	
	if (day = 31)
	
	{
	day = 1
	month += 1
	}
	
	else
	
	{
	day += 1
	}
	
	//check for double digit months
	
	if (month >= 10)
	
	{
	x += 1
	}
	
	//check for double digit days
	
	if (day >= 10)
	
	{
	x += 2
	}
	
	//get the right format
	
	if (x = 0)
	
	{
	window.location.href="http://hellboundhackers.org/challenges/real2/backups/backup_2004-0"+month+"-0"+day+"_1000.sql"
	}
	
	else if (x = 1)
	
	{
	window.location.href="http://hellboundhackers.org/challenges/real2/backups/backup_2004-"+month+"-0"+day+"_1000.sql"
	}
	
	else if (x = 2)
	{
	window.location.href="http://hellboundhackers.org/challenges/real2/backups/backup_2004-0"+month+"-"+day+"_1000.sql"
	}
	
	else
	{
	window.location.href="http://hellboundhackers.org/challenges/real2/backups/backup_2004-"+month+"-"+day+"_1000.sql"
	}
	
}

</script>

it loops through every possible day/month combination url. is this ok? i dont know how to use it…