|
楼主 |
发表于 2024-8-1 09:21:26
|
显示全部楼层
frida插件开启全员gm 代码如下:
//所有账号角色开启GM权限
function hook_check_gm()
{
//GM账户
//WongWork::CGMAccounts::isGM
Interceptor.attach(ptr(0x8109346), {
onEnter: function (args) {
},
onLeave: function (retval) {
//强制返回true
retval.replace(1);
}
});
//GM角色
//CUser::isGMUser
Interceptor.attach(ptr(0x814589C), {
onEnter: function (args) {
},
onLeave: function (retval) {
//强制返回true
retval.replace(1);
}
});
} |
|