diff --git a/build/src/CMakeFiles/hook_aurora.dir/df_main.cpp.o b/build/src/CMakeFiles/hook_aurora.dir/df_main.cpp.o index 4666d1b..d8d6875 100644 Binary files a/build/src/CMakeFiles/hook_aurora.dir/df_main.cpp.o and b/build/src/CMakeFiles/hook_aurora.dir/df_main.cpp.o differ diff --git a/build/src/CMakeFiles/hook_aurora.dir/l_squirrel.cpp.o b/build/src/CMakeFiles/hook_aurora.dir/l_squirrel.cpp.o index 3563d98..e659c91 100644 Binary files a/build/src/CMakeFiles/hook_aurora.dir/l_squirrel.cpp.o and b/build/src/CMakeFiles/hook_aurora.dir/l_squirrel.cpp.o differ diff --git a/src/df_main.cpp b/src/df_main.cpp index 48f68aa..d4ea2ec 100644 --- a/src/df_main.cpp +++ b/src/df_main.cpp @@ -584,12 +584,6 @@ int _Inter_LoadGeolocation_dispatch_sig(void *pThis, void *pUser, char *a3) // ReqScript(); // 初始化松鼠 InitSquirrel(); - void *handle = dlopen("/home/neople/game/frida.so", RTLD_LAZY); - if (handle) - { - std::cerr << "已加载库: Frida" << '\n'; - } - int Ret = Inter_LoadGeolocation_dispatch_sig(pThis, pUser, a3); return Ret; @@ -598,21 +592,18 @@ int _Inter_LoadGeolocation_dispatch_sig(void *pThis, void *pUser, char *a3) int _ReqDBSendNewSystemMultiMail(char *src, int a2, unsigned int a3, int a4, int a5, char *a6, int a7, int a8, int a9, char a10) { int Ret = ReqDBSendNewSystemMultiMail(src, a2, a3, a4, a5, a6, a7, a8, a9, a10); - std::cout << 111 << std::endl; return Ret; } int _AddItem(void *CUser, int a2, int a3, int a4, int *a5, int a6) { int Ret = AddItem(CUser, a2, a3, a4, a5, a6); - std::cout << 111 << std::endl; return Ret; } int _InterSelectMobileAuthReward(void *InterSelect, void *CUser, char *a3) { int Ret = InterSelectMobileAuthReward(InterSelect, CUser, a3); - std::cout << 111 << std::endl; return Ret; } @@ -902,6 +893,12 @@ void Lenheart() // CMem::WriteUChar(MAIN_OFFSET(0x622659), nMaxGrade); // CMem::WriteUChar(MAIN_OFFSET(0x622941), nMaxGrade); // CMem::WriteUChar(MAIN_OFFSET(0x622941), nMaxGrade); + + void *handle = dlopen("/home/neople/game/frida.so", RTLD_LAZY); + if (handle) + { + std::cerr << "已加载库: Frida" << '\n'; + } } } diff --git a/src/l_squirrel.cpp b/src/l_squirrel.cpp index d33f394..7213996 100644 --- a/src/l_squirrel.cpp +++ b/src/l_squirrel.cpp @@ -202,9 +202,6 @@ void InitSquirrel() setupLogger(); sq_setprintfunc(v, printfunc, errorfunc); // sets the print function - // 输出版本信息 - // scfprintf(stdout, _SC("%s %s (%d bits)\n"), SQUIRREL_VERSION, SQUIRREL_COPYRIGHT, (int)sizeof(SQInteger) * 8); - // 注册全局NutApi GlobaRegisterSquirrel(v); @@ -221,14 +218,15 @@ void InitSquirrel() if ((access("/dp_s/lib/db.ini", F_OK) != -1)) { ReloadingScript(v, "/dp_s/Dps_A/"); - ReloadingScript(v, "/dp_s/Dps_B/"); - ReloadingScript(v, "/dp_s/Dps_C/"); + // ReloadingScript(v, "/dp_s/Dps_B/"); + // ReloadingScript(v, "/dp_s/Dps_C/"); } else { ReqSquirrelScript(v); } + /* // 执行虚拟机Main函数 SQInteger top = sq_gettop(v); // saves the stack size before the call sq_pushroottable(v); // pushes the global table @@ -240,9 +238,12 @@ void InitSquirrel() } sq_settop(v, top); // restores the original stack size - sq_pushroottable(v); - sq_pushstring(v, "sq_ReloadScript", -1); - sq_newclosure(v, SqReloadScript, 0); // create a new function - sq_newslot(v, -3, SQFalse); - sq_pop(v, 1); // pops the root table + */ + /* + sq_pushroottable(v); + sq_pushstring(v, "sq_ReloadScript", -1); + sq_newclosure(v, SqReloadScript, 0); // create a new function + sq_newslot(v, -3, SQFalse); + sq_pop(v, 1); // pops the root table + */ }