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 help


ghost's Avatar
0 0

Plz i have some problem with code in real 2 : php :

<? $i=0; $j=0; $day=array("01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31"); $hour=array("00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24"); for (i=0;i<32;i++) for (j=0;j<25;j++) { { url = "http://www.hellboundhackers.org/challenges/real2/backups/backup_2004-09-"$day[i]"_"$hour[j]"00.sql"; fopen($url,"r"); } } } ?>

Please tell me where is the problem Thank You


Uber0n's Avatar
Member
0 0

missed a ";" in for or something?


ghost's Avatar
0 0

I don't know my error sounds like : Parse error: syntax error, unexpected '=', expecting ';'


ghost's Avatar
0 0

Your missing a "$" in someplaces.


ghost's Avatar
0 0

Could it be the string? Should it not be:

url = "http://www.hellboundhackers.org/challenges/real2/backups/backup_2004-09-" + $day[i] + "_" + $hour[j]" + 00.sql";

With the +'s…


SySTeM's Avatar
-=[TheOutlaw]=-
20 0

That's one problem


ghost's Avatar
0 0

Why work, its done (my post that many years ago is the best one) :-p and why php, then you have to get a parser and stuff and that gets messy. http://www.hellboundhackers.org/fusion_forum/viewthread.php?forum_id=8&thread_id=3007 now onto your script, for one your script doesn't do anything, it reads it but it doesn't save what it reads, if you want to do something you can make it find a page that opens then make it do a header("location: ".$url); to that spot also you have your fors and your { kinda messy you have

for (i=0;i<32;i++) for (j=0;j<25;j++) { {

what you want is

for (i=0;i<32;i++) { for (j=0;j<25;j++) {

$url like system said with a " . " to put everything together in php

and you end with three brackets but only open with 2… can't parse that sucker and these are some of the problems i see right off the bat

} } } ?>


ghost's Avatar
0 0

im having trouble with this too; i'm not very good at programing yet. i know very little php and moderate java, i am still learning both. Is there a way i can do this without being good at programing? or, could someone guide me through making a program?


ghost's Avatar
0 0

yeah if you don't want to program you can do each possibility manually until you find it, one of the best ways to be a hacker is to be a programmer, so it would be a good idea to learn, and how i learned is from a website http://www.w3schools.com


ghost's Avatar
0 0

Read my code posted in hbh, its a helpfull javascript to beat this mission.

I think that it dont work very well so you have to correct him before use it


ghost's Avatar
0 0

Larika (its corrected below it on my post :-p)


ghost's Avatar
0 0

What are all the languages you can use to complete this?


ghost's Avatar
0 0

i hardly know any PHP at all, so where would i put the script to generate all of the possible files?


ghost's Avatar
0 0

On a (free)webserver/localserver and then execute the file from there. But you could use javascript also (I thougt)