12121
This commit is contained in:
parent
f51ecfd582
commit
bd1ff22b74
Binary file not shown.
Binary file not shown.
|
|
@ -584,12 +584,6 @@ int _Inter_LoadGeolocation_dispatch_sig(void *pThis, void *pUser, char *a3)
|
||||||
// ReqScript();
|
// ReqScript();
|
||||||
// 初始化松鼠
|
// 初始化松鼠
|
||||||
InitSquirrel();
|
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);
|
int Ret = Inter_LoadGeolocation_dispatch_sig(pThis, pUser, a3);
|
||||||
|
|
||||||
return Ret;
|
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 _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);
|
int Ret = ReqDBSendNewSystemMultiMail(src, a2, a3, a4, a5, a6, a7, a8, a9, a10);
|
||||||
std::cout << 111 << std::endl;
|
|
||||||
return Ret;
|
return Ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
int _AddItem(void *CUser, int a2, int a3, int a4, int *a5, int a6)
|
int _AddItem(void *CUser, int a2, int a3, int a4, int *a5, int a6)
|
||||||
{
|
{
|
||||||
int Ret = AddItem(CUser, a2, a3, a4, a5, a6);
|
int Ret = AddItem(CUser, a2, a3, a4, a5, a6);
|
||||||
std::cout << 111 << std::endl;
|
|
||||||
return Ret;
|
return Ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
int _InterSelectMobileAuthReward(void *InterSelect, void *CUser, char *a3)
|
int _InterSelectMobileAuthReward(void *InterSelect, void *CUser, char *a3)
|
||||||
{
|
{
|
||||||
int Ret = InterSelectMobileAuthReward(InterSelect, CUser, a3);
|
int Ret = InterSelectMobileAuthReward(InterSelect, CUser, a3);
|
||||||
std::cout << 111 << std::endl;
|
|
||||||
return Ret;
|
return Ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -902,6 +893,12 @@ void Lenheart()
|
||||||
// CMem::WriteUChar(MAIN_OFFSET(0x622659), nMaxGrade);
|
// CMem::WriteUChar(MAIN_OFFSET(0x622659), nMaxGrade);
|
||||||
// CMem::WriteUChar(MAIN_OFFSET(0x622941), nMaxGrade);
|
// CMem::WriteUChar(MAIN_OFFSET(0x622941), 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';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -202,9 +202,6 @@ void InitSquirrel()
|
||||||
setupLogger();
|
setupLogger();
|
||||||
sq_setprintfunc(v, printfunc, errorfunc); // sets the print function
|
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
|
// 注册全局NutApi
|
||||||
GlobaRegisterSquirrel(v);
|
GlobaRegisterSquirrel(v);
|
||||||
|
|
||||||
|
|
@ -221,14 +218,15 @@ void InitSquirrel()
|
||||||
if ((access("/dp_s/lib/db.ini", F_OK) != -1))
|
if ((access("/dp_s/lib/db.ini", F_OK) != -1))
|
||||||
{
|
{
|
||||||
ReloadingScript(v, "/dp_s/Dps_A/");
|
ReloadingScript(v, "/dp_s/Dps_A/");
|
||||||
ReloadingScript(v, "/dp_s/Dps_B/");
|
// ReloadingScript(v, "/dp_s/Dps_B/");
|
||||||
ReloadingScript(v, "/dp_s/Dps_C/");
|
// ReloadingScript(v, "/dp_s/Dps_C/");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ReqSquirrelScript(v);
|
ReqSquirrelScript(v);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
// 执行虚拟机Main函数
|
// 执行虚拟机Main函数
|
||||||
SQInteger top = sq_gettop(v); // saves the stack size before the call
|
SQInteger top = sq_gettop(v); // saves the stack size before the call
|
||||||
sq_pushroottable(v); // pushes the global table
|
sq_pushroottable(v); // pushes the global table
|
||||||
|
|
@ -240,9 +238,12 @@ void InitSquirrel()
|
||||||
}
|
}
|
||||||
sq_settop(v, top); // restores the original stack size
|
sq_settop(v, top); // restores the original stack size
|
||||||
|
|
||||||
|
*/
|
||||||
|
/*
|
||||||
sq_pushroottable(v);
|
sq_pushroottable(v);
|
||||||
sq_pushstring(v, "sq_ReloadScript", -1);
|
sq_pushstring(v, "sq_ReloadScript", -1);
|
||||||
sq_newclosure(v, SqReloadScript, 0); // create a new function
|
sq_newclosure(v, SqReloadScript, 0); // create a new function
|
||||||
sq_newslot(v, -3, SQFalse);
|
sq_newslot(v, -3, SQFalse);
|
||||||
sq_pop(v, 1); // pops the root table
|
sq_pop(v, 1); // pops the root table
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue