Skip to content
Search drives for documents containing passwords
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Initial commit Jul 11, 2014
LICENSE Update Jul 11, 2014
dionach.ico v0.9 Jul 11, 2014



PassHunt searches drives for documents that contain passwords or any other regular expression. It's designed to be a simple, standalone tool that can be run from a USB stick.


PassHunt is a Python script that can be easily converted to a standalone Windows executable using PyInstaller. requires:

- Python 2.7
- Colorama (
- Progressbar (
- PyInstaller (

To create passhunt.exe as a standalone executable with an icon run:

pyinstaller.exe -F -i dionach.ico


usage: passhunt [-h] [-s SEARCH] [-x EXCLUDE] [-t TEXTFILES] [-z ZIPFILES] [-e SPECIALFILES] [-m MAILFILES] [-l OTHERFILES] [-o OUTFILE]

PassHunt v0.9: search directories and sub directories for documents containing passwords.

optional arguments:
  -h, --help       show this help message and exit
  -s SEARCH        base directory to search in (default: C:\)
  -x EXCLUDE       directories to exclude from the search (default:
                   C:\Windows,C:\Program Files,C:\Program Files (x86))
  -t TEXTFILES     text file extensions to search (default: .doc,.xls,.xml,.tx
  -z ZIPFILES      zip file extensions to search (default: .docx,.xlsx,.zip)
  -e SPECIALFILES  special file extensions to search (default: .msg)
  -m MAILFILES     email file extensions to search (default: .pst)
  -l OTHERFILES    other file extensions to list (default:
  -o OUTFILE       HTML output file name for report (default:

Simply running it with no arguments will search the C:\ drive for documents containing passwords, and output to an HTML report file.


The script uses a regular expression which defaults to "password" to look for passwords in document files, including text files, PST files and MSG files. Zip files are recursed to look for document files. The script will list but does not yet search Access databases.

You can’t perform that action at this time.