NASTY(1)
π NASTY β the manual page, bestie edition π
okay so this is the manual page for nasty, from the User Commands corner of the manual. Pull up a chair, grab a strawberry π, we're doing this.
β¨ NAME β¨
nasty β a tool which helps you to recover your GPG passphrase π«Ά
Like, that's the whole thing. It finds the passphrase you lost. Iconic behaviour, honestly.
πΈ SYNOPSIS πΈ
nasty [OPTIONS]
That's it. That's the whole vibe. Just the program and however many options you feel like throwing at it.
π¦ DESCRIPTION π¦
nasty is a program that helps you to recover the passphrase of your PGP or GPG-key in case you forget or lost it.
Yes bestie, it's a passphrase recovery tool, and no, it does not judge you for forgetting it. It just sits there and tries stuff until something works. Main character energy fr fr. π
π OPTIONS π
-a xβ set minimum length of passphrase. Like, the shortest thing it's allowed to guess. tiny floor, no gatekeeping.-b xβ set maximum length. The ceiling. The absolute limit. Nothing longer than this gets attempted. π-m xβ set guessing mode, and there are three of them:incremental: try them all. Every single one. It's giving dedication. πrandom: try at random. Chaos mode, lowkey unhinged, we respect it.file: read phrases from file (use-i). the reading-from-a-list girlies β go pair this with-ior it's just vibes with no data.
-i xβ file to read the passphrases from. Your lil wordlist, your lil stash. π-f xβ file to write the found passphrase to. So when it finds it you don't lose it again immediately, bestie. π«Ά-c x...β charset, and you can pass one or more of these lil guys:a:a-zβ lowercase girliesA:A-Zβ uppercase, bold, screaming0:0-9β the digits, the numbers, the math.: all ascii values (32...126) β the whole printable spread β¨+:32...255(default(!)) β yes, that's the default, and yes, that's a LOT of characters. The(!)is doing heavy lifting there. Not me warning you gently. π
-k xβ filter string to select a key. When you've got a whole keyring and you only want one specific key, this is how you narrow it down. π―-vβ enable verbose mode. It'll tell you what it's doing instead of sitting there mysteriously. communicative king. π-hβ show command options. The "help me bestie I forgot the flags" flag. Very meta. Very necessary.
π ISSUES π
Nasty will not work if you try it with a gpg-agent running in your system.
And why, you ask? For obvious reasons the agent will ask you the passphrase to access your private key β which you probably don't record, right? :)
So yeah. If gpg-agent is up, this whole plan is cooked. Shut it down first, bestie, iykyk. π
π AUTHOR π
This manual page was written by Tiago Bortoletto Vaz <tiago@debian.org> for the Debian GNU/Linux system (but may be used by others). Shoutout to Tiago, absolute legend for writing this down. π
and that's the page, bestie β¨ it's nasty, it lives in the manual as nasty, and this whole thing is dated September 2009 β yes, 2009, we were all babies. mwah π
ππ¦
π¦ where this page comes from
- debian trixie: nasty 0.6+git20220929.9830b7a-2 Β· LicenseRef-public-domain
- ubuntu noble: nasty 0.6+git20220929.9830b7a-1build2 Β· LicenseRef-public-domain
- ubuntu questing: nasty 0.6+git20220929.9830b7a-2
- ubuntu resolute: nasty 0.6+git20220929.9830b7a-3build1 Β· LicenseRef-public-domain
- ubuntu stonking: nasty 0.6+git20220929.9830b7a-3build1 Β· LicenseRef-public-domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms