尝试使用 DroidBox 时出错

发布于 2024-12-18 00:49:43 字数 742 浏览 0 评论 0原文

我正在研究如何分析 Android 应用程序的使用 DroidBox。但是当开始分析:

./droidbox.sh file.apk

时出现如下错误:

android@honeynet:~/tools/droidbox$ ./droidbox.sh a.apk
./droidbox.sh: line 3: adb: command not found
./droidbox.sh: line 3: adb: command not found

Traceback (most recent call last):
 File "scripts/droidbox.py", line 233, in <module>
   call(['adb', 'logcat', '-c'])
 File "/usr/lib/python2.6/subprocess.py", line 480, in call
   return Popen(*popenargs, **kwargs).wait()
 File "/usr/lib/python2.6/subprocess.py", line 1139, in _execute_child
   raise child_exception
0SError: [Errno 2] No such file or directory 

问题是什么? 谢谢!

I am researching how to analyze the application Android use DroidBox. But when start analyzing :

./droidbox.sh file.apk

get error as follows:

android@honeynet:~/tools/droidbox$ ./droidbox.sh a.apk
./droidbox.sh: line 3: adb: command not found
./droidbox.sh: line 3: adb: command not found

Traceback (most recent call last):
 File "scripts/droidbox.py", line 233, in <module>
   call(['adb', 'logcat', '-c'])
 File "/usr/lib/python2.6/subprocess.py", line 480, in call
   return Popen(*popenargs, **kwargs).wait()
 File "/usr/lib/python2.6/subprocess.py", line 1139, in _execute_child
   raise child_exception
0SError: [Errno 2] No such file or directory 

What's the problem?
Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

可是我不能没有你 2024-12-25 00:49:43

错误消息非常清楚 - 您的路径中没有 adb

获取 adb 最简单的方法是下载 Android SDK。 adb 位于 platform-tools 文件夹中。

事实上,droidbox首页提到了这一点。所以你可能已经错过了。

export PATH=$PATH:/path/to/android-sdk/tools/
export PATH=$PATH:/path/to/android-sdk/platform-tools/

The error message is pretty clear - you don't have adb in your path.

Easiest way to get adb is to download Android SDK. adb is located in platform-tools folder.

In fact, droidbox front page mentions this. So you've probably missed that.

export PATH=$PATH:/path/to/android-sdk/tools/
export PATH=$PATH:/path/to/android-sdk/platform-tools/
甜是你 2024-12-25 00:49:43

您似乎没有安装 Android SDK 工具,或者您的 PATH 设置不正确。请参阅安装 SDK 并务必查看“如何更新 PATH”部分在步骤 5 下。

It would seem that you do not have the Android SDK tools installed, or your PATH is not set up correctly. See Installing the SDK and be sure to check out the section "How to update your PATH" under Step 5.

疯了 2024-12-25 00:49:43

您应该进入配置文件添加这两个路径,如下所示:

cd etc
sudo vim ~/.profile
export PATH=$PATH:/path/to/android-sdk/tools/
export PATH=$PATH:/path/to/android-sdk/platform-tools/

You should go to the profile to add these two paths as follows:

cd etc
sudo vim ~/.profile
export PATH=$PATH:/path/to/android-sdk/tools/
export PATH=$PATH:/path/to/android-sdk/platform-tools/
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文