Coder Social home page Coder Social logo

kobackupdec.net's Introduction

kobackupdec.NET

HUAWEI backup decryptor in C#

The original kobackupdec is a Python3 script aimed to decrypt HUAWEI HiSuite or KoBackup (the Android app) backups. Here it is my "porting" in .NET, credit goes to dfirfpi for its original idea and implementation.

For any further information, please read:

Thanks again to dfirfpi for sharing his research!

Usage

The original 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.

usage: kobackupdec.exe password backup_path dest_path

  password       user password for the backup
  backup_path    backup folder
  dest_path      decrypted backup folder
  • password, the user provided password.
  • backup_path, 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).
  • dest_path, the folder to be created in the specified path, absolute or relative. It will complain if the provided folder already exists.

Example

Z:\> kobackupdec.exe password "Z:\HUAWEI P30 Pro_2019-06-28 22.56.31" Z:\HiSuiteBackup

As the original script, the output folder structure will be similar to the following one: data/data applications will be exploded in their proper paths, and the APKs will be restored too (not icons, actually). Note that the db folder will contain the special databases as created by your backup.

Database uses SQLite format 3, see also https://sqliteonline.com/ for an online browser but remember it contains your sensitive and personal data.

HiSuiteBackup
|-- data
|   |-- app
|   |   |-- de.sec.mobile.apk-1
|   |   | [...]
|   |   `-- org.telegram.messenger.apk-1
|   `-- data
|       |-- de.sec.mobile
|       | [...]
|       `-- org.telegram.messenger
|-- db
|   |-- alarm.db
|   |-- contact.db
|   |-- calendar.db
|   |-- camera.db
|   |-- clock.db
|   |-- harassment.db
|   |-- HWlanucher.db
|   |-- phoneManager.db
|   |-- sms.db
|   |-- sns.db
|   |-- weather.db
|   `-- wifiConfig.db
`-- storage
    |-- Alarms
    |-- DCIM
    |-- Download
    |-- Music
    |-- Notifications
    |-- Pictures
    |-- Ringtones
    |-- WhatsApp
    `-- s8-wallpapers-9011.PNG

Intended Future Features

  • implement v4 algorithm
  • overwrite existing files option
  • verbosity level while logging
  • logging to file instead of Console

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.