Compare commits

...

16 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
dfirfpi
662574bb45
fixed decrypt_large_package
Signed-off-by: dfirfpi <francesco.picasso@gmail.com>
2020-07-05 11:27:39 +02:00
dfirfpi
5c916ea2dd
20200611 check on checkMsg 2020-06-11 00:22:51 +02:00
dfirfpi
a14390724e
20200611, large files, new options
Signed-off-by: dfirfpi <francesco.picasso@gmail.com>
2020-06-11 00:08:31 +02:00
dfirfpi
e36167743d
added setup.py by @michaelfsantos 2020-06-07 18:52:27 +02:00
Francesco Picasso
f38df74a64 Update issue templates 2020-06-07 18:47:27 +02:00
dfirfpi
13326d9511
Added fixes by @realSnoopy 2020-06-07 18:10:50 +02:00
Francesco Picasso
3a587e38a2
Update README.md 2020-04-06 20:14:02 +02:00
dfirfpi
a3662f5ff4
merged pull by @lp4n6, files/folders permissions
Signed-off-by: dfirfpi <francesco.picasso@gmail.com>
2020-04-06 16:44:02 +02:00
Francesco Picasso
0e7fca2738
Merge pull request #10 from lp4n6/patch-3
Update kobackupdec.py
2020-04-06 15:55:59 +02:00
dfirfpi
9e25a500c7
Changed VERSION before pushing.
Signed-off-by: dfirfpi <francesco.picasso@gmail.com>
2020-04-06 15:54:19 +02:00
dfirfpi
a9afecd766
Added Python version check and note.
Signed-off-by: dfirfpi <francesco.picasso@gmail.com>
2020-04-06 15:50:39 +02:00
lp4n6
b435b75e1f
Update kobackupdec.py
This patch allow to run the script as normal user (ie without sudo) by setting -rx permission (ie 0o755) to directories. Indeed, Linux need -rx permissions to allow read directories contents, not only -r.

Until now chmod 0o444 at the end of the script prevent read output directories and crashes the script if ran as standard user (ie without sudo).

Also tested with Windows 10 with Python 3.8.1.
2020-01-16 11:54:15 +01:00
dfirfpi
0277282052
version 2020test 2020-01-07 20:02:52 +01:00
4 changed files with 685 additions and 245 deletions

26
.github/ISSUE_TEMPLATE/bug_report.md vendored Normal file
View File

@ -0,0 +1,26 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''
---
**Describe the bug**
A clear and concise description of what the bug is.
**NOTE**
Please consider that some errors could be handled only by providing the info.xml file and the files related to the issue (e.g. a file that cannot be decrypted). If the files needed to understand the bug could contain personal data of any kind, DO NOT SEND THEM. Instead, provide samples that can be shared and with a limited size. Thanks.
**Required info (please complete the following information):**
- Huawei Kobackup version:
- Host: [Windows / Linux ]
- Kobackup script version:
- Kobackup output log (use -vvv)
**Additional context**
Add any other context about the problem here.
**Screenshots**
If applicable, add screenshots to help explain your problem.

View File

@ -3,7 +3,11 @@ Huawei backup decryptor
_This script is introduced by the blog post at https://blog.digital-forensics.it/2019/07/huawei-backup-decryptor.html._
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.
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
@ -12,7 +16,7 @@ The script *assumes* that backups are encrypted with a user-provided password. A
```
usage: kobackupdec.py [-h] [-v] password backup_path dest_path
Huawei KoBackup decryptor version 20190729
Huawei KoBackup decryptor version 20200611
positional arguments:
password user password for the backup
@ -20,12 +24,14 @@ positional arguments:
dest_path decrypted backup folder
optional arguments:
-h, --help show this help message and exit
-v, --verbose verbose level, -v to -vvv
-h, --help show this help message and exit
-e, --expandtar expand tar files
-w, --writable do not set RO pemission on decrypted data
-v, --verbose verbose level, -v to -vvv
```
- `password`, is the user provided password.
- `backup_path`, is the folder containing the Huawei backup, relative or absolute paths can be used. **Be careful** to provide the strictest path to data, because the script will start enumerating all files and folders starting from the provided path, parsing the file types it expects to find and copying out all the others. If by chance you wrongly provide *c:\\* as the backup path, well, expect to get a full volume copy in the destination folder (ignoring errors).
- `backup_path`, is the folder containing the Huawei backup, relative or absolute paths can be used.
- `dest_path`, is the folder to be created in the specified path, absolute or relative. It will complain if the provided folder already exists.
- `[-v]` (from `-v` to `-vvv`) verbosity level, written on *stderr*. It's suggested to use *-vvv* with a redirect to get a log of the process.

871
kobackupdec.py Normal file → Executable file

File diff suppressed because it is too large Load Diff

17
setup.py Normal file
View File

@ -0,0 +1,17 @@
# Setup file for compiling the python script with cx_Freeze (https://github.com/anthony-tuininga/cx_Freeze)
from cx_Freeze import setup, Executable
executables = [
Executable('kobackupdec.py')
]
setup(name='KoBackupDec',
# Change build number to the current one
version='20200607',
description='HiSuite / KoBackup Decryptor',
executables=executables
)
# Compile the python script to an executable with: python setup.py build
# Build an Windows installation Package with: python setup.py bdist_msi