Commit a80c5fba by sikang

update

parent 83815e1c
......@@ -5,7 +5,7 @@ from tools.garble.manifest_grable import ManifestGarble
from tools.garble.package_garble import PackageGarble
from tools.garble.string_garble import StringGarble
from func import Function
import os
#读取config.json配置
config_json = {}
......@@ -24,6 +24,7 @@ print("2、api混淆(针对 Retrofit 注解)")
print("3、manifest混淆 在包路径中随机插入Activity并注册")
print("4、包路径混淆")
print("5、字符串插入/加密")
print("6、还原代码")
print(" ")
command = int(input("请输入指令编号:"))
......@@ -47,3 +48,19 @@ elif command == 4:
elif command == 5:
StringGarble().str_grable(config)
elif command == 6:
#每行一个shell命令,参考自行修改
command = "%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n" \
% (
"cd %s" % config['root'],
"git checkout . && git clean -df",
"git reset --hard origin/%s" % config['git_branch'],
"cd lib_base || { echo \"lib_base not exist!\"; exit 1; }",
"git checkout . && git clean -df",
"git reset --hard origin/master",
"cd ../cash_plugin_toolbox",
"git checkout . && git clean -df",
"git reset --hard origin/master"
)
os.system(command)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment