How to deploy and use Obfuscapk

How to deploy and use Obfuscapk

When I going to use Obfuscapk,I find its introduction is not very clear,which makes me puzzled. In this blog I’d like to give a more clear introduction with pictures and commands. I am not a native English speaker,so this blog may has a lot of grammatical errors. I am so sorry about these errors. Above all, I hope this blog can help you.

Operating System :Ubuntu 22.04

Docker:lastest version

What is Obfuscapk

Obfuscapk is an open source python to for obfuscating apk code. Nowadays,the reversing tools such as apktools or jd-gui are widely used,it is very easy to analyze your source code. In this case, Obfuscapk aims to make your source code hard to read by obfuscating code in many different ways.

How to install it

In this blog I will teach you how to deploy obfuscapk on your computer by docker. Before we deploy this subject, you have to install docker first.

  1. pull the image
sudo docker pull claudiugeorgiu/obfuscapk
  1. give this image a tag
sudo docker tag claudiugeorgiu/obfuscapk obfuscapk

after this we can use “docker images” to see our images.

在这里插入图片描述

if you can see obfuscapk,that means you have pull it successfully. We can use this command to make a test.

sudo docker run --rm -it obfuscapk --help

if you can see following picture,that means you have deployed it successfully.

在这里插入图片描述

how to use it

What we need to do is that put the apk into the docker images. The best way to do this is mounted a local directory. Put your apk in the directory.

Using this order

sudo docker run --rm -it -u $(id -u):$(id -g) -v "<this is your local directory>":"/workdir" obfuscapk  -o ClassRename -o MethodRename -o ResStringEncryption -o Rebuild -o NewAlignment -o NewSignature test.apk

After doing this ,you will find a folder in your local directory.

在这里插入图片描述

In this folder you can find obfuscated apk.

We can use reversing tool to reverse the apk and analyze what happened to this apk.

We can get this:

在这里插入图片描述

Something you have to remind

The first thing you have to remind is that you have to make sure the sequence of the obfuscating options.

-o Rebuild -o NewAlignment -o NewSignature

these option must be placed at the tail of the sequence.

Another thing is that if you use jd-gui to reverse apk, don’t use open-jdk,download jdk from oracle.

That’s all,hope this blog will help you.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值