You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can also quite easily extract the pfx manually.
19
19
1.[Download the apk](https://apkpure.com/de/rewe-supermarkt/de.rewe.app.mobile/download). Version does not really matter. However, pay attention to which download button you click, as many of these sites have been introducing dark patterns to get you to install their store instead.
20
-
2. Rename the file from `.apk` or `.apkx` to `.zip`.
20
+
2. Rename the file from `.apk` or `.apkx` to `.zip` and open the zip.
21
21
- If you had an `apkx`-file: Copy `de.rewe.app.mobile.apk` out of the zip and redo step 2 with this apk.
22
22
3. Navigate to `/res/raw`, where you will find the `mtls_prod.pfx`.
23
23
4. Extract key and pem from the `.pfx`.
@@ -33,7 +33,7 @@ You can also quite easily extract the pfx manually.
33
33
- Optional: Provide a working directory (`-WorkingDirectory <Path>`); if not provided, the current working-directory is used
34
34
- Optional: Provide the apk-file to use (`-ApkFile <Path>`); if not provided:
35
35
- the working directory is searched for an apk file
36
-
- if not found, rewe apk ver. 4.1.0 is downloaded from uptodown.net
36
+
- if not found, rewe apk ver. 5.7.3 is downloaded from uptodown.net
37
37
- Optional: Just extract key/pem from `mtls_prod.pfx` in current WorkingDirectory (`-Pfx`)
38
38
- Optional: Just extract key/pem from pfx at path (`-PfxPath <Path>`)
39
39
- Optional: Just download the apk to the current working directory (`-Dl`). Note: File ending is always .apk, even when it is an xapk.
@@ -44,6 +44,7 @@ Apk versions tested with the script:
if ($content-match"<div[^>]*data-url=`"([^`"]+)`"[^>]*data-version-id=`"([^`"]+)`"[^>]*data-extra-url=`"([^`"]+)`"[^>]*>[\s\S]*?<span[^>]*class=`"version`"[^>]*>$escapedVersion</span>") {
34
+
$baseUrl=$Matches[1]
35
+
$versionId=$Matches[2]
36
+
$extraUrl=$Matches[3]
37
+
return"$baseUrl/$extraUrl/$versionId"
57
38
}
58
-
59
-
return$targetVersionDiv.getAttribute("data-url")
39
+
40
+
Write-Error"Target version $targetVersion not found on the page"
0 commit comments