Looking at already known brainwallet phrases/passwords
by dribbledata - March 30, 2019 at 11:54 PM
#1
Cooked this up in Python for some inspiration.  Takes forever to run, but it does the job reasonably well.  I'm a C++ programmer, not really a Python pro, but it worked out alright.

#!/usr/bin/python
#
# Collects all pages of hacked brainwallets at
# https://allprivatekeys.com/hacked-brainwallets-with-balance.php?page=1
# to page 3162.
#
# This takes forever to run.  Also, these are known brainwallets so
# there's nothing to take, but you can look at the list of passwords/
# passphrases and get creative in your efforts.  If this is the sort
# of stuff you like.
#

import requests
import re

page_number = 1
# Have to start from here because of ascii encoding error
# page_number = 3108

# the range() function will go until one less than this
page_number_end = 3163
search_regexp = r'<strong>Brain Wallet passphrase:\s*</strong>([^<]+)<br>'

base_url = "https://allprivatekeys.com/hacked-brainwallets-with-balance.php?page="

counter = 1

for page in range(page_number, page_number_end):
   r = requests.get(base_url+str(page))
   # print "Status code: {}".format(r.status_code)
   if r.status_code != 200:
      print "Status code was {}, skipping...".format(r.status_code)
      continue
   p = r.text
   matches = re.findall(search_regexp, p.encode('utf-8'))
   with open("matches.txt", 'a+') as f:
      for m in matches:
        # Unicode errors, ignore until we figure this out
        # ascii codec can't decode byte 0xef in position 4: ordinal
        # not in range(128)
        try:
           f.write("%s\n" % m.encode('utf-8'))
        except:
           print "Skipping page {}, likely a unicode issue.".format(page_number)
           pass

   print "Done {} pages so far.".format(counter)
   counter += 1

print "All done!  Check your matches.txt file."
#2
respect! your the first one who doesnt ask ceedits for some crappy script.
#3
Haha, thanks man.

Yeah it was literally a 5 minute job. Smile

Possibly Related Threads…
Thread Author Replies Views Last Post
about people who post stuff for credits, but the thing is already available for free? Argand Plane 2 535 April 27, 2021 at 11:29 PM
Last Post: m0t0rbr34th
Four well-known cybercriminal forums dealing with breaches digdeeper 7 792 April 06, 2021 at 09:21 AM
Last Post: digdeeper
applying for mod like straight up son john make me mod already before i kill u brip Derek2Icy 1 1,797 January 17, 2017 at 04:00 AM
Last Post: Tac

 Users browsing this thread: 1 Guest(s)