Added .editorconfig
This commit is contained in:
parent
23e4b1203c
commit
3727b600ce
17
.editorconfig
Normal file
17
.editorconfig
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# top-most EditorConfig file
|
||||||
|
root = true
|
||||||
|
|
||||||
|
# Unix-style newlines with a newline ending every file
|
||||||
|
[*]
|
||||||
|
charset = utf-8
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
end_of_line = crlf
|
||||||
|
insert_final_newline = true
|
||||||
|
|
||||||
|
# Tab indentation (no size specified)
|
||||||
|
[Makefile]
|
||||||
|
indent_style = tab
|
||||||
|
|
||||||
|
[*.{c,h,cpp,hpp}]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 4
|
@ -5,6 +5,14 @@ VisualStudioVersion = 17.6.33723.286
|
|||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Domito", "src\Domito.vcxproj", "{949657C4-92F7-48A5-90DD-02B4709AA6BF}"
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Domito", "src\Domito.vcxproj", "{949657C4-92F7-48A5-90DD-02B4709AA6BF}"
|
||||||
EndProject
|
EndProject
|
||||||
|
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{C52A96B3-00CD-40C6-8648-DE141DF2559D}"
|
||||||
|
ProjectSection(SolutionItems) = preProject
|
||||||
|
.editorconfig = .editorconfig
|
||||||
|
.gitignore = .gitignore
|
||||||
|
LICENSE = LICENSE
|
||||||
|
README.md = README.md
|
||||||
|
EndProjectSection
|
||||||
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|ARM64 = Debug|ARM64
|
Debug|ARM64 = Debug|ARM64
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
|
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
|
||||||
<s:Boolean x:Key="/Default/UserDictionary/Words/=Domito/@EntryIndexedValue">True</s:Boolean>
|
<s:Boolean x:Key="/Default/UserDictionary/Words/=Domito/@EntryIndexedValue">True</s:Boolean>
|
||||||
|
<s:Boolean x:Key="/Default/UserDictionary/Words/=PDOMITO/@EntryIndexedValue">True</s:Boolean>
|
||||||
<s:Boolean x:Key="/Default/UserDictionary/Words/=PSYSTEM/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
|
<s:Boolean x:Key="/Default/UserDictionary/Words/=PSYSTEM/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
|
@ -13,14 +13,14 @@ typedef struct _SYSTEM_MODULE_INFORMATION_ENTRY
|
|||||||
USHORT LoadCount;
|
USHORT LoadCount;
|
||||||
USHORT PathLength;
|
USHORT PathLength;
|
||||||
CHAR ImageName[256];
|
CHAR ImageName[256];
|
||||||
} SYSTEM_MODULE_INFORMATION_ENTRY, *PSYSTEM_MODULE_INFORMATION_ENTRY;
|
} SYSTEM_MODULE_INFORMATION_ENTRY, * PSYSTEM_MODULE_INFORMATION_ENTRY;
|
||||||
|
|
||||||
// Structure representing the loaded module information
|
// Structure representing the loaded module information
|
||||||
typedef struct _SYSTEM_MODULE_INFORMATION
|
typedef struct _SYSTEM_MODULE_INFORMATION
|
||||||
{
|
{
|
||||||
ULONG Count;
|
ULONG Count;
|
||||||
SYSTEM_MODULE_INFORMATION_ENTRY Module[1];
|
SYSTEM_MODULE_INFORMATION_ENTRY Module[1];
|
||||||
} SYSTEM_MODULE_INFORMATION, *PSYSTEM_MODULE_INFORMATION;
|
} SYSTEM_MODULE_INFORMATION, * PSYSTEM_MODULE_INFORMATION;
|
||||||
|
|
||||||
// Function prototype for ZwQuerySystemInformation
|
// Function prototype for ZwQuerySystemInformation
|
||||||
NTSYSAPI NTSTATUS NTAPI ZwQuerySystemInformation(
|
NTSYSAPI NTSTATUS NTAPI ZwQuerySystemInformation(
|
||||||
@ -52,14 +52,26 @@ typedef struct _LDR_DATA_TABLE_ENTRY
|
|||||||
PVOID LoadedImports;
|
PVOID LoadedImports;
|
||||||
PVOID EntryPointActivationContext;
|
PVOID EntryPointActivationContext;
|
||||||
PVOID PatchInformation;
|
PVOID PatchInformation;
|
||||||
} LDR_DATA_TABLE_ENTRY, *PLDR_DATA_TABLE_ENTRY;
|
} LDR_DATA_TABLE_ENTRY, * PLDR_DATA_TABLE_ENTRY;
|
||||||
|
|
||||||
typedef PVOID (NTAPI* t_RtlImageDirectoryEntryToData)(
|
typedef PVOID(NTAPI* t_RtlImageDirectoryEntryToData)(
|
||||||
IN PVOID Base,
|
IN PVOID Base,
|
||||||
IN BOOLEAN MappedAsImage,
|
IN BOOLEAN MappedAsImage,
|
||||||
IN USHORT DirectoryEntry,
|
IN USHORT DirectoryEntry,
|
||||||
OUT PULONG Size
|
OUT PULONG Size
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
typedef
|
||||||
|
_IRQL_requires_same_
|
||||||
|
_Function_class_(DOMITO_ALLOCATE_ROUTINE)
|
||||||
|
__drv_allocatesMem(Mem)
|
||||||
|
PVOID
|
||||||
|
NTAPI
|
||||||
|
DOMITO_ALLOCATE_ROUTINE(
|
||||||
|
_In_ SIZE_T ByteSize
|
||||||
);
|
);
|
||||||
|
typedef DOMITO_ALLOCATE_ROUTINE* PDOMITO_ALLOCATE_ROUTINE;
|
||||||
|
|
||||||
|
|
||||||
_Success_(return == STATUS_SUCCESS)
|
_Success_(return == STATUS_SUCCESS)
|
||||||
@ -69,7 +81,7 @@ EXTERN_C
|
|||||||
NTSTATUS
|
NTSTATUS
|
||||||
DomitoFindDriverBaseAddress(
|
DomitoFindDriverBaseAddress(
|
||||||
_In_ STRING ModuleName,
|
_In_ STRING ModuleName,
|
||||||
_Inout_opt_ PVOID* ModuleBase
|
_Inout_opt_ PVOID * ModuleBase
|
||||||
);
|
);
|
||||||
|
|
||||||
_Success_(return == STATUS_SUCCESS)
|
_Success_(return == STATUS_SUCCESS)
|
||||||
@ -80,5 +92,5 @@ NTSTATUS
|
|||||||
DomitoFindExportedFunctionAddress(
|
DomitoFindExportedFunctionAddress(
|
||||||
_In_ PVOID ModuleBase,
|
_In_ PVOID ModuleBase,
|
||||||
_In_ STRING FunctionName,
|
_In_ STRING FunctionName,
|
||||||
_Inout_opt_ PVOID* FunctionAddress
|
_Inout_opt_ PVOID * FunctionAddress
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user