首页
社区
课程
招聘
[求助]请教下APKfuscator该怎么用
发表于: 2013-2-28 17:42 10770

[求助]请教下APKfuscator该怎么用

2013-2-28 17:42
10770
APKfuscator是Tim Strazzere写的一个防止dex逆向的开源项目。
https://github.com/strazzere/APKfuscator

昨晚小弟在ubuntu系统玩了下,发现测试apkfuscator.rb时没反应
mad@ubuntu:~/APKfuscator/APKfuscator$ ruby apkfuscator.rb - 没反应
mad@ubuntu:~/APKfuscator/APKfuscator$ ruby apkfuscator.rb xxx.apk - 也没反应

如果光输入./apkfuscator.rb - 终端提示我
./apkfuscator.rb: line 19: require: command not found
./apkfuscator.rb: line 20: require: command not found
./apkfuscator.rb: line 21: require: command not found
./apkfuscator.rb: line 22: require: command not found
./apkfuscator.rb: line 23: require: command not found
./apkfuscator.rb: line 25: class: command not found
./apkfuscator.rb: line 27: DEX: command not found
./apkfuscator.rb: line 28: ODEX: command not found
./apkfuscator.rb: line 30: DEX_VER_35: command not found
./apkfuscator.rb: line 31: DEX_VER_36: command not found
./apkfuscator.rb: line 32: DEX_OPT_VER_36: command not found
./apkfuscator.rb: line 34: DEX_MAGIC: command not found
./apkfuscator.rb: line 35: DEX_OPT_MAGIC: command not found
./apkfuscator.rb: line 36: DEX_DEP_MAGIC: command not found
./apkfuscator.rb: line 38: DEX_MAGIC_VERS_35: command not found
./apkfuscator.rb: line 39: DEX_MAGIC_VERS_36: command not found
./apkfuscator.rb: line 40: DEX_OPT_MAGIC_VERS: command not found
./apkfuscator.rb: line 42: syntax error near unexpected token `('
./apkfuscator.rb: line 42: ` DEFAULT_HEADER_SIZE = '70'.to_i(16)'

不过测试\test-driver.rb就有提示
[+] loaded file [ code_nerf.test ]
[+] Checksum appears to be fine! [ 0x957a25b8 ]
[+] Signature checks out! [ 0x69b8172ae7886fd6031d514b084943ff9e1fa3fe ]
[+] File size checks out! [ 6517 ]
[+] Header size checks out! [ 0x70 ]
[+] Endian tag checks out! [ 0x12345678 ]
[+] Link section is empty. (normal)

请问下各位是不是安装/配置的方式不正确导致这样呢?
sudo apt-get install ruby rubygems git
mkdir APKfuscator
cd APKfuscator
git init
git clone https://github.com/strazzere/APKfuscator.git

我看DexEducation-PracticingSafeDex.pdf那个文档
http://www.strazzere.com/papers/DexEducation-PracticingSafeDex.pdf
作者是可以直接./apkfuscator.rb的
但是我这边ubuntu却不行。。。

请各位指点一下,谢谢!

[招生]科锐逆向工程师培训(2024年11月15日实地,远程教学同时开班, 第51期)

收藏
免费 0
支持
分享
最新回复 (3)
雪    币: 86
活跃值: (25)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
如果光输入./apkfuscator.rb - 终端提示我
./apkfuscator.rb: line 19: require: command not found
./apkfuscator.rb: line 20: require: command not found
./apkfuscator.rb: line 21: require: command not found
./apkfuscator.rb: line 22: require: command not found
./apkfuscator.rb: line 23: require: command not found
./apkfuscator.rb: line 25: class: command not found
./apkfuscator.rb: line 27: DEX: command not found
./apkfuscator.rb: line 28: ODEX: command not found
./apkfuscator.rb: line 30: DEX_VER_35: command not found
./apkfuscator.rb: line 31: DEX_VER_36: command not found
./apkfuscator.rb: line 32: DEX_OPT_VER_36: command not found
./apkfuscator.rb: line 34: DEX_MAGIC: command not found
./apkfuscator.rb: line 35: DEX_OPT_MAGIC: command not found
./apkfuscator.rb: line 36: DEX_DEP_MAGIC: command not found
./apkfuscator.rb: line 38: DEX_MAGIC_VERS_35: command not found
./apkfuscator.rb: line 39: DEX_MAGIC_VERS_36: command not found
./apkfuscator.rb: line 40: DEX_OPT_MAGIC_VERS: command not found
./apkfuscator.rb: line 42: syntax error near unexpected token `('
./apkfuscator.rb: line 42: ` DEFAULT_HEADER_SIZE = '70'.to_i(16)'

这种情况是不是这些环境变量没有配置好呢,require一般用来加载其它的类这个命令都说灭有找到
2013-3-6 12:53
0
雪    币: 86
活跃值: (25)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
3
如果光输入./apkfuscator.rb - 终端提示我
./apkfuscator.rb: line 19: require: command not found
./apkfuscator.rb: line 20: require: command not found
./apkfuscator.rb: line 21: require: command not found
./apkfuscator.rb: line 22: require: command not found
./apkfuscator.rb: line 23: require: command not found
./apkfuscator.rb: line 25: class: command not found
./apkfuscator.rb: line 27: DEX: command not found
./apkfuscator.rb: line 28: ODEX: command not found
./apkfuscator.rb: line 30: DEX_VER_35: command not found
./apkfuscator.rb: line 31: DEX_VER_36: command not found
./apkfuscator.rb: line 32: DEX_OPT_VER_36: command not found
./apkfuscator.rb: line 34: DEX_MAGIC: command not found
./apkfuscator.rb: line 35: DEX_OPT_MAGIC: command not found
./apkfuscator.rb: line 36: DEX_DEP_MAGIC: command not found
./apkfuscator.rb: line 38: DEX_MAGIC_VERS_35: command not found
./apkfuscator.rb: line 39: DEX_MAGIC_VERS_36: command not found
./apkfuscator.rb: line 40: DEX_OPT_MAGIC_VERS: command not found
./apkfuscator.rb: line 42: syntax error near unexpected token `('
./apkfuscator.rb: line 42: ` DEFAULT_HEADER_SIZE = '70'.to_i(16)'

这种情况是不是这些环境变量没有配置好呢,require一般用来加载其它的类这个命令都说灭有找到
2013-3-6 12:53
0
雪    币: 200
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
4
我是ruby新手,就是不知道缺了什么
2013-3-6 15:02
0
游客
登录 | 注册 方可回帖
返回
//