• 安卓动态逆向分析工具--Andbug&Androguard


    工具使用方法:

    转自:

    http://bbs.pediy.com/showthread.php?t=183412

    https://testerhome.com/topics/3542

    安装andbug过程中可能会报错,找不到

    clang: error: unknown argument: '-mno-fused-madd'

    解决办法:

    编译之前运行命令:

    export CFLAGS=-Qunused-arguments

    export CPPFLAGS=-Qunused-arguments

    原因

    You can tell clang to not raise this as an error by setting the following environment variables prior compilation:

    export CFLAGS=-Qunused-arguments
    export CPPFLAGS=-Qunused-arguments

    Then pip install psycopg2should work.

    I had the same when trying to pip install lxml.

    Edit: if you are installing as superuser (which will likely be the case if you are trying to append to /Library/Python/2.7/site-packages, the native Apple factory-installed Python distribution which ships with OS X, rather than to some other Python distribution which you have subsequently installed yourself), then you will need to do, as described by @Thijs Kuipers in comments below:

    sudo -E pip install psycopg2

    or the equivalent, for whatever other package name you may be substituting in place of psycopg2.

    UPDATE [2014-05-16]: Apple has fixed this problem with updated system Pythons (2.7, 2.6, and 2.5) in OS X 10.9.3 so the workaround is no longer necessary when using the latest Mavericks and Xcode 5.1+. However, as of now, the workaround is still required for OS X 10.8.x(Mountain Lion, currently 10.8.5) if you are using Xcode 5.1+ there.

    安装完成后运行andbug, 出现下面截图,则表示安装成功:

    通过adb shell ps | grep packagename查看应用进程,

    获取pid后,andbug shell -p pid

    调试遇到以下问题:

    !! EOF
    Traceback (most recent call last):
      File "./andbug", line 49, in main
        andbug.command.run_command(args)
      File "/Users/huangxiaoshi/AndBug/lib/andbug/command.py", line 266, in run_command
        return ctxt.perform(args[0], args[1:])
      File "/Users/huangxiaoshi/AndBug/lib/andbug/command.py", line 189, in perform
        if act.proc: self.connect()
      File "/Users/huangxiaoshi/AndBug/lib/andbug/command.py", line 65, in connect
        self.sess = andbug.vm.connect(self.pid, self.dev)
      File "/Users/huangxiaoshi/AndBug/lib/andbug/vm.py", line 1856, in connect
        conn = andbug.proto.connect(andbug.proto.forward(pid, dev))  #conn是Connection(Thread)类型的一个对象
      File "/Users/huangxiaoshi/AndBug/lib/andbug/proto.py", line 113, in connect
        p.start()
      File "/Users/huangxiaoshi/AndBug/lib/andbug/proto.py", line 319, in start
        self.readHandshake()
      File "/Users/huangxiaoshi/AndBug/lib/andbug/proto.py", line 182, in readHandshake
        data = self.read(len(HANDSHAKE_MSG))
      File "/Users/huangxiaoshi/AndBug/lib/andbug/proto.py", line 149, in read
        pkt = self._read(sz)  #返回值是读到的数据
      File "/Users/huangxiaoshi/AndBug/lib/andbug/proto.py", line 95, in read
        if not pkt: raise EOF()
    EOF: EOF

     怀疑是手机以及应用的权限问题:

    查看手机权限:

    adb shell getprop ro.debuggable

    查看应用权限:

    进入到sdk build tools下,找到appt工具,执行

    aapt list -v -a Kascend_Chushou_1.0.12.2032.apk >chushou.txt

    这个命令将会打印和apk相关的所有详细信息,找到“android:debuggable",它的值分为:
      0x0: debuggable false
      0xffffffff: debugabble true
    事实证明没有打印是否debuggable 的相关信息
     
  • 相关阅读:
    不需重新编译php,安装postgresql扩展(pgsql和pdo_pgsql)
    css如何实现水平垂直居中
    win系统DOS批处理命令:每日根据定时计划,弹出相应的提醒
    使用navicat连接mysql连接错误:Lost connection to Mysql server at 'waiting for initial communication packet'
    mysql域名解析引起的远程访问过慢?
    Jquery封装: 地区选择联动插件
    Jquery封装: WebSocket插件
    Jquery封装:下拉框插件
    如何在微信小程序中使用阿里字体图标
    轻量级进度条 – Nprogress.js
  • 原文地址:https://www.cnblogs.com/melody-emma/p/4971648.html
Copyright © 2020-2023  润新知