hfiref0x / UACME

Defeating Windows User Account Control
BSD 2-Clause "Simplified" License
6.37k stars 1.32k forks source link

Compilation Issues #35

Closed moaeddy closed 5 years ago

moaeddy commented 6 years ago

getting MSVCR120D.dll error, and this does not happen before. any idea what am missing from source, kindly advice

hfiref0x commented 6 years ago

You are building either in debug config or don't have msvc runtime installed. You should build in Release.

moaeddy commented 5 years ago

Built using VS 2017 in Release mode using x64. but now i am getting this huge errors

Built using VS 2017 in Release mode using x64. but now i am getting this huge errors

Severity Code Description Project File Line Suppression State Warning C28183 'pImagePath' could be '0', and is a copy of the value found in 'lpServiceDll': this does not adhere to the specification for the function 'ucmSPLUAObjectRegSetValue'. Akagi c:\uacme-master\source-3.0.0\akagi\methods\hybrids.c 2739 Active Warning C6101 Returning uninitialized memory 'pcbBytesWritten'. A successful path through the function does not set the named Out parameter. Annotate this function with Success(return) if returning FALSE indicates failure. Akagi c:\uacme-master\source-3.0.0\akagi\aic.c 186 Active Warning C28159 Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflows roughly every 49 days. Code that does not take that into account can loop indefinitely. GetTickCount64 operates on 64 bit values and does not have that problem Akagi c:\uacme-master\source-3.0.0\akagi\main.c 125 Active Warning C28183 'pServiceDll' could be '0', and is a copy of the value found in 'lpServiceDll': this does not adhere to the specification for the function 'ucmSPLUAObjectRegSetValue'. Akagi c:\uacme-master\source-3.0.0\akagi\methods\hybrids.c 2691 Active Warning C6255 _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. Akagi c:\uacme-master\source-3.0.0\akagi\sup.c 235 Active Warning C6263 Using _alloca in a loop: this can quickly overflow stack. Akagi c:\uacme-master\source-3.0.0\akagi\sup.c 235 Active Warning C6101 Returning uninitialized memory 'PrimaryThread'. A successful path through the function does not set the named Out parameter. Akagi c:\uacme-master\source-3.0.0\akagi\sup.c 764 Active Warning C6255 _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. Akagi c:\uacme-master\source-3.0.0\akagi\sup.c 868 Active Warning C6263 Using _alloca in a loop: this can quickly overflow stack. Akagi c:\uacme-master\source-3.0.0\akagi\sup.c 868 Active Warning C6387 'si.lpAttributeList' could be '0': this does not adhere to the specification for the function 'UpdateProcThreadAttribute'. Akagi c:\uacme-master\source-3.0.0\akagi\sup.c 871 Active Warning C6387 'hTimer' could be '0': this does not adhere to the specification for the function 'NtSetTimer'. Akagi c:\uacme-master\source-3.0.0\akagi\sup.c 2614 Active Warning C6387 'hTimer' could be '0': this does not adhere to the specification for the function 'NtWaitForSingleObject'. See line 2614 for an earlier location where this can occur Akagi c:\uacme-master\source-3.0.0\akagi\sup.c 2624 Active Warning C6387 'hTimer' could be '0': this does not adhere to the specification for the function 'NtClose'. See line 2614 for an earlier location where this can occur Akagi c:\uacme-master\source-3.0.0\akagi\sup.c 2626 Active Warning C28253 Inconsistent annotation for 'supIsConsentApprovedInterface': return/function has 'SAL_success(return!=0)' on this instance. See c:\uacme-master\source-3.0.0\akagi\sup.h(281). Akagi c:\uacme-master\source-3.0.0\akagi\sup.c 2640 Active Warning C6101 Returning uninitialized memory '*IsApproved'. A successful path through the function does not set the named Out parameter. Annotate this function with Success(return) if returning FALSE indicates failure. Akagi c:\uacme-master\source-3.0.0\akagi\sup.c 2640 Active Warning C6255 _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. Akagi c:\uacme-master\source-3.0.0\akagi\sup.c 2674 Active Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file ..\Shared\ldr.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file ..\Shared\ldr.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file aic.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file main.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file makecab.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file compress.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file aic.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file main.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file makecab.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file compress.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file methods\api0cradle.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file methods\b33f.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file methods\bytecode77.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file methods\carberp.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file methods\b33f.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file methods\api0cradle.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file methods\bytecode77.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file methods\deroko.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file methods\comet.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file methods\enigma0x3.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file methods\carberp.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file methods\explife.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file methods\comet.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file methods\enigma0x3.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file methods\deroko.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file methods\gootkit.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file methods\hakril.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file methods\hybrids.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file methods\explife.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file methods\comsup.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file methods\gootkit.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file methods\hakril.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file methods\hybrids.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file methods\methods.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file methods\pitou.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file methods\comsup.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file methods\rinn.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file methods\sandworm.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file methods\methods.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file methods\pitou.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file methods\simda.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file methods\tyranid.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file methods\rinn.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file methods\sandworm.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file methods\wusa.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file sup.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file methods\simda.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file methods\tyranid.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file tests\test.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file methods\wusa.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file sup.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054
Warning C4091 'typedef ': ignored on left of 'tagGPFIDL_FLAGS' when no variable is declared (compiling source file tests\test.c) Akagi C:\Program Files (x86)\Windows Kits\8.1\Include\um\shlobj.h 1054

hfiref0x commented 5 years ago

Goto Project -> Akagi Properties -> Code analysis -> General ->[x] Enable Code analysis on build -> either turn it off or set something else than Microsoft.AllRules.

Also 3.0.0 from release section cannot be built in VS17. Use latest source.

P.S. Please next time open new issue, as it have nothing to do with "Missing DLL".