Skip to content

Utility to attempt to find the passphrase of a GPG secret key

License

Notifications You must be signed in to change notification settings

mathewmarcus/bruteforce-gpg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Utility to attempt to find the passphrase of a GPG secret key

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published