This powershell-script contained in this directory extracts the certificates from the rewe apk.
- 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.
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
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.
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.