A repository for security related tools
A tool to generate dictionaries from a given url for password cracking. The script will connect to the URL and parse for the starting and ending delimeters and take whatever is between the starting and ending delimeter and output it to the outputfile.
Options:
-u, The url to parse the dictionary from
-o, The output file to save the dictionary in
-s, The starting delimiter which the element is surrounded by
-e, The ending delimiter which the element is surrounded by
Example:
HAWAIIAN DICTIONARY
python gen-dictionary.py -u "http://hawaiian-words.com/hawaiian-dictionary" -o "hawaiian.dic" -s "<tr >" -e "</td>"
To run the script execute this command:
python gen-dictionary.py -u <URL> -o <outputfile> -s <starting delimeter> -e <ending delimeter>
A tool to generate hashes from a dictionary. This tool was created to assist in creating password cracking challenges for CTF's. The tool will hash each line in the dictionary individually and output the hashes in hex to the outputfile. The option of specifying the hashing algorithm is given, if no hashing algorithm is specified the default algorithm is sha256. if the flag option is used the hash will be concatenated to the given flag title.
Options:
-a, The hashing algorithm to use. Taken from hashlib.algorithms_guaranteed set(['sha1', 'sha224', 'sha384', 'sha256', 'sha512', 'md5'])
**Note: Script can be edited to use hashlib.algorithms_available instead for more options
set(['SHA1', 'SHA224', 'SHA', 'SHA384', 'ecdsa-with-SHA1', 'SHA256', 'SHA512', 'md4', 'md5', 'sha1', 'dsaWithSHA',
'DSA-SHA', 'sha224', 'dsaEncryption', 'DSA', 'ripemd160', 'sha', 'MD5', 'MD4', 'sha384', 'sha256', 'sha512',
'RIPEMD160', 'whirlpool'])
-f, The flag title. If this option is given the hash will be concatenated to the flag title which can then be used as flags for a Capture The Flag (CTF) scenario
-i, The input file/dictionary to hash. This is the unhashed messages which will be hashed by this script
-o, The output file to write the hashes to.
Example:
HAWAIIAN DICTIONARY
python hash-dictionary.py -a sha512 -i "hawaiian.dic" -o "hashed-hawaiian.dic"
To run the script execute this command:
python hash-dictionary.py [-a <hashing algorithm> -f <flag title>] -i <input file> -o <output file>
A tool to perform a caesar shift on a given message with the given number of shifts.
Options:
-m, the message to cipher
-n, the number of shifts to shift the cipher
-e, Encrypt the message
-d, Decrypt the message
-a, Enumerate all 26 caesar shift possibilities
To run this script execute this command:
python caesar.py -m <message> -n <number of shifts>
A tool to perform a vigenere shift using the given message and the given key.
Options:
-m, The message to encrypt using the key
-k, The key to encrypt the message with
-a, enumerate vigenere using keys in the dictionary
-f, dictionary file
-e, encrypt the message
-d, decrypt the message
To run this script execute this command:
python vigenere.py -m <message> -k <key> -e
A tool to embed files in an office xml file at the longest path within the file (files that end in x, eg .docx, .pptx, .xlsx, etc.).
Options:
-c, The cover file to hide the embeded file in
-e, The file to embed in the cover file
-o, The name of the file to output to
-i, Option to hide the embeded file in an image within the coverfile
To run this script execute this command:
python office-steg.py -c <cover file name> -e <embed file name> -o <output file name>