博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
工欲善其事,必先利其器之—Android 反编译利器-classyshark
阅读量:4030 次
发布时间:2019-05-24

本文共 4099 字,大约阅读时间需要 13 分钟。

介绍

这里写图片描述

,Google出口必属精品,你值得拥有!
classyshark的优点:

  • 直接打开并反编译dex、apk、jar、arr
  • 图形化操作,方便查看各类文件信息,方法类占比情况等
  • 支持代码的增量搜索

安装

直接下载,放在本地目录。我的习惯是放在如下本地目录(home/dev_tool/),并设置相关的快捷访问方式(注 意要 : chmod +x ClassyShark.jar)

# 在.bash_profile添加如下aliasalias classyshark='java -jar ${HOME}/dev_tool/jars/ClassyShark.jar'

使用

示例:使用classyshark官中窥豹Bilibili APP

帮助

先看看帮忙说明

luogw@luogw-MacBook-Pro Downloads$ classyshark -hmissing command line argumentsUsage: java -jar ClassyShark.jar [-options] 
[args...] (to execute a ClassyShark on binary archive jar/apk/dex/class)where options include: -open open an archive with GUI -export export to file -methodcounts packages with method counts -inspect experimental prints apk analysis -update updates ClassySharkwhere args is an optional classname

实践

打开apk

luogw@luogw-MacBook-Pro Downloads$ classyshark -open iBiliPlayer-bili.apk

这里写图片描述

这里写图片描述

这里写图片描述

这里写图片描述

这里写图片描述

导出分析文件

luogw@luogw-MacBook-Pro Downloads$ classyshark -export iBiliPlayer-bili.apkmethod_counts.txtParsing classes.dexParsing classes2.dexParsing classes3.dexParsing classes4.dex

输出的文件如下

-rw-r--r--  1 luogw  staff    102710  6 15 11:06 AndroidManifest.xml_dump-rw-r--r--  1 luogw  staff    981951  6 15 11:06 all_classes.txt-rw-r--r--  1 luogw  staff   7284500  6 15 11:06 all_methods.txt-rw-r--r--  1 luogw  staff   6534696  6 15 11:06 all_strings.txt-rw-r--r--  1 luogw  staff    982666  6 15 11:06 method_counts.txt

列出方法数

luogw@luogw-MacBook-Pro temp$ classyshark -methodcounts

iBiliPlayer-bili.apk

端终上输出method_counts.txt的内容

简要的分析

输出App的dex情况和使用的主要组件

uogw@luogw-MacBook-Pro temp$ classyshark -inspect iBiliPlayer-bili.apk                  ~ APK DASHBOARD ~+-------------------+------------------------------------------------------------------------------------------------------------------------------------+| Recommendation    | Description                                                                                                                        |+-------------------+------------------------------------------------------------------------------------------------------------------------------------+|                   |                                                                                                                                    || classes.dex       | 65241 methods                                                                                                                      || classes2.dex      | 64840 methods                                                                                                                      || classes3.dex      | 65053 methods                                                                                                                      || classes4.dex      | 37920 methods                                                                                                                      ||                   |                                                                                                                                    || Java              | Duplicate image loading libraries -  picasso fresco                                                                                ||                   |                                                                                                                                    || System Broadcast  | android.intent.action.DOWNLOAD_COMPLETE ==> com.bilibili.ad.adview.web.apkdownload.ApkMgr$ApkDownloadReceiver                      || System Broadcast  | android.intent.action.MEDIA_BUTTON ==> tv.danmaku.biliplayer.features.headset.HeadsetControlPlayAdapter$HeadsetMediaButtonReceiver || System Broadcast  | android.net.conn.CONNECTIVITY_CHANGE ==> com.xiaomi.push.service.receivers.NetworkStatusReceiver                                   ||                   |                                                                                                                                    |+-------------------+------------------------------------------------------------------------------------------------------------------------------------+
你可能感兴趣的文章
关于信息检索(IR)、搜索引擎的学与思
查看>>
关于广告、推荐中的CTR的学于思
查看>>
文本分类
查看>>
自然语言处理中的Attention机制
查看>>
pbc 的使用
查看>>
luasocket 安装遇到的问题
查看>>
lua读写redis的环境部署
查看>>
Using MIT-Scheme in MacOS X on the Command Line
查看>>
php redis 接口说明
查看>>
cocos2dx使用lua和protobuf
查看>>
lua5.2 可能会遇到的一些错误
查看>>
C语言编译过程
查看>>
stirling formula prove
查看>>
关于数字类型转化为整型的方法
查看>>
PHP 常用正则表达式整理
查看>>
自然计算
查看>>
自然计算时间复杂度杂谈
查看>>
当前主要目标和工作
查看>>
系统菜单
查看>>
路漫漫其修远兮,吾将上下而求索(2)
查看>>