Skip to content

Commit fe71935

Browse files
unkn0wNameunkn0wName
authored andcommitted
fix: 格式化说明
1 parent e6be9cc commit fe71935

File tree

1 file changed

+29
-11
lines changed

1 file changed

+29
-11
lines changed

testRoot/testRoot.cpp

Lines changed: 29 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#define ROOT_KEY "OM4kKoPVGFG2tnVFcs1PJ1qp6HtVymjV0CoTgFDmMdSDALve"
1414

1515
std::string get_executable_directory() {
16-
char processdir[4096] = { 0 }; // Consider using PATH_MAX from limits.h
16+
char processdir[4096] = {0}; // Consider using PATH_MAX from limits.h
1717
ssize_t path_len = readlink("/proc/self/exe", processdir, sizeof(processdir));
1818
if(path_len > 0) {
1919
char* path_end = strrchr(processdir, '/');
@@ -173,18 +173,36 @@ void test_clean_su_env() {
173173
int main(int argc, char* argv[]) {
174174
printf(
175175
"======================================================\n"
176-
"本工具名称: Linux ARM64 完美隐藏ROOT演示\n"
176+
"本工具名称: Linux ARM64 完美隐藏ROOT演示\n\n"
177177
"本工具功能列表:\n"
178-
"\t1.显示自身权限信息\n"
179-
"\t2.获取ROOT权限\n"
180-
"\t3.执行ROOT命令\n"
181-
"\t4.执行原生内核命令\n"
182-
"\t5.安装部署隐藏版su\n"
183-
"\t6.注入su到指定进程\n"
184-
"\t7.完全卸载清理su\n"
185-
"\t新一代SKRoot,跟面具完全不同思路,摆脱面具被检测的弱点,完美隐藏root功能,兼容安卓APP直接JNI稳定调用。\n"
178+
179+
"1. 显示自身权限信息\n"
180+
"\tUsage: testRoot id\n\n"
181+
182+
"2. 获取ROOT权限\n"
183+
"\tUsage: testRoot get\n\n"
184+
185+
"3. 执行ROOT命令\n"
186+
"\tUsage: testRoot cmd <command>\n\n"
187+
188+
"4. 执行原生内核命令\n"
189+
"\tUsage: testRoot init <command>\n\n"
190+
191+
"5. 安装部署su\n"
192+
"\tUsage: testRoot su\n\n"
193+
194+
"6. 注入su到指定进程\n"
195+
"\tUsage: testRoot process <process-name>\n\n"
196+
197+
"7. 完全卸载清理su\n"
198+
"\tUsage: testRoot cleansu\n\n"
199+
200+
"本工具特点:\n"
201+
"新一代SKRoot,跟面具完全不同思路,摆脱面具被检测的弱点,完美隐藏root功能,兼容安卓APP直接JNI稳定调用。\n"
186202
"======================================================\n"
203+
"如需帮助,请使用对应的命令,或者查看上面的菜单。\n"
187204
);
205+
188206
++argv;
189207
--argc;
190208
if (argc == 0 || strcmp(argv[0], "id") == 0) { //1.显示自身权限信息
@@ -195,7 +213,7 @@ int main(int argc, char* argv[]) {
195213
test_run_root_cmd(argc - 1, argv + 1);
196214
} else if (argc >= 2 && strcmp(argv[0], "init") == 0) { //4.执行原生内核命令
197215
test_run_init64_cmd(argc - 1, argv + 1);
198-
} else if (strcmp(argv[0], "su") == 0) { //5.安装部署隐藏版su
216+
} else if (strcmp(argv[0], "su") == 0) { //5.安装部署su
199217
test_install_su_env();
200218
} else if (argc > 1 && strcmp(argv[0], "process") == 0) { //6.注入su到指定进程
201219
test_su_env_inject(argv[1]);

0 commit comments

Comments
 (0)