Skip to content

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
moloch committed Mar 19, 2018
1 parent 0fd9ad2 commit 2ee4f98
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
6 changes: 6 additions & 0 deletions .gitignore
@@ -1,3 +1,9 @@
checksort
sortidx

words.txt
test/

# Python files
*.py[co]

Expand Down
10 changes: 3 additions & 7 deletions README.md
Expand Up @@ -6,15 +6,11 @@ Introduction

There are three components to this system:

1. The indexing script (createidx.py), which takes a wordlist and builds
a lookup table index for a hash function and the words in the list.
1. The indexing script `createidx.py`, which takes a wordlist and builds a lookup table index for a hash function and the words in the list.

2. The indexing sorter program (sortidx.c), which sorts an index created by the
indexing script, so that the lookup script can use a binary search on the
index to crack hashes.
2. The indexing sorter program `sortidx.c`, which sorts an index created by the indexing script, so that the lookup script can use a binary search on the index to crack hashes.

3. The lookup script (LookupTable.py), which uses the wordlist and index to
crack hashes.
3. The lookup script `hashlookup.py`, which uses the wordlist and index to crack hashes.

Suported Algorithms:
* lm
Expand Down
15 changes: 7 additions & 8 deletions hashlookup.py
Expand Up @@ -211,35 +211,34 @@ def _cli(args, table):
sys.stdout.write("%d) %s -> %s\n" % (index, hsh, results[hsh],))
sys.stdout.flush()
sys.stdout.write("%sTotal lookup time: %.6f\n" % (INFO, lookup_time))
percent = 100 * (float(len(cracked)) // float(len(hashes)))
percent = 100 * len(cracked) / len(hashes)
sys.stdout.write("%sCracked %d of %d (%3.2f%s)\n" % (MONEY, len(cracked), len(hashes), percent, '%'))
sys.stdout.flush()

parser = argparse.ArgumentParser(description='Search sorted IDX files for hashes')
parser.add_argument('-v', '--version',
action='version',
version='LookupTable 0.1.2')
version='hashlookup 0.1.3')
parser.add_argument('-d', '--debug',
action='store_true',
dest='debug',
help='debug/verbose mode')
parser.add_argument('-e', '--decoder',
dest='decoder',
help='decode hashes using an encoder')
parser.add_argument('-w',
parser.add_argument('-w', '--wordlist',
dest='wordlist',
help='wordlist file',
required=True)
parser.add_argument('-i',
parser.add_argument('-i', '--index',
dest='index',
help='the .idx file matching the wordlist',
required=True)
parser.add_argument('-a',
parser.add_argument('-a', '--algorithm',
dest='algorithm',
help='hashing algorithm: %s' % sorted(
algorithms.keys()),
help='hashing algorithm: %s' % sorted(algorithms.keys()),
required=True)
parser.add_argument('-c',
parser.add_argument('-c', '--crack',
nargs='*',
dest='hash',
help='crack a file or list of hashes')
Expand Down

0 comments on commit 2ee4f98

Please sign in to comment.