mirror of https://github.com/hashcat/hashcat.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
395 B
19 lines
395 B
#!/usr/bin/env python3
|
|
from base64 import b64encode
|
|
import sys
|
|
|
|
def usage():
|
|
print('./sqlcipher2hashcat DATABASE_FILE')
|
|
|
|
def main():
|
|
database = open(sys.argv[1], "rb").read(272)
|
|
salt = database[:16]
|
|
|
|
print('sqlcipherv4:256000:' + b64encode(salt).decode() + ':' + b64encode(database[16:272]).decode())
|
|
|
|
if __name__ == '__main__':
|
|
if len(sys.argv < 2):
|
|
usage()
|
|
else:
|
|
main()
|