2010-06-28

[Script] dictionaries[v0.1].py

Links
Download Script (dictionaries.py): http://www.mediafire.com/?r5wwzmtqknz

What is this?
A python script to help mange dictionaries/word-lists
  1. Remove dups - Scans each file, and simply removes any duplicate words
  2. Remove dups + Sorts 0-Z - Scans each file, removes any duplicate words, and sorts the result alphabetically with any numbers at the top
  3. Remove dups + Higher the dups, higher the list - Scans each file, removes any duplicate words, and sorts the list by placing words which are duplicated more at the top of the list
  4. Remove dups + Higher the dups, higher the list + sorts the rest 0-Z - Scans each file, removes any duplicate words, and sorts the list by placing words which are duplicated more at the top of the list then sort the rest alphabetically with any numbers at the top
  5. Merge - Doesn't remove anything, just simply combines files together
Once complete, a new file is created called "output.txt" with the new dictionary.


Commands:


python dictionaries.py

python dictionaries.py [File1] [File2] [File3]
python dictionaries.py word.lst dictionary.dic passphrase.txt

python dictionaries.py dictionaries/*


Example:
Raw (18 total words. 2x Grape, 5x Carrot, 3x Melon, 1x #number, 2x multi words)
Apple
Banana
Grape
Carrot
Carrot
Cherry
Garlic
Grape
Carrot  
Carrot
Kiwi fruit
Carrot
Leak
2 Lemon
Melon
Melon
Mushroom
Melon 
 
1.) Remove Dups
Apple
Banana
Grape
Carrot
Cherry
Garlic
Kiwi fruit
Leak
2 Lemon
Melon
Mushroom

2.) Remove dups + Sorts 0-Z
2 Lemon
Apple
Banana
Carrot
Cherry
Garlic
Grape
Kiwi fruit
Leak
Melon
Mushroom

3.) Remove dups + Higher the dups, higher the list 
Carrot
Grape
Melon
Apple
Banana
Cherry
Garlic
Kiwi fruit
Leak
2 Lemon
Mushroom

4.) Remove dups + Higher the dups, higher the list + sorts the rest 0-Z
Carrot
Grape
Melon
2 Lemon
Apple
Banana
Cherry
Garlic
Kiwi fruit
Leak
Mushroom

Notes:
  • Merge does not work...yet! (Option 5 in the menu)
  • Created a backup before using this!
  • Buggy as hell!
Blog Post: http://g0tmi1k.blogspot.com/2010/06/script-dictionariesv01py.html
Forum Post: http://www.backtrack-linux.org/forums/backtrack-howtos/29996-%5Bscript%5D-dictionaries%5Bv0-1%5D-py.html#post166762
 



~g0tmi1k



v0.1
 + First public release


9 comments:

  1. hello g0tmi1k. nice to hear from you...
    i have a question...is there a way to manipulate or re-send incoming or outgoing icq meassages... i played a little bit with wireshark and tcpreplay,tcpdump....maybe you can give me some helping information...
    thx & greetz heaz...

    ReplyDelete
  2. Hi g0tmilk , it so nice ...

    Can u add some number generation on it ?

    ReplyDelete
  3. @haez,
    Im sorry, but that is a little bit off topic!
    short answer - yes it is! Ive seen a ettercap filter for MSN convos floating about on a forums, so I guess with a bit of tweaking it can be done.

    ReplyDelete
  4. @Mary
    Thanks for the idea!
    I'll put it in the next release!
    Anything else you would like to see?

    ReplyDelete
  5. thx g0tmi1k...yes its a little bit off...but i see it like hmm maybe for a new way of phishing attacks...Messeanger friends trust each other..you know...; )

    ReplyDelete
  6. @haez
    You may like this...
    http://www.youtube.com/watch?v=YOG9aMDyCwI&feature=player_embedded

    ReplyDelete
  7. hey, thank you very much...very very interesting.
    maybe you could do a blog about MALTEGO in future ...interesting tool too.
    youre the man... ;)

    ReplyDelete
  8. i love you man!!!!!!!!!!!!!!

    ReplyDelete
  9. @haez
    Thanks for the thanks!
    Yeah, I could do =) I use maltego myself, I haven't yet got around to covering it yet tho...


    @dafy
    Thanks? =)

    ReplyDelete