Browse Source

added brute force to the readme, changed the default keyid and threads

master
Micah Lee 9 years ago
parent
commit
bac9e94555
  1. 7
      README.md
  2. 4
      brute_force_keyid.py

7
README.md

@ -20,6 +20,13 @@ Build the modified gnupg. @@ -20,6 +20,13 @@ Build the modified gnupg.
./configure
make
Brute force PGP key ID
----------------------
The script that brute forces key IDs uses a modified version of gnupg that removes all the entropy from key generation, which makes it very quick and very insecure. To run it on your computer, making it a very high priority process:
nice -20 ./brute_force_keyid.py
Download the web of trust
-------------------------

4
brute_force_keyid.py

@ -55,7 +55,7 @@ class BruteForceKeyID(threading.Thread): @@ -55,7 +55,7 @@ class BruteForceKeyID(threading.Thread):
if __name__ == '__main__':
# todo: make the keyid and number of threads cli args
keyid = '99999697'
keyid = '99999999'
gpg = gnupg.GPG(gnupghome=cwd+'/homedir_brute_force_keyid', gpgbinary=cwd+'/lib/gnupg/g10/gpg', verbose=False)
common = BruteForceKeyID_Common(gpg, keyid=keyid, name_real='Test Key', name_email='testkey@micahflee.com')
@ -63,6 +63,6 @@ if __name__ == '__main__': @@ -63,6 +63,6 @@ if __name__ == '__main__':
sys.stdout.write('Brute forcing key id {0}\n'.format(keyid))
# start 4 threads
for i in xrange(10):
for i in xrange(4):
BruteForceKeyID(common).start()

Loading…
Cancel
Save