mirror of
https://github.com/HIllya51/LunaHook.git
synced 2024-12-25 12:44:13 +08:00
fix
Update V8.cpp
This commit is contained in:
parent
3563d8980a
commit
ce17621c42
@ -25,7 +25,7 @@ bool InsertV8Hook(HMODULE module)
|
|||||||
{
|
{
|
||||||
*data=(*(uintptr_t*)(stack->rcx))+23;
|
*data=(*(uintptr_t*)(stack->rcx))+23;
|
||||||
int len = *(int*)(*data - 4);
|
int len = *(int*)(*data - 4);
|
||||||
if(len!=wcslen((wchar_t*)*data))return;
|
if(wcslen((wchar_t*)*data)*2<len)return;
|
||||||
*count=len*2;
|
*count=len*2;
|
||||||
};
|
};
|
||||||
succ|=NewHook(hp, "JavaScript");
|
succ|=NewHook(hp, "JavaScript");
|
||||||
@ -39,7 +39,7 @@ bool InsertV8Hook(HMODULE module)
|
|||||||
{
|
{
|
||||||
*data=(stack->rcx)+11;
|
*data=(stack->rcx)+11;
|
||||||
int len = *(int*)(*data - 4);
|
int len = *(int*)(*data - 4);
|
||||||
if(len!=wcslen((wchar_t*)*data))return;
|
if(wcslen((wchar_t*)*data)*2<len)return;
|
||||||
*count=len*2;
|
*count=len*2;
|
||||||
};
|
};
|
||||||
succ|=NewHook(hp, "JavaScript");
|
succ|=NewHook(hp, "JavaScript");
|
||||||
|
@ -32,7 +32,7 @@ std::unordered_map<std::wstring,std::vector<int>> getprocesslist()
|
|||||||
|
|
||||||
auto buffs=std::wstring(buff);
|
auto buffs=std::wstring(buff);
|
||||||
auto str=stolower(buffs);
|
auto str=stolower(buffs);
|
||||||
if(str.find(L"\\windows\\")!=str.npos || str.find(L"\\microsoft")!=str.npos|| str.find(L"\\windowsapps")!=str.npos)continue;
|
if(str.find(L":\\windows\\")!=str.npos || str.find(L"\\microsoft")!=str.npos|| str.find(L"\\windowsapps")!=str.npos)continue;
|
||||||
|
|
||||||
|
|
||||||
if(exe_pid.find(buffs)==exe_pid.end()){
|
if(exe_pid.find(buffs)==exe_pid.end()){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user