1313#define ROOT_KEY " OM4kKoPVGFG2tnVFcs1PJ1qp6HtVymjV0CoTgFDmMdSDALve"
1414
1515std::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() {
173173int main (int argc, char * argv[]) {
174174 printf (
175175 " ======================================================\n "
176- " 本工具名称: Linux ARM64 完美隐藏ROOT演示\n "
176+ " 本工具名称: Linux ARM64 完美隐藏ROOT演示\n\n "
177177 " 本工具功能列表:\n "
178- " \t 1.显示自身权限信息\n "
179- " \t 2.获取ROOT权限\n "
180- " \t 3.执行ROOT命令\n "
181- " \t 4.执行原生内核命令\n "
182- " \t 5.安装部署隐藏版su\n "
183- " \t 6.注入su到指定进程\n "
184- " \t 7.完全卸载清理su\n "
185- " \t 新一代SKRoot,跟面具完全不同思路,摆脱面具被检测的弱点,完美隐藏root功能,兼容安卓APP直接JNI稳定调用。\n "
178+
179+ " 1. 显示自身权限信息\n "
180+ " \t Usage: testRoot id\n\n "
181+
182+ " 2. 获取ROOT权限\n "
183+ " \t Usage: testRoot get\n\n "
184+
185+ " 3. 执行ROOT命令\n "
186+ " \t Usage: testRoot cmd <command>\n\n "
187+
188+ " 4. 执行原生内核命令\n "
189+ " \t Usage: testRoot init <command>\n\n "
190+
191+ " 5. 安装部署su\n "
192+ " \t Usage: testRoot su\n\n "
193+
194+ " 6. 注入su到指定进程\n "
195+ " \t Usage: testRoot process <process-name>\n\n "
196+
197+ " 7. 完全卸载清理su\n "
198+ " \t Usage: 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