Update V8.cpp
This commit is contained in:
恍兮惚兮 2024-02-13 18:57:28 +08:00
parent 3563d8980a
commit ce17621c42
2 changed files with 3 additions and 3 deletions

View File

@ -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");

View File

@ -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()){