Python - Extract privkeys from a blockchain.info unencrypted addr/key dump


SUBMITTED BY: Guest

DATE: Oct. 11, 2013, 6:12 p.m.

FORMAT: Python

SIZE: 446 Bytes

HITS: 1451

  1. import time
  2. file = open('input.txt', 'r')
  3. text = file.readlines()
  4. file.close()
  5. address = input("Pull private key for: ")
  6. for line in text: # Replacement for re.compile
  7. if address in line:
  8. output = line;
  9. file = open('output.txt', 'r+')
  10. file.write(output)
  11. file.close()
  12. print (output)
  13. print ("The private key has been written to output.txt.")
  14. time.sleep(5)

comments powered by Disqus