twofi
twofi generates custom word lists from Twitter searches for keywords related to password cracking. It takes multiple search terms and returns words sorted by most common first.
Description
When attempting to crack passwords, custom word lists are very useful additions to standard dictionaries. twofi expands on the idea from the '7 Habits of Highly Effective Hackers' blog by using Twitter to generate those lists based on searches for keywords related to the target list.
The tool accepts multiple search terms, either as comma-separated values or from a file, and optionally filters by users or usernames. It produces a sorted word list with the most common terms first, aiding in targeted password attacks.
twofi is a Ruby-based tool requiring ruby and ruby-twitter dependencies, installed via apt on Kali Linux.
How It Works
twofi leverages the Twitter API via the ruby-twitter gem to search for specified terms or from specified users. It collects words from search results, counts their frequency, applies filters like minimum word length, and outputs a sorted list of unique words by commonality. Configuration is handled via a YAML file, with verbose output available for debugging.
Installation
sudo apt install twofiFlags
Examples
twofi --helptwofi --terms password,logintwofi --terms 'admin login',security --counttwofi --term_file terms.txt --min_word_length 5twofi --users hacker,admin --verbosetwofi --user_file users.txt --config custom.ymltwofi --terms wifi,router --count --min_word_length 4