From af062f47d77ec8bb27986e2ba18219960666f23d Mon Sep 17 00:00:00 2001 From: zeffy Date: Mon, 5 Jun 2017 16:27:35 -0700 Subject: [PATCH] 0.6.0.1 --- install/install_wufuc.bat | 2 +- install/repair_wuaueng.dll.bat | 2 +- install/uninstall_wufuc.bat | 2 +- wufuc/core.c | 2 +- wufuc/resource.h | 15 --------------- wufuc/util.c | 6 ++---- wufuc/version.rc | Bin 2024 -> 1832 bytes 7 files changed, 6 insertions(+), 23 deletions(-) delete mode 100644 wufuc/resource.h diff --git a/install/install_wufuc.bat b/install/install_wufuc.bat index d729d91..daeba6d 100644 --- a/install/install_wufuc.bat +++ b/install/install_wufuc.bat @@ -1,5 +1,5 @@ @echo off -title wufuc installer - v0.6 +title wufuc installer - v0.6.0.1 :: Copyright (C) 2017 zeffy :: This program is free software: you can redistribute it and/or modify diff --git a/install/repair_wuaueng.dll.bat b/install/repair_wuaueng.dll.bat index a7c130b..4fc7525 100644 --- a/install/repair_wuaueng.dll.bat +++ b/install/repair_wuaueng.dll.bat @@ -1,5 +1,5 @@ @echo off -title install wufuc ^(repair wuaueng.dll^) - v0.6 +title install wufuc ^(repair wuaueng.dll^) - v0.6.0.1 :: Copyright (C) 2017 zeffy :: This program is free software: you can redistribute it and/or modify diff --git a/install/uninstall_wufuc.bat b/install/uninstall_wufuc.bat index c50e481..119fd04 100644 --- a/install/uninstall_wufuc.bat +++ b/install/uninstall_wufuc.bat @@ -1,5 +1,5 @@ @echo off -title wufuc uninstaller - v0.6 +title wufuc uninstaller - v0.6.0.1 :: Copyright (C) 2017 zeffy :: This program is free software: you can redistribute it and/or modify diff --git a/wufuc/core.c b/wufuc/core.c index ac614f5..666de2c 100644 --- a/wufuc/core.c +++ b/wufuc/core.c @@ -119,7 +119,7 @@ BOOL PatchWUModule(HMODULE hModule) { return FALSE; } SIZE_T rva = (SIZE_T)modinfo.lpBaseOfDll + offset; - _tdbgprintf(_T("IsDeviceServiceable(void) matched at %IX"), rva); + _tdbgprintf(_T("IsDeviceServiceable(void) matched at %p"), rva); BOOL *lpbNotRunOnce = (BOOL *)(rva + n1 + sizeof(DWORD) + *(DWORD *)(rva + n1)); if (*lpbNotRunOnce) { diff --git a/wufuc/resource.h b/wufuc/resource.h deleted file mode 100644 index 4a2ea7a..0000000 --- a/wufuc/resource.h +++ /dev/null @@ -1,15 +0,0 @@ -//{{NO_DEPENDENCIES}} -// Microsoft Visual C++ generated include file. -// Used by version.rc -// - -// Next default values for new objects -// -#ifdef APSTUDIO_INVOKED -#ifndef APSTUDIO_READONLY_SYMBOLS -#define _APS_NEXT_RESOURCE_VALUE 101 -#define _APS_NEXT_COMMAND_VALUE 40001 -#define _APS_NEXT_CONTROL_VALUE 1000 -#define _APS_NEXT_SYMED_VALUE 101 -#endif -#endif diff --git a/wufuc/util.c b/wufuc/util.c index 4f754d6..1e17082 100644 --- a/wufuc/util.c +++ b/wufuc/util.c @@ -37,10 +37,8 @@ VOID DetourIAT(HMODULE hModule, LPSTR lpFuncName, LPVOID *lpOldAddress, LPVOID l LPVOID *FindIAT(HMODULE hModule, LPSTR lpFunctionName) { SIZE_T hm = (SIZE_T)hModule; - for (PIMAGE_IMPORT_DESCRIPTOR iid = (PIMAGE_IMPORT_DESCRIPTOR)(hm + - ((PIMAGE_NT_HEADERS)(hm + ((PIMAGE_DOS_HEADER)hm)->e_lfanew))->OptionalHeader - .DataDirectory[IMAGE_DIRECTORY_ENTRY_IMPORT] - .VirtualAddress); iid->Name; iid++) { + for (PIMAGE_IMPORT_DESCRIPTOR iid = (PIMAGE_IMPORT_DESCRIPTOR)(hm + ((PIMAGE_NT_HEADERS)(hm + ((PIMAGE_DOS_HEADER)hm)->e_lfanew)) + ->OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_IMPORT].VirtualAddress); iid->Name; iid++) { LPVOID *p; for (SIZE_T i = 0; *(p = i + (LPVOID *)(hm + iid->FirstThunk)); i++) { diff --git a/wufuc/version.rc b/wufuc/version.rc index 92775e76f29de4c8e58d53441800b139de418a26..16de7ec2289aebe4b37b2817684e246740a5ced3 100644 GIT binary patch delta 50 zcmaFCzk+W<(ZmHFjD{0m8ZsJgmS)Umnk>QcfzfbsJge?zGuC5_V5azFHFhB&J_G=_ CCJ(Xz delta 236 zcmZ3%_kw>yk)|?3CPN-WGD8kSDMJcFDuV)p5|N`SH{ zKzR?Kt|B0-989Oe)hjUMf=vRMnhrJz