AndroidFridaManager 1.8.3__py3-none-any.whl → 1.8.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- AndroidFridaManager/FridaManager.py +19 -2
- AndroidFridaManager/about.py +1 -1
- {androidfridamanager-1.8.3.dist-info → androidfridamanager-1.8.5.dist-info}/METADATA +2 -2
- androidfridamanager-1.8.5.dist-info/RECORD +11 -0
- androidfridamanager-1.8.3.dist-info/RECORD +0 -11
- {androidfridamanager-1.8.3.dist-info → androidfridamanager-1.8.5.dist-info}/WHEEL +0 -0
- {androidfridamanager-1.8.3.dist-info → androidfridamanager-1.8.5.dist-info}/entry_points.txt +0 -0
- {androidfridamanager-1.8.3.dist-info → androidfridamanager-1.8.5.dist-info}/licenses/LICENSE +0 -0
- {androidfridamanager-1.8.3.dist-info → androidfridamanager-1.8.5.dist-info}/top_level.txt +0 -0
|
@@ -14,6 +14,7 @@ import warnings
|
|
|
14
14
|
from shutil import copyfile
|
|
15
15
|
import tempfile
|
|
16
16
|
import argparse
|
|
17
|
+
import shutil
|
|
17
18
|
|
|
18
19
|
# some parts are taken from ttps://github.com/Mind0xP/Frida-Python-Binding/
|
|
19
20
|
|
|
@@ -41,6 +42,9 @@ class FridaManager():
|
|
|
41
42
|
self._setup_logging()
|
|
42
43
|
self.logger = logging.getLogger(__name__)
|
|
43
44
|
|
|
45
|
+
# Check if ADB is available
|
|
46
|
+
self._check_adb_availability()
|
|
47
|
+
|
|
44
48
|
if self.is_remote:
|
|
45
49
|
frida.get_device_manager().add_remote_device(self.device_socket)
|
|
46
50
|
|
|
@@ -71,9 +75,18 @@ class FridaManager():
|
|
|
71
75
|
logging_handler.setFormatter(color_formatter)
|
|
72
76
|
logger.addHandler(logging_handler)
|
|
73
77
|
|
|
78
|
+
def _check_adb_availability(self):
|
|
79
|
+
"""
|
|
80
|
+
Check if ADB is available in the system PATH
|
|
81
|
+
"""
|
|
82
|
+
if not shutil.which("adb"):
|
|
83
|
+
print("Error: ADB (Android Debug Bridge) is not found in your system PATH.")
|
|
84
|
+
print("Please install Android SDK platform-tools and add it to your PATH:")
|
|
85
|
+
print(" - Download from: https://developer.android.com/studio/releases/platform-tools")
|
|
86
|
+
print(" - Or install via package manager (e.g., 'brew install android-platform-tools' on macOS)")
|
|
87
|
+
print(" - Make sure 'adb' command is accessible from your terminal")
|
|
88
|
+
sys.exit(1)
|
|
74
89
|
|
|
75
|
-
|
|
76
|
-
|
|
77
90
|
def run_frida_server(self, frida_server_path="/data/local/tmp/"):
|
|
78
91
|
# Check if frida-server is already running
|
|
79
92
|
if self.is_frida_server_running():
|
|
@@ -106,6 +119,10 @@ class FridaManager():
|
|
|
106
119
|
else:
|
|
107
120
|
self.logger.error(f"Failed to start frida-server: {stderr.decode()}")
|
|
108
121
|
raise RuntimeError(f"Failed to start frida-server: {stderr.decode()}")
|
|
122
|
+
else:
|
|
123
|
+
# Process is still running (background), which is expected for frida-server
|
|
124
|
+
if self.verbose:
|
|
125
|
+
self.logger.info("[*] frida-server started successfully in background")
|
|
109
126
|
except Exception as e:
|
|
110
127
|
self.logger.error(f"Error starting frida-server: {e}")
|
|
111
128
|
raise
|
AndroidFridaManager/about.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: AndroidFridaManager
|
|
3
|
-
Version: 1.8.
|
|
3
|
+
Version: 1.8.5
|
|
4
4
|
Summary: A python API in order to install and run the frida-server on an Android device.
|
|
5
5
|
Home-page: https://github.com/fkie-cad/AndroidFridaManager
|
|
6
6
|
Author: Daniel Baier
|
|
@@ -33,7 +33,7 @@ Dynamic: requires-dist
|
|
|
33
33
|
Dynamic: requires-python
|
|
34
34
|
Dynamic: summary
|
|
35
35
|
|
|
36
|
-
 [](https://badge.fury.io/py/AndroidFridaManager) [](https://github.com/fkie-cad/AndroidFridaManager/actions/workflows/publish-to-pypi.yml)
|
|
37
37
|
|
|
38
38
|
# AndroidFridaManager
|
|
39
39
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
AndroidFridaManager/FridaManager.py,sha256=9xM9P6GIw_fm3UrWOdQnRi7NB5iFvgvWkRuuVKz3sIQ,16074
|
|
2
|
+
AndroidFridaManager/__init__.py,sha256=T6AKtrGSLQ9M5bJoWDQcsRTJbSEbksdgrx3AAAdozRI,171
|
|
3
|
+
AndroidFridaManager/about.py,sha256=vU4MlTF_-q05fuzl1EcPjEq7xji9GVxx-NEu4rCtuvc,98
|
|
4
|
+
AndroidFridaManager/job.py,sha256=QTSNjdV7XqawSTV19HQt53aiwoT3UaQeQw2K4AWPxY8,3265
|
|
5
|
+
AndroidFridaManager/job_manager.py,sha256=icdNlfqorEM3XVw4h_83IcoupEFDlkzb29VhEZ6dxrQ,12294
|
|
6
|
+
androidfridamanager-1.8.5.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
7
|
+
androidfridamanager-1.8.5.dist-info/METADATA,sha256=QGNvGV9eeDU9A3uhJiI9syj3zathatsoeLONV9gN1cw,5141
|
|
8
|
+
androidfridamanager-1.8.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
9
|
+
androidfridamanager-1.8.5.dist-info/entry_points.txt,sha256=GmNngu2fDNCxUcquFRegBa7GWknPKG1jsM4lvWeyKnY,64
|
|
10
|
+
androidfridamanager-1.8.5.dist-info/top_level.txt,sha256=oH2lVMSRlghmt-_tVrOEUqvY462P9hd5Ktgp5-1qF3o,20
|
|
11
|
+
androidfridamanager-1.8.5.dist-info/RECORD,,
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
AndroidFridaManager/FridaManager.py,sha256=kaOua90QoYCZYjE-PLv2jKNbjGsR049iSdguzpS7IOo,15108
|
|
2
|
-
AndroidFridaManager/__init__.py,sha256=T6AKtrGSLQ9M5bJoWDQcsRTJbSEbksdgrx3AAAdozRI,171
|
|
3
|
-
AndroidFridaManager/about.py,sha256=9PIAKC-I68GSVhurcOpqSExKNmRXqkqGHjeJ0eQtdIg,98
|
|
4
|
-
AndroidFridaManager/job.py,sha256=QTSNjdV7XqawSTV19HQt53aiwoT3UaQeQw2K4AWPxY8,3265
|
|
5
|
-
AndroidFridaManager/job_manager.py,sha256=icdNlfqorEM3XVw4h_83IcoupEFDlkzb29VhEZ6dxrQ,12294
|
|
6
|
-
androidfridamanager-1.8.3.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
7
|
-
androidfridamanager-1.8.3.dist-info/METADATA,sha256=Juumzl4unTLH2Ee6M0ByzYEDGq7kWCES3YijRSt2htM,5141
|
|
8
|
-
androidfridamanager-1.8.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
9
|
-
androidfridamanager-1.8.3.dist-info/entry_points.txt,sha256=GmNngu2fDNCxUcquFRegBa7GWknPKG1jsM4lvWeyKnY,64
|
|
10
|
-
androidfridamanager-1.8.3.dist-info/top_level.txt,sha256=oH2lVMSRlghmt-_tVrOEUqvY462P9hd5Ktgp5-1qF3o,20
|
|
11
|
-
androidfridamanager-1.8.3.dist-info/RECORD,,
|
|
File without changes
|
{androidfridamanager-1.8.3.dist-info → androidfridamanager-1.8.5.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{androidfridamanager-1.8.3.dist-info → androidfridamanager-1.8.5.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|