Compare commits

...

3 Commits

Author SHA1 Message Date
Francesco Picasso
1789684162
EOL
Added EOL
2020-12-28 23:42:16 +01:00
Francesco Picasso
7055a7c78c
Merge pull request #46 from holgus103/master
Fixed ._ files problem on OS X. Credits to @holgus103
2020-12-28 23:18:10 +01:00
Suchan Jakub
7a59614b7e Fixed ._ files problem on OS X 2020-12-05 21:43:24 +01:00
2 changed files with 5 additions and 1 deletions

View File

@ -5,6 +5,10 @@ _This script is introduced by the blog post at https://blog.digital-forensics.it
The `kobackupdec` is a Python3 script aimed to decrypt Huawei *HiSuite* or *KoBackup* (the Android app) backups. When decrypting and uncompressing the archives, it will re-organize the output folders structure trying to _mimic_ the typical Android one. The script will work both on Windows and Linux hosts, provided the PyCryptoDome dependency. Starting from **20100107** the script was rewritten to handle v9 and v10 kobackup backups structures. The `kobackupdec` is a Python3 script aimed to decrypt Huawei *HiSuite* or *KoBackup* (the Android app) backups. When decrypting and uncompressing the archives, it will re-organize the output folders structure trying to _mimic_ the typical Android one. The script will work both on Windows and Linux hosts, provided the PyCryptoDome dependency. Starting from **20100107** the script was rewritten to handle v9 and v10 kobackup backups structures.
## _EOL_
On 1.1.2021 the script will get its _end of life_ status. It was needed two years ago to overcome issues for some Huawei devices' forensics acquisitions. Now commercial forensics solutions include the very same capabilities, and much more: there are no more reasons to maintain it. We've got messages from guys using this script to manage theirs backups: we do not recommend it, and we did not write it for this reason. Anyhow we're happy some of you did find it useful, and we thank you for the feedback. We shared it to the community, trying to give back something: if someone has any interest in maintaining it, please let us know so we can include a link to the project.
## Usage ## Usage
The script *assumes* that backups are encrypted with a user-provided password. Actually it does not support the HiSuite _self_ generated password, when the user does not provide its own. The script *assumes* that backups are encrypted with a user-provided password. Actually it does not support the HiSuite _self_ generated password, when the user does not provide its own.

2
kobackupdec.py Normal file → Executable file
View File

@ -877,7 +877,7 @@ def decrypt_backup(password, path_in, path_out, expandtar):
xml_files = path_in.glob('*.xml') xml_files = path_in.glob('*.xml')
for entry in xml_files: for entry in xml_files:
if entry.name != 'info.xml': if entry.name != 'info.xml' and not entry.name.startswith('._'):
parse_generic_xml(entry, decrypt_info) parse_generic_xml(entry, decrypt_info)
logging.debug(decrypt_info.dump()) logging.debug(decrypt_info.dump())