Perfect look

This commit is contained in:
binarymaster 2014-12-10 19:28:31 +03:00
parent 939a884f20
commit 6059197036

View File

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