Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to python3 and make default checkpoint 000 #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions crack_enmicromsg_db_(python_version).py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/env python2
#!/usr/bin/env python3


'''15fbee0 '''
# ======================== Edit checkpoint and process_no==================
checkpoint = '995' # first three chars to start from
checkpoint = '000' # first three chars to start from
process_no = 16
# ========================================================================

Expand All @@ -13,7 +13,7 @@
import multiprocessing
import itertools
from argparse import ArgumentParser
from pysqlcipher import dbapi2 as sqlite
from pysqlcipher3 import dbapi2 as sqlite

from hashlib import md5

Expand Down Expand Up @@ -43,6 +43,7 @@ def worker(id, prefix):
c = conn.cursor()

c.execute("PRAGMA key = '" + key + "';")
c.execute("PRAGMA cipher_compatibility = 1;")
c.execute("PRAGMA cipher_use_hmac = OFF;")
c.execute("PRAGMA cipher_page_size = 1024;")
c.execute("PRAGMA kdf_iter = 4000;")
Expand All @@ -51,8 +52,8 @@ def worker(id, prefix):
c.execute("ATTACH DATABASE '" + output + "' AS db KEY '';")
c.execute("SELECT sqlcipher_export('db');")
c.execute("DETACH DATABASE db;")
print "Decrypt and dump database to {} ... ".format(output)
print key
print("Decrypt and dump database to {} ... ".format(output))
print(key)
print('OK!!!!!!!!!')
with open('CRACKED_PASS.txt', 'a') as f:
f.write(key)
Expand Down Expand Up @@ -108,11 +109,11 @@ def worker(id, prefix):
result.append(pool.apply_async(worker, (id_a, prefix)))
id_a += 1
if os.path.exists(output):
print 'Alread Done.'
print ('Alread Done.')
break

pool.close()
pool.join()
for res in result:
print res.get()
print "Sub-process(es) done."
print (res.get())
print ("Sub-process(es) done.")