Commit 0bc7ee01 by sikang

update script

parent 86600d6c
...@@ -39,16 +39,16 @@ command = int(input("请输入指令编号:")) ...@@ -39,16 +39,16 @@ command = int(input("请输入指令编号:"))
if command == 0: if command == 0:
#布局文件混淆 必须放前面 #布局文件混淆 必须放前面
LayoutGarble().layout_garble(config) LayoutGarble().layout_garble(config)
#Manifest混淆
ManifestGarble().manifest_garble(config)
#插入java乱码 必须放前面
JavaGarble().java_garble(config)
#四大组件类名混淆 #四大组件类名混淆
ActivityGarble().activity_garble(config) ActivityGarble().activity_garble(config)
#Api混淆
ApiGarble().api_garble(config)
#包路径混淆 #包路径混淆
PackageGarble().pkg_garble(config) PackageGarble().pkg_garble(config)
#Manifest混淆 #Api混淆
ManifestGarble().manifest_garble(config) ApiGarble().api_garble(config)
#插入java乱码
JavaGarble().java_garble(config)
#字符串混淆 #字符串混淆
StringGarble().str_grable(config) StringGarble().str_grable(config)
#图片混淆 #图片混淆
......
...@@ -17,7 +17,8 @@ class ManifestGarble: ...@@ -17,7 +17,8 @@ class ManifestGarble:
def __create_activities(self,path): def __create_activities(self,path):
activities = [] activities = []
for root, dirs, files in os.walk(path): for root, dirs, files in os.walk(path):
if len(files) > 0 and (files[0].endswith(".java") or files[0].endswith(".kt")): randomBool = random.randint(0,10) % random.randint(0,3) == 0
if randomBool and len(files) > 0 and (files[0].endswith(".java") or files[0].endswith(".kt")):
for i in range(0,random.randint(3,10)): for i in range(0,random.randint(3,10)):
act_name = self.__gen_rand_str() act_name = self.__gen_rand_str()
act_path = "%s/%s.java"%(root, act_name) act_path = "%s/%s.java"%(root, act_name)
......
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