Realistic 2. Need help with the script.
Hello, First of all, i started learning php tonight just for the script but i think it works. I think it doesn't contain error. The problem is - it is too slow. And after a while (60 sec i think) i get an error:
Fatal error: Maximum execution time of 60 seconds exceeded in C:\Program Files\xampp\htdocs\index.php on line 17 Do you think the script is wrong or you must see it first?
This means that it has taken too long for the PHP script to run. Have you installed PHP on your box, or are you using a server?
If you have installed it on your box, then you either i) have a really slow computer or ii) have created and infinite loop or such like.
Try setting max_execution_time to a larger value like so:
<?php
ini_set('max_execution_time', '60');
// your code here
?>
MoshBat wrote: Or 0, which, if memory serves my tipsy mind, will remove any time limits. That is correct.
http://www.php.net/manual/en/function.set-time-limit.php says: The maximum execution time, in seconds. If set to zero, no time limit is imposed.
I made up an array with all characters (a-z + 0-9) But I really have no idea on how to make a script that picks the arrays, I don't want to type every possibility myself :P And I'm (almost) sure there is a faster way for this… Does anyone know how to create, or a place where I can find such a script? Thanks in advance ;)
Edit: I could do it with my head, of course, but I'd like to learn how to create a Brute Forcer myself instead of downloading working ones, aims to much at skiddie for me…
@ MoshBat
Nice sig B) and thanks for the tip to not modify a-Z!
But I still don't know how I can let the script change characters… Like making: 1000.sql to 1001.sql and so on, how can I make the script do that itself???
Could anyone learn that to me? Doing this manualy takes too long for me (lazy me :P) I'd rather write a program to do it for me, only… how?
Tokoroth wrote: @ MoshBat
Nice sig B) and thanks for the tip to not modify a-Z!
But I still don't know how I can let the script change characters… Like making: 1000.sql to 1001.sql and so on, how can I make the script do that itself???
Could anyone learn that to me? Doing this manualy takes too long for me (lazy me :P) I'd rather write a program to do it for me, only… how?
I used a python-script in this challenge, what you really need to bruteforce is the numbers and folder names (backups/bacups). I used a couple of for-loops to generate all the possible file-names.
foreach date as (1 .. 1000) {
foreach hour as (0, 24) {
$s = "asdf" . date . "asdf" . hour;
*Connect to server*
}
}
That's not real code, it's just some pseudocode to show you the basic idea of how it might implemented. (I'm not really good at explaining how things work)
pimpim wrote: [quote]Tokoroth wrote: @ MoshBat
Nice sig B) and thanks for the tip to not modify a-Z!
But I still don't know how I can let the script change characters… Like making: 1000.sql to 1001.sql and so on, how can I make the script do that itself???
Could anyone learn that to me? Doing this manualy takes too long for me (lazy me :P) I'd rather write a program to do it for me, only… how?
I used a python-script in this challenge, what you really need to bruteforce is the numbers and folder names (backups/bacups). I used a couple of for-loops to generate all the possible file-names.
foreach date as (1 .. 1000) {
foreach hour as (0, 24) {
$s = "asdf" . date . "asdf" . hour;
*Connect to server*
}
}
That's not real code, it's just some pseudocode to show you the basic idea of how it might implemented. (I'm not really good at explaining how things work)[/quote]
Actually. I believe there's a script in the code bank to bruteforce it, in case your lazy and don't wanna take 5mins urself. :p
gunjanbansal000 wrote: i did the mission but it ws to slow i changed sme values manualy as d php run on my pc , stoped aftr few min . :| , so plz help me 2 run al things automaticaly without any change manualy (i changed 01 to 02,03 etc)
I'll give you a tip: Loops…
EDIT: Nevermind, you already beat the challenge.