mirror of
https://github.com/HIllya51/LunaHook.git
synced 2024-11-27 15:54:03 +08:00
will
This commit is contained in:
parent
2fa1f50aed
commit
5e6bc37051
@ -1697,3 +1697,21 @@ bool WillPlus::attach_function() {
|
|||||||
|
|
||||||
return succ;
|
return succ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
bool Willold::attach_function() {
|
||||||
|
//https://vndb.org/v17755
|
||||||
|
//凌辱鬼
|
||||||
|
auto addr=MemDbg::findLongJumpAddress((ULONG)TextOutA,processStartAddress,processStopAddress);
|
||||||
|
if(addr==0)return false;
|
||||||
|
addr=MemDbg::findNearCallAddress(addr,processStartAddress,processStopAddress);
|
||||||
|
if(addr==0)return false;
|
||||||
|
addr=findfuncstart(addr,0x200);
|
||||||
|
if(addr==0)return false;
|
||||||
|
HookParam hp;
|
||||||
|
hp.address=addr;
|
||||||
|
hp.type=USING_CHAR|CODEC_ANSI_BE;
|
||||||
|
hp.offset=get_stack(1);
|
||||||
|
return NewHook(hp,"will");
|
||||||
|
}
|
@ -9,3 +9,23 @@ class WillPlus:public ENGINE{
|
|||||||
};
|
};
|
||||||
bool attach_function();
|
bool attach_function();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class Willold:public ENGINE{
|
||||||
|
public:
|
||||||
|
Willold(){
|
||||||
|
//https://vndb.org/v17755
|
||||||
|
//凌辱鬼
|
||||||
|
check_by=CHECK_BY::CUSTOM;
|
||||||
|
check_by_target=[](){
|
||||||
|
auto _={L"*.BIN",L"DATA\\*.ENV",L"DATA\\*.WBP"};
|
||||||
|
auto checkfile= std::all_of(_.begin(),_.end(),Util::CheckFile);
|
||||||
|
if(checkfile){
|
||||||
|
auto __=R"(Software\WILL\)";
|
||||||
|
checkfile&=!!MemDbg::findBytes(__,strlen(__),processStartAddress,processStopAddress);
|
||||||
|
}
|
||||||
|
return checkfile;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
bool attach_function();
|
||||||
|
};
|
@ -302,7 +302,8 @@ std::vector<ENGINE*> check_engines(){
|
|||||||
new ScrPlayer,
|
new ScrPlayer,
|
||||||
new ElfFunClubFinal,
|
new ElfFunClubFinal,
|
||||||
new Aksys,
|
new Aksys,
|
||||||
new Siglusold
|
new Siglusold,
|
||||||
|
new Willold
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user