MobSF / Mobile-Security-Framework-MobSF

Mobile Security Framework (MobSF) is an automated, all-in-one mobile application (Android/iOS/Windows) pen-testing, malware analysis and security assessment framework capable of performing static and dynamic analysis.
https://opensecurity.in
GNU General Public License v3.0
17.02k stars 3.2k forks source link

Dynamic Analysis Error ! #2415

Closed oguzhanozgur closed 1 month ago

oguzhanozgur commented 1 month ago

When I want to do dynamic analysis, I'm getting error. This is the page screenshot: image

And the logs;

[INFO] 26/Jul/2024 11:16:50 - Connecting to Android host.docker.internal:6562 [INFO] 26/Jul/2024 11:16:50 - Waiting for 2 seconds... [INFO] 26/Jul/2024 11:16:52 - Restarting ADB Daemon as root adb: unable to connect for root: device 'host.docker.internal:6562' not found [ERROR] 26/Jul/2024 11:16:52 - Dynamic Analyzer Traceback (most recent call last): File "/home/mobsf/Mobile-Security-Framework-MobSF/mobsf/DynamicAnalyzer/views/android/dynamic_analyzer.py", line 166, in dynamic_analyzer if not env.connect_n_mount(): File "/home/mobsf/Mobile-Security-Framework-MobSF/mobsf/DynamicAnalyzer/views/android/environment.py", line 95, in connect_n_mount if not self.run_subprocess_verify_output([get_adb(), File "/home/mobsf/Mobile-Security-Framework-MobSF/mobsf/DynamicAnalyzer/views/android/environment.py", line 68, in run_subprocess_verify_output out = subprocess.check_output(cmd) # lgtm [py/command-line-injection] File "/usr/lib/python3.10/subprocess.py", line 421, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, File "/usr/lib/python3.10/subprocess.py", line 526, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['/usr/bin/adb', '-s', 'host.docker.internal:6562', 'root']' returned non-zero exit status 1. [ERROR] 26/Jul/2024 11:16:52 - Dynamic Analysis Failed. [ERROR] 26/Jul/2024 11:16:52 - Internal Server Error: /android_dynamic/3d134c6bc2ae94a75996e606d66495ff


I'm pretty sure I'm connected with the adb. image

What is the problem? And what can I do? Thanks.

github-actions[bot] commented 1 month ago

👋 @oguzhanozgur Issues is only for reporting a bug/feature request. For limited support, questions, and discussions, please join MobSF Slack channel Please include all the requested and relevant information when opening a bug report. Improper reports will be closed without any response.