Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
First Python Implementation of decryption tool
  • Loading branch information
marvin0815 committed Sep 17, 2013
1 parent bf5b6b9 commit e363063
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions samsungpvrdecode.py
@@ -0,0 +1,31 @@
#!/usr/bin/env python

from Crypto.Cipher import AES
import io

def getKey(mdbfile):

fp = open(mdbfile, 'rb')
#fpw = open(keyfile, 'wb')
fp.seek(8)
key = []
dump = []
for i in range(0,16):
dump.append(fp.read(1))
if ((i + 1) % 4 == 0):
key.append(''.join(dump[::-1]))
dump = []

s = ''.join(key)
return s
#fpw.write(s)


fp.close()
#fpw.close()


mdbfile = "/mnt/stuff/stuff/20130915233306.mdb"
#keyfile = "/mnt/stuff/stuff/20130915233306.key"

print getKey(mdbfile)

0 comments on commit e363063

Please sign in to comment.