mirror of https://github.com/x64dbg/TitanEngine
move external includes to stdafx
This commit is contained in:
parent
48c8a7820a
commit
ef8ad17f62
|
|
@ -1,7 +1,7 @@
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
#include "definitions.h"
|
#include "definitions.h"
|
||||||
#include "Global.Engine.Extension.h"
|
#include "Global.Engine.Extension.h"
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
static std::vector<PluginInformation> Plugin;
|
static std::vector<PluginInformation> Plugin;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,7 @@
|
||||||
#include "definitions.h"
|
#include "definitions.h"
|
||||||
#include "Global.Engine.GUI.h"
|
#include "Global.Engine.GUI.h"
|
||||||
#include "Global.Engine.h"
|
#include "Global.Engine.h"
|
||||||
#include <commdlg.h>
|
|
||||||
#include <shellapi.h>
|
|
||||||
|
|
||||||
#define TE_VER_MAJOR 2
|
#define TE_VER_MAJOR 2
|
||||||
#define TE_VER_MIDDLE 1
|
#define TE_VER_MIDDLE 1
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@
|
||||||
#include "definitions.h"
|
#include "definitions.h"
|
||||||
#include "Global.Engine.Importer.h"
|
#include "Global.Engine.Importer.h"
|
||||||
#include "Global.Debugger.h"
|
#include "Global.Debugger.h"
|
||||||
#include <psapi.h>
|
|
||||||
|
|
||||||
ULONG_PTR EngineGetProcAddressRemote(HANDLE hProcess, const wchar_t* szDLLName, const char* szAPIName)
|
ULONG_PTR EngineGetProcAddressRemote(HANDLE hProcess, const wchar_t* szDLLName, const char* szAPIName)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@
|
||||||
#include "Global.Engine.Extension.h"
|
#include "Global.Engine.Extension.h"
|
||||||
#include "Global.Engine.Hash.h"
|
#include "Global.Engine.Hash.h"
|
||||||
#include "Global.Debugger.h"
|
#include "Global.Debugger.h"
|
||||||
#include <psapi.h>
|
|
||||||
|
|
||||||
bool engineCheckForwarders = true;
|
bool engineCheckForwarders = true;
|
||||||
bool engineAlowModuleLoading = false;
|
bool engineAlowModuleLoading = false;
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
#include "Global.Garbage.h"
|
#include "Global.Garbage.h"
|
||||||
#include "Global.Handle.h"
|
#include "Global.Handle.h"
|
||||||
#include "Global.Engine.h"
|
#include "Global.Engine.h"
|
||||||
#include <stdlib.h>
|
|
||||||
#include <time.h>
|
|
||||||
|
|
||||||
wchar_t engineSzEngineGarbageFolder[MAX_PATH];
|
wchar_t engineSzEngineGarbageFolder[MAX_PATH];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@
|
||||||
#include "Global.Debugger.h"
|
#include "Global.Debugger.h"
|
||||||
#include "Global.Mapping.h"
|
#include "Global.Mapping.h"
|
||||||
#include "Global.Handle.h"
|
#include "Global.Handle.h"
|
||||||
#include <psapi.h>
|
|
||||||
|
|
||||||
GenericOEPTracerData glbEntryTracerData = {};
|
GenericOEPTracerData glbEntryTracerData = {};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
#include "Global.Handle.h"
|
#include "Global.Handle.h"
|
||||||
#include "Global.Threader.h"
|
#include "Global.Threader.h"
|
||||||
#include "Global.Librarian.h"
|
#include "Global.Librarian.h"
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
__declspec(dllexport) void TITCALL ForceClose()
|
__declspec(dllexport) void TITCALL ForceClose()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,6 @@
|
||||||
#include "Global.Threader.h"
|
#include "Global.Threader.h"
|
||||||
#include "Global.Librarian.h"
|
#include "Global.Librarian.h"
|
||||||
#include "Global.TLS.h"
|
#include "Global.TLS.h"
|
||||||
#include <psapi.h>
|
|
||||||
|
|
||||||
#define UE_MODULEx86 0x2000;
|
#define UE_MODULEx86 0x2000;
|
||||||
#define UE_MODULEx64 0x2000;
|
#define UE_MODULEx64 0x2000;
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@
|
||||||
#include "definitions.h"
|
#include "definitions.h"
|
||||||
#include "Global.Debugger.h"
|
#include "Global.Debugger.h"
|
||||||
#include "Global.Breakpoints.h"
|
#include "Global.Breakpoints.h"
|
||||||
#include <stdlib.h>
|
|
||||||
|
|
||||||
__declspec(dllexport) bool TITCALL MatchPatternEx(HANDLE hProcess, void* MemoryToCheck, int SizeOfMemoryToCheck, void* PatternToMatch, int SizeOfPatternToMatch, PBYTE WildCard)
|
__declspec(dllexport) bool TITCALL MatchPatternEx(HANDLE hProcess, void* MemoryToCheck, int SizeOfMemoryToCheck, void* PatternToMatch, int SizeOfPatternToMatch, PBYTE WildCard)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,6 @@
|
||||||
#include "Global.Handle.h"
|
#include "Global.Handle.h"
|
||||||
#include "Global.Breakpoints.h"
|
#include "Global.Breakpoints.h"
|
||||||
#include "Global.Threader.h"
|
#include "Global.Threader.h"
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
static wchar_t szBackupDebuggedFileName[512];
|
static wchar_t szBackupDebuggedFileName[512];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@
|
||||||
#include "definitions.h"
|
#include "definitions.h"
|
||||||
#include "Global.Engine.h"
|
#include "Global.Engine.h"
|
||||||
#include "Global.Handle.h"
|
#include "Global.Handle.h"
|
||||||
#include <psapi.h>
|
|
||||||
|
|
||||||
//TitanEngine.Dumper.functions:
|
//TitanEngine.Dumper.functions:
|
||||||
__declspec(dllexport) bool TITCALL DumpProcess(HANDLE hProcess, LPVOID ImageBase, char* szDumpFileName, ULONG_PTR EntryPoint)
|
__declspec(dllexport) bool TITCALL DumpProcess(HANDLE hProcess, LPVOID ImageBase, char* szDumpFileName, ULONG_PTR EntryPoint)
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,6 @@
|
||||||
#include "Global.Engine.h"
|
#include "Global.Engine.h"
|
||||||
#include "Global.Handle.h"
|
#include "Global.Handle.h"
|
||||||
#include "Global.Mapping.h"
|
#include "Global.Mapping.h"
|
||||||
#include <vector>
|
|
||||||
#include <psapi.h>
|
|
||||||
|
|
||||||
// Global.Engine.Hooks:
|
// Global.Engine.Hooks:
|
||||||
static std::vector<HOOK_ENTRY> hookEntry;
|
static std::vector<HOOK_ENTRY> hookEntry;
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@
|
||||||
#include "Global.Engine.Importer.h"
|
#include "Global.Engine.Importer.h"
|
||||||
#include "Global.Debugger.h"
|
#include "Global.Debugger.h"
|
||||||
#include "scylla_wrapper.h"
|
#include "scylla_wrapper.h"
|
||||||
#include <psapi.h>
|
|
||||||
|
|
||||||
// TitanEngine.Importer.functions:
|
// TitanEngine.Importer.functions:
|
||||||
__declspec(dllexport) void TITCALL ImporterAddNewDll(char* szDLLName, ULONG_PTR FirstThunk)
|
__declspec(dllexport) void TITCALL ImporterAddNewDll(char* szDLLName, ULONG_PTR FirstThunk)
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@
|
||||||
#include "definitions.h"
|
#include "definitions.h"
|
||||||
#include "Global.Handle.h"
|
#include "Global.Handle.h"
|
||||||
#include "Global.Engine.h"
|
#include "Global.Engine.h"
|
||||||
#include <psapi.h>
|
|
||||||
|
|
||||||
// TitanEngine.Process.functions:
|
// TitanEngine.Process.functions:
|
||||||
__declspec(dllexport) long TITCALL GetActiveProcessId(char* szImageName)
|
__declspec(dllexport) long TITCALL GetActiveProcessId(char* szImageName)
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
#include "Global.Engine.h"
|
#include "Global.Engine.h"
|
||||||
#include "Global.Mapping.h"
|
#include "Global.Mapping.h"
|
||||||
#include "Global.Garbage.h"
|
#include "Global.Garbage.h"
|
||||||
#include <imagehlp.h>
|
|
||||||
|
|
||||||
// TitanEngine.Realigner.functions:
|
// TitanEngine.Realigner.functions:
|
||||||
__declspec(dllexport) bool TITCALL FixHeaderCheckSum(char* szFileName)
|
__declspec(dllexport) bool TITCALL FixHeaderCheckSum(char* szFileName)
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
#include "Global.Handle.h"
|
#include "Global.Handle.h"
|
||||||
#include "Global.Engine.h"
|
#include "Global.Engine.h"
|
||||||
#include "Global.Engine.Hash.h"
|
#include "Global.Engine.Hash.h"
|
||||||
#include <wincrypt.h>
|
|
||||||
|
|
||||||
// TitanEngine.StaticUnpacker.functions:
|
// TitanEngine.StaticUnpacker.functions:
|
||||||
__declspec(dllexport) bool TITCALL StaticFileLoad(char* szFileName, DWORD DesiredAccess, bool SimulateLoad, LPHANDLE FileHandle, LPDWORD LoadedSize, LPHANDLE FileMap, PULONG_PTR FileMapVA)
|
__declspec(dllexport) bool TITCALL StaticFileLoad(char* szFileName, DWORD DesiredAccess, bool SimulateLoad, LPHANDLE FileHandle, LPDWORD LoadedSize, LPHANDLE FileMap, PULONG_PTR FileMapVA)
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
#include "Global.Engine.h"
|
#include "Global.Engine.h"
|
||||||
#include "Global.Threader.h"
|
#include "Global.Threader.h"
|
||||||
#include "Global.Debugger.h"
|
#include "Global.Debugger.h"
|
||||||
#include <tlhelp32.h>
|
|
||||||
|
|
||||||
// TitanEngine.Threader.functions:
|
// TitanEngine.Threader.functions:
|
||||||
__declspec(dllexport) bool TITCALL ThreaderImportRunningThreadData(DWORD ProcessId)
|
__declspec(dllexport) bool TITCALL ThreaderImportRunningThreadData(DWORD ProcessId)
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
#include "Global.Mapping.h"
|
#include "Global.Mapping.h"
|
||||||
#include "Global.Engine.Hash.h"
|
#include "Global.Engine.Hash.h"
|
||||||
#include "Global.Injector.h"
|
#include "Global.Injector.h"
|
||||||
#include <psapi.h>
|
|
||||||
|
|
||||||
// Global.Engine.Tracer.functions:
|
// Global.Engine.Tracer.functions:
|
||||||
static long long EngineGlobalTracerHandler1(HANDLE hProcess, ULONG_PTR AddressToTrace, bool HashInstructions, DWORD InputNumberOfInstructions)
|
static long long EngineGlobalTracerHandler1(HANDLE hProcess, ULONG_PTR AddressToTrace, bool HashInstructions, DWORD InputNumberOfInstructions)
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,23 @@
|
||||||
//#define TITANENGINE_BUILD_ASM_LIB
|
//#define TITANENGINE_BUILD_ASM_LIB
|
||||||
|
|
||||||
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
|
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
|
||||||
|
|
||||||
// Windows Header Files:
|
// Windows Header Files:
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
|
#include <imagehlp.h>
|
||||||
|
#include <wincrypt.h>
|
||||||
|
#include <psapi.h>
|
||||||
|
#include <commdlg.h>
|
||||||
|
#include <shellapi.h>
|
||||||
|
#include <tlhelp32.h>
|
||||||
|
|
||||||
|
|
||||||
|
//stl/crt
|
||||||
|
#include <vector>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <time.h>
|
||||||
|
|
||||||
//#include <winternl.h>
|
//#include <winternl.h>
|
||||||
#include "ntdll.h"
|
#include "ntdll.h"
|
||||||
#include "aplib.h"
|
#include "aplib.h"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue