Skip to content

Commit 396722e

Browse files
schreerakenorb
schreera
authored andcommitted
Add files via upload
1 parent 9ed77f5 commit 396722e

14 files changed

+18092
-0
lines changed

2.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import line
2+
3+
ids = {}
4+
found = []
5+
with open("wordlist.txt") as file1:
6+
for line in file1.lines():
7+
id_ = line.split()[0]
8+
ids[id_] = line
9+
10+
with open("base") as file2:
11+
for line in file2.lines():
12+
id_ = line.split()[0]
13+
if id_ in ids:
14+
found.append("{} {}".format(ids[id_], line))

3.py

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
#!/usr/bin/env python
2+
# encoding: utf-8
3+
"""
4+
code_phrase_geneator.py
5+
6+
#Created by Scott Roberts.
7+
#Copyright (c) 2011 TogaFoamParty Studios. All rights reserved.
8+
9+
# Updated to use Bip39 by TheRealLordFractal 2019
10+
11+
"""
12+
13+
import sys
14+
import getopt
15+
import random
16+
17+
18+
help_message = '''
19+
Code Phrase Generator
20+
-n <x> or --number <x>: Number of sample code phrases given. (Default is 5)
21+
-p <prefix> or --prefix <prefix>: Uses a prefix word along with a random codeword instead of two codewords.
22+
-w <file> or --wordlist <file>: Uses another wordlist to generate code phrases from.
23+
'''
24+
25+
CODEWORDS = open('wordlist.txt', 'r').readlines()
26+
27+
28+
class Usage(Exception):
29+
def __init__(self, msg):
30+
self.msg = msg
31+
32+
def generate(prefix=False, number=5):
33+
while number > 0:
34+
if prefix == 'TRUE':
35+
word1 = PREFIXES[int(random.uniform(0,len(PREFIXES)))]
36+
elif prefix:
37+
word1 = prefix
38+
else:
39+
word1 = CODEWORDS[int(random.uniform(0,len(CODEWORDS)))]
40+
41+
word2 = CODEWORDS[int(random.uniform(0,len(CODEWORDS)))]
42+
word3 = CODEWORDS[int(random.uniform(0,len(CODEWORDS)))]
43+
print "%s%s%s" % (word1.rstrip(), word2.rstrip(), word3.rstrip())
44+
45+
number -= 1
46+
47+
48+
def main(argv=None):
49+
50+
number = 5
51+
prefix = False
52+
53+
if argv is None:
54+
argv = sys.argv
55+
try:
56+
try:
57+
opts, args = getopt.getopt(argv[1:], "hn:p:i:vw:", ["help", "number=", "prefix=", "wordlist="])
58+
except getopt.error, msg:
59+
raise Usage(msg)
60+
61+
# option processing
62+
for option, value in opts:
63+
if option == "-v":
64+
verbose = True
65+
if option in ("-h", "--help"):
66+
raise Usage(help_message)
67+
if option in ("-n", "--number"):
68+
number = int(value)
69+
if option in ("-w", "--wordlist"):
70+
global CODEWORDS
71+
print "Importing: %s" % value
72+
CODEWORDS = open(value, 'r').readlines()
73+
if option in ("-p", "--prefixe"):
74+
75+
print value
76+
77+
if (value):
78+
prefix = value
79+
else:
80+
prefix = 'TRUE'
81+
82+
generate(prefix, number)
83+
84+
except Usage, err:
85+
print >> sys.stderr, sys.argv[0].split("/")[-1] + ": " + str(err.msg)
86+
print >> sys.stderr, "\t for help use --help"
87+
return 2
88+
89+
90+
if __name__ == "__main__":
91+
sys.exit(main())

brain12.py

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
#!/usr/bin/env python
2+
# encoding: utf-8
3+
"""
4+
5+
6+
# Bip39 by TheRealLordFractal 2019
7+
8+
"""
9+
10+
import sys
11+
import getopt
12+
import random
13+
14+
#sys.stdout = open('output.txt','wt')
15+
16+
help_message = '''
17+
Bip39 12 Word Random Generator By TheRealLordFractal
18+
Output File Saved as 12words.txt
19+
Command Exntensions:
20+
-n <x> or --number <x>: Number of sample code phrases given. (Default is 5)
21+
-w <file> or --wordlist <file>: Uses another wordlist to generate code phrases from.
22+
'''
23+
24+
CODEWORDS = open('wordlist.txt', 'r').readlines()
25+
26+
class Usage(Exception):
27+
def __init__(self, msg):
28+
self.msg = msg
29+
30+
def generate(prefix=False, number=5):
31+
while number > 0:
32+
if prefix == 'TRUE':
33+
print ("Not Supported.")
34+
# word1 = PREFIXES[int(random.uniform(0,len(PREFIXES)))]
35+
elif prefix:
36+
word1 = prefix
37+
else:
38+
word1 = CODEWORDS[int(random.uniform(0,len(CODEWORDS)))]
39+
word2 = CODEWORDS[int(random.uniform(0,len(CODEWORDS)))]
40+
word3 = CODEWORDS[int(random.uniform(0,len(CODEWORDS)))]
41+
word4 = CODEWORDS[int(random.uniform(0,len(CODEWORDS)))]
42+
word5 = CODEWORDS[int(random.uniform(0,len(CODEWORDS)))]
43+
word6 = CODEWORDS[int(random.uniform(0,len(CODEWORDS)))]
44+
word7 = CODEWORDS[int(random.uniform(0,len(CODEWORDS)))]
45+
word8 = CODEWORDS[int(random.uniform(0,len(CODEWORDS)))]
46+
word9 = CODEWORDS[int(random.uniform(0,len(CODEWORDS)))]
47+
word10 = CODEWORDS[int(random.uniform(0,len(CODEWORDS)))]
48+
word11 = CODEWORDS[int(random.uniform(0,len(CODEWORDS)))]
49+
word12 = CODEWORDS[int(random.uniform(0,len(CODEWORDS)))]
50+
print " %s %s %s %s %s %s %s %s %s %s %s %s " % (word1.rstrip(), word2.rstrip(), word3.rstrip(), word4.rstrip(), word5.rstrip(), word6.rstrip(), word7.rstrip(), word8.rstrip(), word9.rstrip(), word10.rstrip(), word11.rstrip(), word12.rstrip())
51+
52+
number -= 1
53+
54+
55+
def main(argv=None):
56+
57+
number = 5
58+
prefix = False
59+
60+
if argv is None:
61+
argv = sys.argv
62+
try:
63+
try:
64+
opts, args = getopt.getopt(argv[1:], "hn:p:i:vw:", ["help", "number=", "prefix=", "wordlist="])
65+
except getopt.error, msg:
66+
raise Usage(msg)
67+
68+
# option processing
69+
for option, value in opts:
70+
if option == "-v":
71+
verbose = True
72+
if option in ("-h", "--help"):
73+
raise Usage(help_message)
74+
if option in ("-n", "--number"):
75+
number = int(value)
76+
if option in ("-w", "--wordlist"):
77+
global CODEWORDS
78+
print "Importing: %s" % value
79+
CODEWORDS = open(value, 'r').readlines()
80+
if option in ("-p", "--prefixe"):
81+
82+
print value
83+
84+
if (value):
85+
prefix = value
86+
else:
87+
prefix = 'TRUE'
88+
89+
generate(prefix, number)
90+
91+
except Usage, err:
92+
print >> sys.stderr, sys.argv[0].split("/")[-1] + ": " + str(err.msg)
93+
print >> sys.stderr, "\t for help use --help"
94+
return 2
95+
96+
97+
if __name__ == "__main__":
98+
sys.exit(main())

brain24.py

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
#!/usr/bin/env python
2+
# encoding: utf-8
3+
"""
4+
5+
6+
# Bip39 by TheRealLordFractal 2019
7+
8+
"""
9+
10+
import sys
11+
import getopt
12+
import random
13+
14+
#sys.stdout = open('output.txt','wt')
15+
16+
help_message = '''
17+
Bip39 24 Word Random Generator By TheRealLordFractal
18+
Output File Saved as 24words.txt
19+
Command Exntensions:
20+
-n <x> or --number <x>: Number of sample code phrases given. (Default is 5)
21+
-w <file> or --wordlist <file>: Uses another wordlist to generate code phrases from.
22+
'''
23+
24+
CODEWORDS = open('wordlist.txt', 'r').readlines()
25+
26+
class Usage(Exception):
27+
def __init__(self, msg):
28+
self.msg = msg
29+
30+
def generate(prefix=False, number=5):
31+
while number > 0:
32+
if prefix == 'TRUE':
33+
print ("Not Supported.")
34+
# word1 = PREFIXES[int(random.uniform(0,len(PREFIXES)))]
35+
elif prefix:
36+
word1 = prefix
37+
else:
38+
word1 = CODEWORDS[int(random.uniform(0,len(CODEWORDS)))]
39+
word2 = CODEWORDS[int(random.uniform(0,len(CODEWORDS)))]
40+
word3 = CODEWORDS[int(random.uniform(0,len(CODEWORDS)))]
41+
word4 = CODEWORDS[int(random.uniform(0,len(CODEWORDS)))]
42+
word5 = CODEWORDS[int(random.uniform(0,len(CODEWORDS)))]
43+
word6 = CODEWORDS[int(random.uniform(0,len(CODEWORDS)))]
44+
word7 = CODEWORDS[int(random.uniform(0,len(CODEWORDS)))]
45+
word8 = CODEWORDS[int(random.uniform(0,len(CODEWORDS)))]
46+
word9 = CODEWORDS[int(random.uniform(0,len(CODEWORDS)))]
47+
word10 = CODEWORDS[int(random.uniform(0,len(CODEWORDS)))]
48+
word11 = CODEWORDS[int(random.uniform(0,len(CODEWORDS)))]
49+
word12 = CODEWORDS[int(random.uniform(0,len(CODEWORDS)))]
50+
word13 = CODEWORDS[int(random.uniform(0,len(CODEWORDS)))]
51+
word14 = CODEWORDS[int(random.uniform(0,len(CODEWORDS)))]
52+
word15 = CODEWORDS[int(random.uniform(0,len(CODEWORDS)))]
53+
word16 = CODEWORDS[int(random.uniform(0,len(CODEWORDS)))]
54+
word17 = CODEWORDS[int(random.uniform(0,len(CODEWORDS)))]
55+
word18 = CODEWORDS[int(random.uniform(0,len(CODEWORDS)))]
56+
word19 = CODEWORDS[int(random.uniform(0,len(CODEWORDS)))]
57+
word20 = CODEWORDS[int(random.uniform(0,len(CODEWORDS)))]
58+
word21 = CODEWORDS[int(random.uniform(0,len(CODEWORDS)))]
59+
word22 = CODEWORDS[int(random.uniform(0,len(CODEWORDS)))]
60+
word23 = CODEWORDS[int(random.uniform(0,len(CODEWORDS)))]
61+
word24 = CODEWORDS[int(random.uniform(0,len(CODEWORDS)))]
62+
print " %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s " % (word1.rstrip(), word2.rstrip(), word3.rstrip(), word4.rstrip(), word5.rstrip(), word6.rstrip(), word7.rstrip(), word8.rstrip(), word9.rstrip(), word10.rstrip(), word11.rstrip(), word12.rstrip(), word13.rstrip(), word14.rstrip(), word15.rstrip(), word16.rstrip(), word17.rstrip(), word18.rstrip(), word19.rstrip(), word20.rstrip(), word21.rstrip(), word22.rstrip(), word23.rstrip(), word24.rstrip())
63+
64+
number -= 1
65+
66+
67+
def main(argv=None):
68+
69+
number = 5
70+
prefix = False
71+
72+
if argv is None:
73+
argv = sys.argv
74+
try:
75+
try:
76+
opts, args = getopt.getopt(argv[1:], "hn:p:i:vw:", ["help", "number=", "prefix=", "wordlist="])
77+
except getopt.error, msg:
78+
raise Usage(msg)
79+
80+
# option processing
81+
for option, value in opts:
82+
if option == "-v":
83+
verbose = True
84+
if option in ("-h", "--help"):
85+
raise Usage(help_message)
86+
if option in ("-n", "--number"):
87+
number = int(value)
88+
if option in ("-w", "--wordlist"):
89+
global CODEWORDS
90+
print "Importing: %s" % value
91+
CODEWORDS = open(value, 'r').readlines()
92+
if option in ("-p", "--prefixe"):
93+
94+
print value
95+
96+
if (value):
97+
prefix = value
98+
else:
99+
prefix = 'TRUE'
100+
101+
generate(prefix, number)
102+
103+
except Usage, err:
104+
print >> sys.stderr, sys.argv[0].split("/")[-1] + ": " + str(err.msg)
105+
print >> sys.stderr, "\t for help use --help"
106+
return 2
107+
108+
109+
if __name__ == "__main__":
110+
sys.exit(main())

brainflayer

116 KB
Binary file not shown.

comand.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
./brainflayer -v -b btcaddress.blf -i wordlist.txt -o result.txt
2+
3+
./brainflayer -v -b btcaddress.blf -f btcaddress.bin -i wordlist.txt -o result.txt
4+
5+
./brainflayer -v -b 35.blf -i wordlist.txt -o result.txt
6+
./brainflayer -v -b 35.blf -i bads.txt -o result.txt
7+
./brainflayer -v -b 35.blf -i realuniq.lst -o result.txt
8+
9+
sort -u 35.hex | xxd -r -p > 35.bin
10+
11+
./generate2words.py -w wordlist.txt -n 90000000000 | ./brainflayer -v -o result.txt -b 35.blf
12+
./2.py -n 90000000000 | ./brainflayer -v -o result.txt -b 35.blf
13+
14+
15+
./brain12.py -w wordlist1.txt -n 90000000000 | ./brainflayer -v -o result.txt -b 35.blf

0 commit comments

Comments
 (0)