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

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

2013-2-28 17:42
10882
APKfuscator是Tim Strazzere写的一个防止dex逆向的开源项目。
d96K9s2c8@1M7s2y4Q4x3@1q4Q4x3V1k6Q4x3V1k6Y4K9i4c8Z5N6h3u0Q4x3X3g2U0L8$3#2Q4x3V1k6K6N6s2u0S2P5Y4A6W2M7X3g2Q4x3V1k6m8f1p5E0X3N6i4y4U0j5i4c8G2M7R3`.`.

昨晚小弟在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 572K9s2c8@1M7s2y4Q4x3@1q4Q4x3V1k6Q4x3V1k6Y4K9i4c8Z5N6h3u0Q4x3X3g2U0L8$3#2Q4x3V1k6K6N6s2u0S2P5Y4A6W2M7X3g2Q4x3V1k6m8f1p5E0X3N6i4y4U0j5i4c8G2M7W2)9J5k6h3N6A6N6l9`.`.

我看DexEducation-PracticingSafeDex.pdf那个文档
cd7K9s2c8@1M7q4)9K6b7g2)9J5c8W2)9J5c8Y4N6%4N6#2)9J5k6i4y4@1M7X3q4*7P5X3g2J5k6g2)9J5k6h3y4G2L8g2)9J5c8Y4m8S2M7r3g2J5M7#2)9J5c8V1c8W2P5p5g2V1N6h3y4S2N6r3W2G2L8W2)9J5k6q4m8J5j5h3y4@1K9h3y4A6L8X3N6e0j5h3k6W2c8r3g2^5i4K6u0W2M7r3c8X3
作者是可以直接./apkfuscator.rb的
但是我这边ubuntu却不行。。。

请各位指点一下,谢谢!

[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课

收藏
免费 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
游客
登录 | 注册 方可回帖
返回