为什么我的droidbox总是收集0个沙盒日志

2021-09-27 05:23:21 发布

您现在位置:Python中文网/ 问答频道 /正文

我想得到更多的apk日志(网络,短信,泄漏,读/写行为)通过执行/droidbox.sh文件三十、 apk公司,但终端始终显示“collect 0 sandbox”,并且只获取静态结果(例如哈希值、广播接收器、强制权限) 这个droidbox.sh文件将执行droidbox.py文件,所以我追踪了droidbox.py文件在第267行计算

"logcatInput = sys.stdin.readline()",

哪个logcatInput是空值。。。。你知道吗

通过键入“adb logcat”尝试另一种查看日志的方法达尔维克姆:W*:S“,并显示空内容

--------- beginning of system

--------- beginning of main

但是模拟器运行正常。我能做些什么来查看更多的dalvikvm和droidbox日志?你知道吗

github上的代码如下: https://github.com/pjlantz/droidbox/blob/master/external/droidbox.py

如前所述,如何得到正确的logcatInput结果,才能得到完整的信息。我执行的步骤如下:

  1. launch the emulator by executing "emulator -avd test" (test is name of emulator)
  2. Then typing "./droidbox.sh com.kingroot.kinguser.apk" to launch the app and monkeyrunner

执行结果: 收集了0个沙盒日志(按Ctrl-C查看日志)

正在等待设备…框日志(Ctrl-C查看日志) 设备: 安装应用程序com.kingroot.kinguser公司.apk。。。 收集了0个沙盒日志(按Ctrl-C查看日志) [*]收集了0个沙盒日志

 [Info]
 ------
    File name:  com.kingroot.kinguser.apk
    MD5:        9a19974cbfb072f7cab0c13877b5fdd0
    SHA1:       88c834f6661d82a3c98405ccaa14a02f952e7010
    SHA256:     616df8b1da40a00e6e9e037dcc058b858833e65e1fd2ed7fa4a438be333d691d
    Duration:   5.13150787354s


 [File activities]
 -----------------

    [Read operations]
    -----------------

    [Write operations]
    ------------------

 [Crypto API activities]
 -----------------------

 [Network activity]
 ------------------

    [Opened connections]
    --------------------

    [Outgoing traffic]
    ------------------


    [Incoming traffic]
    ------------------

 [DexClassLoader]
 -----------------
 [Broadcast receivers]
 ---------------------
       com.kingroot.kinguser.receiver.DeviceOwnerReceiver            Action: android.app.action.DEVICE_ADMIN_ENABLED

       com.kingroot.common.framework.main.MainExitReceiver           Action: com.kingroot.master.action.MAIN_EXIT_CHECK

       com.kingroot.common.framework.broadcast.KSysBroadcastReceiver             Action: com.kingroot.kinguser.gamebox.ACTION_GAME_DELETED

       com.toprange.pluginmaster.base.ActionViewBroadcastReceiver            Action: com.toprange.plugin.action.UNINSTALL_SHORTCUT

       com.kingroot.kinguser.receiver.SuRequestReceiver          Action: com.kingroot.kinguser.SU_REQUEST

       com.kingroot.kinguser.receiver.AntiInjectLogDeleteReceiver            Action: com.kingroot.kinguser.ANTILOG_DELETE

 [Started services]
 ------------------
 [Enforced permissions]
 ----------------------
       com.kingroot.kinguser.INNER_BROADCAST
       com.kingroot.kinguser.permission.REQUEST
       com.kingroot.kinguser.permission.activityCalled
       com.kingroot.kinguser.permission.RootShell

 [Permissions bypassed]
 ----------------------

 [Information leakage]
 ---------------------

 [Sent SMS]
 ----------

 [Phone calls]
 -------------