in reply to Simple Bruteforcer not working

Without running your script and checking the total of the sequence myself one guess would be that it is not generating the sequence you think it should be? Try running it with a smaller subset of characters (like two or three) and see if generates the sequence you think it should. Also you should be able to get a match on a shorter target first before running on the full length target.

Have you manually checked that the checksums are correct? It seems like $sum = $sum+($index1 * $n * $i)*($index1 * $ +i * $i); would generate an unusually large number. Note that since perl uses doubles and a lot of old C code uses ints that are 16 bits if your checksum algorithm relies on a 16 bit wrap you are going to get garbage.


s//----->\t/;$~="JAPH";s//\r<$~~/;{s|~$~-|-~$~|||s |-$~~|$~~-|||s,<$~~,<~$~,,s,~$~>,$~~>,, $|=1,select$,,$,,$,,1e-1;print;redo}

Replies are listed 'Best First'.
Re^2: Simple Bruteforcer not working
by clone4 (Sexton) on Mar 25, 2008 at 11:29 UTC
    firstly to say, i've been working with perl(my first programming language) few days, and yeah I know there are probably tons of better solutions then this one, however that's what i'm capable of now... secondly this script is to solve javascript challange from one website. and lastely i've left it for a while, but yeah it would take years, so stopped it and started to go through the source script again, and I don't know if i'm right but the value of the checksum should rely just on the length of the password and last two characters, is that right ?