Note, unless otherwise specified, all tools and scripts were written by Matt Weir and Bill Glodek.
All tools/scripts are licensed under GPLv2
All tools/scripts are provided AS IS, and we are in no way responsible for any use of the
tools privided in this package.  
If you make any changes or modifications, please include a credit to the original authors.  It makes us feel good.
Also we would appreciate if you would contact us so we can use your changes as well
Contact Info: weir@cs.fsu.edu

Special thanks to Florida State University and the Department of Justice for giving us the chance to work on this.

To obtain the most recent copy of these tools and more please visit our website at
www.ecit.fsu.edu

And finally remember, "BE GOOD!"


Description of Tools/Scripts
*Parsing Tools
-Used to analyze plaintext password lists
-----------------------------------------------------------
File: parsePass3.c
Description: Used to parse password files based on what character appears where.  
It was the tool used in our Shmoocon talk.  It will also extract words from a file to 
create a custom dictionary list, though it does it "stupidly".  It will also create
a list of special characters based on where they appear in the password, aka the start,
in the middle, or at the end.
Files it creates:
-layoutResults.txt: The format of the parsed passwords
-(start)(middle)(end)Results.txt: Special characters as they appear in the password
-numberResults.txt: The numbers found in the passwords
-rejectResults.txt: Passwords not classified because they were too long or had spaces
-wordResults.txt: words found in the password list.  Makes for a great custom dictionary
Possible Bugs: There may be some issues with the parsing of special characters into
the three different categories.  I fixed a previous bug in it but never fully
tested it after the change was made since we moved on to other stuff.  Ahh,
the wonders of college programming.  I should contribute to Debian now...



File: passPattern.c
Description: Creates customized wordlists and evaluates current wordlists by checking
the edit distance of passwords to known dictionary words.  Check out a couple of slides
from the Defcon talk to get a better idea.  Note, it doesn't do a true "edit distance"
calculation, but instead "cheats" and performs reverse rule mangling on the passwords.
This is nice because it is fast and has lower false positives, but it is limited by
forcing the coder to specify different rules.  It was developed with an incremental
approach where I would run it, see which passwords it missed but should have caught,
and then add additional rules.  It actually isn't as bad as it sounds since the
rules can be fairly general.  The main point I've left out is using double word
rules, aka "passwordtwo", where it uses two words.  It will only do it for
words that don't have any other mangling applied to them since when I used that 
rule in conjunction with other mangling rules it creates a lot of false positives.
This is because many wordlists "cheat", (btw I love putting "cheat" in quotes),
by using brute force on 4 character words.
Files it creates:
-foundWords.txt: Words it was able to classify as being in the password
-unclassified.txt: Passwords it was unable to classify
-editfile.txt: A list of all the actual changes made to words
ToDo: Continue to refine the word mangling rules it supports, and to sort the
editfile, (real simple, I could do that instead of typing this.  Check our
website by Defcon and that change should be made)



*Cracking Tools
-Used to aid in cracking password files
--------------------------------------------------------------

File:pcfgManager.c
Description: Creates the most probable passwords first for guesses to be inputed
into another password cracker such as John the Ripper.  See the Defcon talk
for more information.  It works on data that is generated by process.py and
input dictionaries.  Basically, by assigning probabilities to everything,
dictionary words, special characters, numbers, mangling rules, etc it
can approximate a huge number of rules without forcing the user to manually enter
them.  In our testing this means it usually cracks more passwords sooner than
traditional methods, and it takes longer to hit the "brick wall".  
Files it creates:
-Note, it doesn't actually create any files as all output goes to stdout.  It 
does require quite a few files containing probability info though that are generated
by process.py
ToDo:Tons.  Currently it does not handle upper case.  Also I still need to add
a cutoff point when the priority queue grows past a certain point for it to generate passwords on
a "close enough" probability order vs. the true probability order.  This point normally occurs
about one to two days after running it with a moderatly sized dictionary and no hash, (pure
plaintext output). Also we need to add a "jitter" factor to the probabilites to account for
training it on smaller training samples.  Finally, need to add letter replacement mangling rules.
In short, if you want to use it, I highly recommend getting the newest version from our website
since the "Oh crap Defcon is coming up" should help spur me to add these features.



File: process.py
Description:  This file is much like parsePass3 except it is written in python and 
much faster.  It also formats all output into a pcfgManager compatable format.  Finally,
it outputs probability info which is really useful to do quick analysis of password lists
Files it creates:
-Tons, you may need to add the directories "digits", "special", "grammar", and "words" to
get it to work as all files will be stored in those directories.  It will create a separate
file for the length of each case.  So 1.txt in digits will hold probability info for 
one digit numbers.



File: checkPasswords.c
Description:   This is used to check to see how many passwords are correctly guessed by
a password cracker and how many guesses it took to generate a "hit".  It takes input from
the password cracker from stdin, and can output via stdout or to a file.  If you select
"-g" for a graph friendly version it will only output the number of guesses and the number
of passwords cracked over time.  If you do not select that option it will just print out
the actual passwords that were cracked.  This tool is mostly just for us to evaluate
different password cracking techniques.  Note, the stars printing to the screen are just
a status, "I'm not dead or hanging", symbol.  Yes, I could have made them a lot nicer.



File: wikigrabber.c
Description:   This file creates custom wordlists based off of wiktionary and wikipedia
entries.  Note, the wiktionary implementation is much more usefull currently than the
wikipedia portion, due to the organization of wiktionary.  Also note, because I was
lazy, this program relies on several linux programs such as "sort" to parse it's output
since I didn't want to code that functionality myself.  I should have written it in
Perl, but I origanally just threw this together as a temporary program to help me crack
a finnish password list and I had some old C code from a previous project that did mostly
what I wanted.  After that I didn't want to start all over again so I kept adding onto the
C program.  Don't you hate it when that happens?  This is another program I plan to update
before Defcon so you probably should check our website and get the latest version




File: Sample John.config files
Description: I wanted to add a couple of sample config files for John the Ripper.

john_bruteforce.conf: Does pretty much what the name says.  It's mostly a sample to
show you how you can create a targeted brute force attack with john the ripper.  This one
only has simple rules for attacking 7 character long passwords, but to modify it for
other password lengths is fairly easy.

john_manglingrules.config: A customized ruleset that does a little better job than the
default john config file.  My goal is to make a menu driven program that will automatically
generate these rulesets by Defcon, since dealing with the sytax is a pain.  <Doesn't this guy
do anything before defcon? ;)>  I've actually had a bad case of not saving previous
versions of this file between cracking, as I'll modify certain rules, delete rules, or
comment rules out depending on what I'm trying to do.  Here's some advice, don't
do that.
