|
27 | 27 | #define INJ_ERR_INVALID_PID 0x00000006 //internal error : - : provided process id is 0
|
28 | 28 | #define INJ_ERR_CANT_OPEN_PROCESS 0x00000007 //OpenProcess : win32 error : opening the specified target process failed
|
29 | 29 | #define INJ_ERR_INVALID_PROC_HANDLE 0x00000008 //GetHandleInformation : win32 error : the provided handle value is not a valid handle
|
30 |
| -#define INJ_ERR_CANT_GET_EXE_FILENAME 0x00000009 //(K32)GetModuleBaseNameW : win32 error : failed to resolve the file name of the target process |
| 30 | +#define INJ_ERR_CANT_GET_EXE_FILENAME 0x00000009 //QueryFullProcessImageNameW : win32 error : failed to resolve the file name of the target process |
31 | 31 | #define INJ_ERR_PLATFORM_MISMATCH 0x0000000A //internal error : file error : the provided file can't be injected (file error 0x20000001 - 0x20000003)
|
32 | 32 | #define INJ_ERR_CANT_GET_TEMP_DIR 0x0000000B //GetTempPathW : win32 error : unable to retrieve the path to the current users temp directory
|
33 | 33 | #define INJ_ERR_CANT_COPY_FILE 0x0000000C //CopyFileW : win32 error : unable to create a copy of the specified dll file
|
|
65 | 65 | #define INJ_ERR_CANT_GET_PEB 0x0000002C //__readgsqword or __readfsdword : - : reading the linear address of the PEB failed
|
66 | 66 | #define INJ_ERR_INVALID_PEB_DATA 0x0000002D //internal error : - : peb data required to erase/fake header or unlike the module from the peb wasn't findable
|
67 | 67 | #define INJ_ERR_UPDATE_PROTECTION_FAILED 0x0000002E //NtProtectVirtualMemory : NTSTATUS : updating the page protection of the pe header failed
|
68 |
| -#define INJ_ERR_WOW64_NTDLL_MISSING 0x0000002F //internal error : - : can't resolve address of the wow64 ntdll |
| 68 | +#define INJ_ERR_WOW64_NTDLL_MISSING 0x0000002F //internal error : - : can't resolve address of the wow64 ntdll.dll |
69 | 69 | #define INJ_ERR_INVALID_PATH_SEPERATOR 0x00000030 //internal error : - : can't find '\' in a path. '/' as seperators aren't supported
|
70 | 70 | #define INJ_ERR_LDRP_PREPROCESS_FAILED 0x00000031 //LdrpPreprocessDllName : NTSTATUS : preprocessing the dll name for LdrpLoadDll(Internal) failed
|
71 | 71 | #define INJ_ERR_INVALID_POINTER 0x00000032 //internal error : - : an invalid funtion pointer was passed to SetRawPrintCallback
|
72 | 72 | #define INJ_ERR_NOT_IMPLEMENTED 0x00000033 //internal error : - : the module was compiled without DEBUG_INFO being defined, check pch.h for more information if you want to redirect debug output
|
73 | 73 | #define INJ_ERR_KERNEL32_MISSING 0x00000034 //internal error : - : failed to resolve address of kernel32.dll (native)
|
| 74 | +#define INJ_ERR_WOW64_KERNEL32_MISSING 0x00000035 //internal error : - : can't resolve address of the wow64 kernel32.dll |
| 75 | +#define INJ_ERR_OPEN_WOW64_PROCESS 0x00000036 //OpenProcess : win32 error : failed to attach to wow64 process to resolve addresses |
| 76 | +#define INJ_ERR_IMPORT_HANDLER_NOT_DONE 0x00000037 //internal error : - : import handler isn't finished resolving all required functions or is waiting for symbol parser thread(s) to finish |
| 77 | +#define INJ_ERR_WCSRCHR_FAILED 0x00000038 //wcsrchr : - : wcsrchr failed to find a character in a string (usually '\\' in a path) |
| 78 | +#define INJ_ERR_TARGET_EXE_NAME_IS_NULL 0x00000039 //internal error : - : the length of the name of the specified process is 0 |
| 79 | +#define INJ_ERR_LDR_ENTRY_IS_NULL 0x0000003A //internal error : - : LdrpLoadDll(Internal) didn't return a valid LDR_DATA_TABLE_ENTRY pointer |
74 | 80 |
|
75 | 81 |
|
76 | 82 | ///////////////////
|
|
89 | 95 | #define INJ_MM_ERR_IMPORT_FAIL 0x0040000A //internal error : NTSTATUS : one module couldn't be loaded or an import couldn't be resolved, if ntRet is STATUS_HEAP_CORRUPTION, memory allocation failed
|
90 | 96 | #define INJ_MM_ERR_DELAY_IMPORT_FAIL 0x0040000B //internal error : NTSTATUS : one module couldn't be loaded or an import couldn't be resolved, if ntRet is STATUS_HEAP_CORRUPTION, memory allocation failed
|
91 | 97 | #define INJ_MM_ERR_ENABLING_SEH_FAILED 0x0040000C //RtlInsertInvertedFunctionTable : NTSTATUS : enabling exception handling by calling RtlInsertInvertedFunctionTable failed
|
92 |
| -#define INJ_MM_ERR_INVALID_HEAP_HANDLE 0x0040000D //internal error : - : the provided pointer to the LdrpHeap is invalid |
93 |
| -#define INJ_MM_ERR_CANT_GET_PEB 0x0040000E //__readgsqword or __readfsdword : - : reading the linear address of the PEB failed |
94 |
| -#define INJ_MM_ERR_INVALID_PEB_DATA 0x0040000F //internal error : - : peb data required to fake header wasn't findable |
| 98 | +#define INJ_MM_ERR_NOT_IN_LDRP_SEH_TABLE 0x0040000D //internal error : - : RtlInsertInvertedFunctionTable didn't insert data into LdrpInvertedFunctionTable, manual insertion currently not supported |
| 99 | +#define INJ_MM_ERR_INVALID_HEAP_HANDLE 0x0040000E //internal error : - : the provided pointer to the LdrpHeap is invalid |
| 100 | +#define INJ_MM_ERR_CANT_GET_PEB 0x0040000F //__readgsqword or __readfsdword : - : reading the linear address of the PEB failed |
| 101 | +#define INJ_MM_ERR_INVALID_PEB_DATA 0x00400010 //internal error : - : peb data required to fake header wasn't findable |
95 | 102 |
|
96 | 103 |
|
97 | 104 |
|
|
159 | 166 | #define SR_SWHEX_ERR_GET_ADMIN_TOKEN_FAIL 0x10300006 //GetTokenInformation : win32 error : failed to retrieve information from the token handle
|
160 | 167 | #define SR_SWHEX_ERR_CANT_CREATE_PROCESS 0x10300007 //CreateProcessAsUserW : win32 error : failed to launch SM_EXE_FILENAME.exe to execute shellcode
|
161 | 168 | //CreateProcessW : win32 error : failed to launch SM_EXE_FILENAME.exe to execute shellcode
|
162 |
| -#define SR_SWHEX_ERR_SWHEX_TIMEOUT 0x10300008 //WaitForSingleObject : win32 error : |
| 169 | +#define SR_SWHEX_ERR_SWHEX_TIMEOUT 0x10300008 //WaitForSingleObject : win32 error : SM_EXE_FILENAME.exe execution time exceeded |
163 | 170 | #define SR_SWHEX_ERR_REMOTE_TIMEOUT 0x10300009 //internal error : - : execution time exceeded SR_REMOTE_TIMEOUT
|
164 | 171 | #define SR_SWHEX_ERR_RPM_FAIL 0x1030000A //ReadProcessMemory : win32 error : reading the results of the shellcode failed
|
165 | 172 |
|
|
177 | 184 | #define SR_QUAPC_ERR_REMOTE_TIMEOUT 0x10400006 //internal error : - : execution time exceeded SR_REMOTE_TIMEOUT
|
178 | 185 | #define SR_QUAPC_ERR_RPM_FAIL 0x10400007 //WriteProcessMemory : win32 error : reading the results of the shellcode failed
|
179 | 186 |
|
| 187 | +/////////////// |
| 188 | +///KernelCallback |
| 189 | + //Source : advanced error type : error description |
| 190 | + |
| 191 | +#define SR_KC_ERR_CANT_OPEN_INFO_TXT 0x10500001 //internal error : - : can't open kc info file |
| 192 | +#define SR_KC_ERR_PROC_INFO_FAIL 0x10500002 //internal error : - : can't grab process information |
| 193 | +#define SR_KC_ERR_CANT_GET_PEB 0x10500003 //internal error : - : failed to retrieve pointer to the (wow64) peb |
| 194 | +#define SR_KC_ERR_RPM_FAIL 0x10500004 //ReadProcessMemory : win32 error : failed to read memory from the target process |
| 195 | +#define SR_KC_ERR_NO_INITIALIZED 0x10500005 //internal error : - : the kernel callback table is not initialized |
| 196 | +#define SR_KC_ERR_CANT_ALLOC_MEM 0x10500006 //VirtualAllocEx : win32 error : memory allocation for the shellcode/table failed |
| 197 | +#define SR_KC_ERR_WPM_FAIL 0x10500007 //WriteProcessMemory : win32 error : writing the shellcode/table into the target process' memory failed |
| 198 | +#define SR_KC_ERR_WTSQUERY_FAIL 0x10500008 //WTSQueryUserToken : win32 error : failed to query the token for the target process user session |
| 199 | +#define SR_KC_ERR_DUP_TOKEN_FAIL 0x10500009 //DuplicateTokenEx : win32 error : failed to duplicate the token for the target process user session |
| 200 | +#define SR_KC_ERR_GET_ADMIN_TOKEN_FAIL 0x1050000A //GetTokenInformation : win32 error : failed to retrieve information from the token handle |
| 201 | +#define SR_KC_ERR_CANT_CREATE_PROCESS 0x1050000B //CreateProcessAsUserW : win32 error : failed to launch SM_EXE_FILENAME.exe to execute shellcode |
| 202 | + //CreateProcessW : win32 error : failed to launch SM_EXE_FILENAME.exe to execute shellcode |
| 203 | +#define SR_KC_ERR_KC_TIMEOUT 0x1050000C //WaitForSingleObject : win32 error : SM_EXE_FILENAME.exe execution time exceeded |
| 204 | +#define SR_KC_ERR_REMOTE_TIMEOUT 0x1050000D //internal error : - : execution time exceeded SR_REMOTE_TIMEOUT |
| 205 | + |
| 206 | +#define SR_KC_ERR_KC_EXT_ERROR 0x1050000E //SM_EXE_FILENAME.exe : "GH Injector SM - XX.exe" error code, 0x50100001 - 0x50100006 (see below) or win32 exception |
| 207 | + |
180 | 208 |
|
181 | 209 |
|
182 | 210 | /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
210 | 238 | #define SM_ERR_INVALID_ARGV 0x30000002 //main : GH Injector SM - XX.exe was called with invalid arguments
|
211 | 239 |
|
212 | 240 | ////////////////////////////////////////////////////////////
|
213 |
| -///GH Injector SM - XX.exe - SetWindowsHookEx specific erros: |
214 |
| -#define SWHEX_ERR_SUCCESS 0x00000000 |
| 241 | +//GH Injector SM - XX.exe specific errors: |
215 | 242 |
|
| 243 | +///SetWindowHookEx: |
| 244 | +#define SWHEX_ERR_SUCCESS 0x00000000 |
216 | 245 | //Source : error description
|
217 | 246 |
|
218 | 247 | #define SWHEX_ERR_INVALID_PATH 0x30100001 //StringCchLengthW : path exceeds MAX_PATH * 2 chars
|
|
222 | 251 | #define SWHEX_ERR_ENUM_WINDOWS_FAIL 0x30100005 //EnumWindows : API fail
|
223 | 252 | #define SWHEX_ERR_NO_WINDOWS 0x30100006 //internal error : no compatible window found
|
224 | 253 |
|
| 254 | +///KernelCallbackTable |
| 255 | +#define KC_ERR_SUCCESS 0x00000000 |
| 256 | + //Source : error description |
| 257 | + |
| 258 | +#define KC_ERR_INVALID_PATH 0x50100001 //StringCchLengthW : path exceeds MAX_PATH * 2 chars |
| 259 | +#define KC_ERR_CANT_OPEN_FILE 0x50100002 //std::ifstream::good : openening the SMXX.txt failed |
| 260 | +#define KC_ERR_EMPTY_FILE 0x50100003 //internal error : SMXX.txt is empty |
| 261 | +#define KC_ERR_INVALID_INFO 0x50100004 //internal error : provided info is wrong / invalid |
| 262 | +#define KC_ERR_ENUM_WINDOWS_FAIL 0x50100005 //EnumWindows : API fail |
| 263 | +#define KC_ERR_NO_WINDOWS 0x50100006 //internal error : no compatible window found |
| 264 | + |
225 | 265 |
|
226 | 266 |
|
227 | 267 | /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
0 commit comments