Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidXanatos committed Jun 6, 2020
1 parent 6a5a861 commit 814030c
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [1.0.5] - 2020-06-06

### Fixed
- Greatly Improved load speeds through batch enabling of hooks.
- fix memory corruption issue


## [1.0.4] - 2020-05-31

### Added
Expand Down
6 changes: 3 additions & 3 deletions LogApiDll/dll.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
<EntryPointSymbol>DllMain</EntryPointSymbol>
<ModuleDefinitionFile>exports.def</ModuleDefinitionFile>
<AdditionalDependencies>libcntpr.lib;ntdllp.lib;wbemuuid.lib;..\libMinHook\build\VC14\lib\Debug\libMinHook.x86.lib;%(AdditionalDependencies)</AdditionalDependencies>
Expand Down Expand Up @@ -245,7 +245,7 @@
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
<EntryPointSymbol>DllMain</EntryPointSymbol>
<ModuleDefinitionFile>exports.def</ModuleDefinitionFile>
<AdditionalDependencies>libcntpr.lib;ntdllp.lib;wbemuuid.lib;..\libMinHook\build\VC14\lib\Debug\libMinHook.x86.lib;%(AdditionalDependencies)</AdditionalDependencies>
Expand Down Expand Up @@ -341,7 +341,7 @@
<GenerateDebugInformation>false</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
<EntryPointSymbol>DllMain</EntryPointSymbol>
<ModuleDefinitionFile>exports.def</ModuleDefinitionFile>
<AdditionalDependencies>libcntpr.lib;ntdllp.lib;wbemuuid.lib;..\libMinHook\build\VC14\lib\Release\libMinHook.x86.lib;%(AdditionalDependencies)</AdditionalDependencies>
Expand Down
2 changes: 1 addition & 1 deletion LogApiDll/protect.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ BOOL IsProtectedProcess(
bResult = TRUE;
} else {
RtlSecureZeroMemory(tBuff, sizeof(tBuff));
Status = QueryProcessNameByProcessHandle(hProcess, tBuff, MAX_PATH);
Status = QueryProcessNameByProcessHandle(hProcess, tBuff, MAX_PATH * 2);
if (NT_SUCCESS(Status)) {
ExtractFileNameW_S(tBuff, tBuff, MAX_PATH);
if ( IsSandboxieProcessW(tBuff) ) {
Expand Down
Binary file modified LogApiDll/res.rc
Binary file not shown.
6 changes: 3 additions & 3 deletions LogApiDll/subroutines.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ Return Value:
if (NT_SUCCESS(Status)) {
DynamicString = (PUNICODE_STRING)ProcessImageBuf;
if ( (DynamicString->Buffer != NULL) && (DynamicString->Length > 0) ) {
_strncpyW(Buffer, BufferSize, DynamicString->Buffer, BufferSize);
_strncpyW(Buffer, BufferSize / sizeof(wchar_t), DynamicString->Buffer, BufferSize / sizeof(wchar_t));
} else {
//returned string empty
Status = STATUS_UNSUCCESSFUL;
Expand Down Expand Up @@ -360,7 +360,7 @@ Return Value:
if ( NT_SUCCESS(Status) ) {
DynamicString = (PUNICODE_STRING)ProcessImageBuf;
if (( DynamicString->Buffer != NULL ) && (DynamicString->Length > 0) ) {
_strncpyW(Buffer, BufferSize, DynamicString->Buffer, BufferSize);
_strncpyW(Buffer, BufferSize / sizeof(wchar_t), DynamicString->Buffer, BufferSize / sizeof(wchar_t));
} else {
Status = STATUS_UNSUCCESSFUL;
}
Expand Down Expand Up @@ -656,7 +656,7 @@ BOOL QueryKeyName(
Status = NtQueryObject(hKey, ObjectNameInformation, pObjName, ReturnLength, NULL);
if (NT_SUCCESS(Status)) {

if ( (pObjName->Name.Buffer != NULL) && (pObjName->Name.Length > 0) ) {
if ( (pObjName->Name.Buffer != NULL) && (pObjName->Name.Length > 0) ) {

bResult = TRUE;

Expand Down

0 comments on commit 814030c

Please sign in to comment.