zoukankan      html  css  js  c++  java
  • android 检测工具: drozer

    1. 下载

    https://www.mwrinfosecurity.com/products/drozer/community-edition/

    可以下载windows的也可以下载linux的

    2. 使用

    如果下载windows的,注意以下问题:

    If this error persists, specify the path in the ~/.drozer_config file:
    
        [executables]
        java = C:path	ojava

    如果遇到以上的错误,可以尝试按照他的推荐修复,但是我是没有找到config那个文件,这个错误其实是可以忽略的。但是前提是你将其他条件都准备好了:

    第一步:在pc上运行

    adb -d forward tcp:31415 tcp:31415

    第二步:Android上按照agent.apk,然后打开,进入“drozer  server”,点击使处于Enable状态

    第三步:这个时候在运行drozer

    C:drozer>drozer.bat console connect

    具体的测试命令可以参照如下:

    http://www.tuicool.com/articles/mMNnYz

    http://drops.wooyun.org/tips/2997

    http://drops.wooyun.org/tips/3936

    http://www.kechuandai.net/tag/drozer/

    a. 检测activity

    反编译查看配置文件AndroidManifest.xml中activity组件(关注配置了intent-filter的及未设置export=“false”的)如果配置了filter,但是没有配置action,也没有问题。
    所有有问题的就是:
    1. exported=true
    2. 没有设置exported属性,但是配置了intent-filter,且filter中有action。

     --action ACTION       specify the action to include in the Intent
     --category CATEGORY [CATEGORY ...]
                           specify the category to include in the Intent
     --component PACKAGE COMPONENT
                           specify the component name to include in the Inten
     --data-uri DATA_URI   specify a Uri to attach as data in the Intent
     --extra TYPE KEY VALUE
                           add an field to the Intent's extras bundle
     --flags FLAGS [FLAGS ...]
                           specify one-or-more flags to include in the Intent
     --mimetype MIMETYPE   specify the MIME type to send in the Intent

    检测方法:

    1. 手机上打开app

    2. drozer中使用app.activity.start启动各个暴露的activity,如果可以访问,或者造成程序崩溃,即是有问题

  • 相关阅读:
    github打开慢,甚至打不开
    在使用confluent-kafka-go 时遇到如下问题
    Istio Routing极简教程
    kubelet证书过期解决方法
    工具类docker for k8s
    selenium jar包 的下载地址,各版本都有
    使用TestNG进行多浏览器,跨浏览器和并行测试
    简单聊聊TestNG中的并发
    清除Git仓库多余文件及其历史记录 
    【MAVEN】maven系列--pom.xml标签详解
  • 原文地址:https://www.cnblogs.com/maseng/p/4350636.html
Copyright © 2011-2022 走看看