From 40b0da98855023914db63a8556dd023fe72e5135 Mon Sep 17 00:00:00 2001 From: vin01 Date: Fri, 8 Oct 2021 21:36:49 +0200 Subject: [PATCH] Specify public key for PythonRSASigner --- mvt/android/modules/adb/base.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mvt/android/modules/adb/base.py b/mvt/android/modules/adb/base.py index 56dcc2e..e86f04a 100644 --- a/mvt/android/modules/adb/base.py +++ b/mvt/android/modules/adb/base.py @@ -56,7 +56,10 @@ class AndroidExtraction(MVTModule): with open(ADB_KEY_PATH, "rb") as handle: priv_key = handle.read() - signer = PythonRSASigner("", priv_key) + with open(ADB_PUB_KEY_PATH, "rb") as handle: + pub_key = handle.read() + + signer = PythonRSASigner(pub_key, priv_key) # If no serial was specified or if the serial does not seem to be # a HOST:PORT definition, we use the USB transport.