Archived from groups: rec.games.video.classic (
More info?)
James Robert Leek wrote:
>
> Do you mean a nested loop 20 layers deep? ie:
>
> loop 1 to x1:
> loop 1 to x2:
> loop 1 to x3:
> ...
> loop 1 to x20:
> do stuff
> end loop.
>
> If yes, then don't worry about the language, come up with a better way to
> do what you're trying to do! It doesn't matter what langauge you use,
> that's gonna be slow. You'll be running the instruction in the innerloop
> x^20 times! That's a lot. What are you trying to do?
>
> I doubt the C would be best for you. Java is a possibility, but
> probably still more complex than you want. I suspect Python may be what
> you're looking for. It's pretty simple, and very powerful. It's also
> interpreted, so you can run what you've written without compilation, and
> it has good math and text manipulation routines. try
http://python.org
> If you're looking for easy multimedia/image manipulation, you could
> look into Squeak!
http://squeak.org/
>
> --
> Jim Leek
> jrleek@soda.berkeley.edu
Hi: JrLeek:
This is what I am trying to do: I would like to write a password
analyzer. For example, you have a password like "Hard!2!Crack". This
word has 12 letters. Each letter position has 95 possible variations.
This would mean that it takes 95^12 (95 to the 12th power) combinations
to figure out.
I am using loops to try to run the password. Think of it like a
odometer start at 000000000001 The last digit keeps rolling and every
95th roll, the next digit rolls by one.
The idea is to keep the loops rolling until the right combination
is hit.
I wrote this as a password Analyzer (as opposed to a Password
Cracker) because I can only analyze passwords. In order to make it
into a cracker, I woudl have to some how learn to write a program that
actually places an User ID and Password repeatedly into the correct
field until the cracker cycled to the correct combination. I dont have
the know how to implement that sequence.
Mind you, I am only doing this as a fun project. I am not a real
cracker. I only choose this project because it seemed like a fun
project.
I was successful in writing the code analyzer (not the cracker),
and I am able to have the computer guess 5 letter passwords in about 5
hours. However, anything longer than that, my computer actually runs
out of virtual memory (for some reason BLASSIC eats up the virtual
memory when deep in loops).
So, to answer your question, I am mainly trying to write a hobby
password analyzer (eventually, I'd like to turn it into a cracker).
This is strictly only in fun. I would never do anything malicious--not
only because I'd risk being prosecuted, but because I don't have any
reason to want to really infiltrate any one's email account.
It would just be something neat to try to do to see if it could be
done. And the education I would get in terms of learnning a new
language and problem solving (ie logical sequencing) would also be very
enriching.
Do you have any suggestions as to what language would suit my
project?
As far as trying to find a different way to do the program: I
don't think I can get away from using loops. But I may be able to
weigh the 95 possibilities differently. By this I mean: the letter A
would be weighted more than the letter j. I could try to weigh the
more frequently used letters more heavily. Also, I could try to
increase the likelihood of touching letters forming common sequences:
ie if the first digit is "G", then the next letter should be a vowel.
I would weigh things this way because certain letters appear next to
another letter more frequently than others. This is to say, a person
is more likely to have a password that spells a word such as
"Top#Secret", rather than completely random "T#P!V((&*#" passwords.
So, knowing the habbits of people, maybe I can weigh certain
combinations more favorably. That is one way I can think of to lessen
the impact of deep loops.
Do you have any other suggestoins?
[Disclaimer: the program I am trying to write is strictly for an
educational project. It is not intended for bad applications of
computer technology]
signed: HobbyProgramLearner.
signed: hobbyGuy.