Skip to content

Latest commit

 

History

History
58 lines (40 loc) · 996 Bytes

README.md

File metadata and controls

58 lines (40 loc) · 996 Bytes

bruteforce-gpg

This is a tool used to recover the passphrase of a GPG secret (a.k.a private) key.

Usage

bruteforce-gpg [-h] [-v] [-t NUM_THREADS] -f WORDLIST GPG_SECRET_KEY

Setup

1. Install Dependencies

This tool depends on the libgpgme library.

On Kali

$ sudo apt install libgpgme-dev

On Arch Linux

$ sudo pacman -S gpgme

2. Download

$ git clone https://github.com/mathewmarcus/bruteforce-gpg.git

3. Build

$ cd bruteforce-gpg
$ make

4. Install

bruteforce-gpg will be installed in the /usr/local/bin/ directory, so you may want to ensure it is included in your PATH environment variable.

make install

Examples

With the default (i.e. 1) threads

$ bruteforce-gpg -f /usr/share/wordlists/rockyou.txt private_key.asc

With 8 threads

$ bruteforce-gpg -t 8 -f /usr/share/wordlists/rockyou.txt private_key.asc