Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lib_base
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sikang
lib_base
Commits
0bc7ee01
Commit
0bc7ee01
authored
Nov 14, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update script
parent
86600d6c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
python/help.py
+6
-6
python/tools/garble/manifest_grable.py
+2
-1
No files found.
python/help.py
View file @
0bc7ee01
...
...
@@ -39,16 +39,16 @@ command = int(input("请输入指令编号:"))
if
command
==
0
:
#布局文件混淆 必须放前面
LayoutGarble
()
.
layout_garble
(
config
)
#Manifest混淆
ManifestGarble
()
.
manifest_garble
(
config
)
#插入java乱码 必须放前面
JavaGarble
()
.
java_garble
(
config
)
#四大组件类名混淆
ActivityGarble
()
.
activity_garble
(
config
)
#Api混淆
ApiGarble
()
.
api_garble
(
config
)
#包路径混淆
PackageGarble
()
.
pkg_garble
(
config
)
#Manifest混淆
ManifestGarble
()
.
manifest_garble
(
config
)
#插入java乱码
JavaGarble
()
.
java_garble
(
config
)
#Api混淆
ApiGarble
()
.
api_garble
(
config
)
#字符串混淆
StringGarble
()
.
str_grable
(
config
)
#图片混淆
...
...
python/tools/garble/manifest_grable.py
View file @
0bc7ee01
...
...
@@ -17,7 +17,8 @@ class ManifestGarble:
def
__create_activities
(
self
,
path
):
activities
=
[]
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
)):
act_name
=
self
.
__gen_rand_str
()
act_path
=
"
%
s/
%
s.java"
%
(
root
,
act_name
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment