Skip to content

Latest commit

 

History

History

docs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

extracting certificates

This powershell-script contained in this directory extracts the certificates from the rewe apk.

usage

  • Optional: Provide a working directory (-WorkingDirectory <Path>); if not provided, the current working-directory is used
  • Optional: Provide the apk-file to use (-ApkFile <Path>); if not provided:
    • the working directory is searched for an apk file
    • if not found, rewe apk ver. 3.18.5 is downloaded from uptodown.net

In a powershell-window, run

.\rewerse-engineering.ps1

Currently trying to get better at powershell, feedback appreciated.

download + run

In a powershell-window, run

git clone https://github.com/ByteSizedMarius/rewerse-engineering
cd .\rewerse-engineering\docs

$OriginalExecutionPolicy = Get-ExecutionPolicy
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process -Force

.\rewerse-engineering.ps1

Set-ExecutionPolicy -ExecutionPolicy $OriginalExecutionPolicy -Scope Process -Force

manual extraction

You can also quite easily extract the pfx manually by downloading the apk, opening it as a zip (or renaming the file to .zip) and then navigating to /res/raw. Then copy the pfx out of the zip. Torbens commands for extracting cert+key should work, but I have not tested them.

misc

Torben also has a python helper that's a bit less overengineered.

apk versions:

version tested
3.18.5
3.18.4
3.18.3
3.18.2
3.18.1
3.18.0
3.17.5
3.16.6
3.16.5
3.16.2

Testing was very unnecessary, since it has seemingly been exactly the same setup for some time.