mirror of
https://github.com/RealityNet/kobackupdec.git
synced 2025-04-26 11:36:35 +08:00
fast workaround for new style of backup
This commit is contained in:
parent
1030d7d24c
commit
6dd191e504
12
.gitignore
vendored
Normal file
12
.gitignore
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#ignore all
|
||||||
|
*
|
||||||
|
#track dirs
|
||||||
|
!*/
|
||||||
|
#track #-DLH-# dir
|
||||||
|
!/#-DLH-#/
|
||||||
|
#track python files
|
||||||
|
!*.py
|
||||||
|
#track readme
|
||||||
|
!readme.md
|
||||||
|
#track .gitignore
|
||||||
|
!.gitignore
|
@ -266,6 +266,7 @@ class Decryptor:
|
|||||||
logging.debug('SHA256(BKEY)[%s] = %s', len(self._bkey_sha256),
|
logging.debug('SHA256(BKEY)[%s] = %s', len(self._bkey_sha256),
|
||||||
binascii.hexlify(self._bkey_sha256))
|
binascii.hexlify(self._bkey_sha256))
|
||||||
|
|
||||||
|
try:
|
||||||
salt = self._checkMsg[32:]
|
salt = self._checkMsg[32:]
|
||||||
logging.debug('SALT[%s] = %s', len(salt), binascii.hexlify(salt))
|
logging.debug('SALT[%s] = %s', len(salt), binascii.hexlify(salt))
|
||||||
|
|
||||||
@ -282,6 +283,16 @@ class Decryptor:
|
|||||||
logging.error('KO, backup key is wrong!')
|
logging.error('KO, backup key is wrong!')
|
||||||
self._good = False
|
self._good = False
|
||||||
|
|
||||||
|
except:
|
||||||
|
print()
|
||||||
|
logging.error('NEW TYPE of backup found!')
|
||||||
|
logging.error('no check for correct key! will try to decrypt anyway...')
|
||||||
|
logging.error('be SURE that pass is correct!')
|
||||||
|
print()
|
||||||
|
input('press ENTER to continue...or cancel script with CTRL + C')
|
||||||
|
self._good = True
|
||||||
|
pass
|
||||||
|
|
||||||
def decrypt_package(self, dec_material, data):
|
def decrypt_package(self, dec_material, data):
|
||||||
if not self._good:
|
if not self._good:
|
||||||
logging.warning('well, it is hard to decrypt with a wrong key.')
|
logging.warning('well, it is hard to decrypt with a wrong key.')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user