LOL, Its funny you mention that because I actually have written all that already. I output the combinations to a file using c++ (because its the fastest). Then I run a PHP script (because I cant figure out md5 in c++) that takes the output and hashes each one. Then I run another c++ script (because its the fastest) that compares each line of the file to passwords. LoL Crazy stuff, but whatever works right?
About your code
Your code crashes because * is always * and that will fall into an infinite loop.
poss is an array. Lets say poss is this: poss=array("55","2","whatever")
This means that poss[i] is pointing to an element in the array only when i is 0,*,2.
Once i=* poss[*] does not exist so it returns FALSE. This makes it fall out of the loop.
IN PHP IT IS A LITTLE DIFFERENT
Code:
$test=array("55","2","whatever"); $i=0;
while(isset($test[$i])){
echo "SET AND NO ERRORS";
$i++;
}
You will get a WARNING (not exactly an error) if you do it this way:
Code:
$test=array("55","2","whatever"); $i=0;
while($test[$i]){
echo "SET AND NO ERRORS";
$i++;
}
It will throw a warning in your PHP logs about '*'. I try to keep my logs completely clean of warnings and errors. This way you can really see when something is going wrong.