Perfect look
This commit is contained in:
parent
939a884f20
commit
6059197036
@ -568,18 +568,14 @@ void Hook()
|
|||||||
_ServiceMain = (SERVICEMAIN)GetProcAddress(hTermSrv, "ServiceMain");
|
_ServiceMain = (SERVICEMAIN)GetProcAddress(hTermSrv, "ServiceMain");
|
||||||
_SvchostPushServiceGlobals = (SVCHOSTPUSHSERVICEGLOBALS)GetProcAddress(hTermSrv, "SvchostPushServiceGlobals");
|
_SvchostPushServiceGlobals = (SVCHOSTPUSHSERVICEGLOBALS)GetProcAddress(hTermSrv, "SvchostPushServiceGlobals");
|
||||||
|
|
||||||
Log = new char[1024];
|
Log = new char[4096];
|
||||||
wsprintfA(Log, "Base addr: 0x%p\r\n", hTermSrv);
|
wsprintfA(Log,
|
||||||
WriteToLog(Log);
|
"Base addr: 0x%p\r\n"
|
||||||
delete[] Log;
|
"SvcMain: termsrv.dll+0x%p\r\n"
|
||||||
|
"SvcGlobals: termsrv.dll+0x%p\r\n",
|
||||||
Log = new char[1024];
|
hTermSrv,
|
||||||
wsprintfA(Log, "SvcMain: termsrv.dll+0x%p\r\n", (PLATFORM_DWORD)_ServiceMain - (PLATFORM_DWORD)hTermSrv);
|
(PLATFORM_DWORD)_ServiceMain - (PLATFORM_DWORD)hTermSrv,
|
||||||
WriteToLog(Log);
|
(PLATFORM_DWORD)_SvchostPushServiceGlobals - (PLATFORM_DWORD)hTermSrv);
|
||||||
delete[] Log;
|
|
||||||
|
|
||||||
Log = new char[1024];
|
|
||||||
wsprintfA(Log, "SvcGlobals: termsrv.dll+0x%p\r\n", (PLATFORM_DWORD)_SvchostPushServiceGlobals - (PLATFORM_DWORD)hTermSrv);
|
|
||||||
WriteToLog(Log);
|
WriteToLog(Log);
|
||||||
delete[] Log;
|
delete[] Log;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user