Solved GH Injector Help.

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

concacso

Newbie
Silenced
Full Member
Aug 1, 2017
18
194
0
I created a dll file, and I injected into the program UGKGame.exe
A problem has occurred in the video below.
Please help me can inject dll into this program


https://www.youtube.com/watch?v=VYzYONZBKQA&feature=youtu.be

Source Code DLL:

Main.cpp

C++:
#include <Windows.h>
extern void Start(); //Adding reference To Start
BOOL WINAPI DllMain(HMODULE hModule, DWORD dwReason, LPVOID lpvReserved) //main code
{
	switch (dwReason) { // reason of open dll
	case DLL_PROCESS_ATTACH: // inject
		DisableThreadLibraryCalls(hModule);
		CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Start, 0, 0, 0); // Start Start() thread		
		MessageBoxA(NULL, "Successfull!", "By VN2111", MB_OK); // Message of dll injected
		break;
	case DLL_PROCESS_DETACH:
		break;
	case DLL_THREAD_ATTACH:
		break;
	case DLL_THREAD_DETACH:
		break;
	}
	return TRUE;
}
RagexHawk.cpp

C++:
#include <Windows.h>
//Pointers
// [ES]noDelay
#define Address 0x07BC4F04
#define Offsets1 0x318

//if You Got 5 offsets Just Put Like This

//Function
void NoDelay()
{
	if (GetAsyncKeyState(VK_F5) & 1){//on
		*(DWORD*)(*(DWORD*)Address + Offsets1) = 65553; //In that line, i set 0 to pointer(base + offset)
		Sleep(1);
	}
	if (GetAsyncKeyState(VK_F2) & 1){//on
		*(DWORD*)(*(DWORD*)Address + Offsets1) = 72083; //In that line, i set 0 to pointer(base + offset)
		Sleep(1);//if you got 5 pointer follow like this
	}
}
//General Thread void
void Start()
{
	while (true)//loop
	{
		NoDelay();//Do function no delay
		
	};
}
 

Rake

Cesspool Admin
Administrator
Jan 21, 2014
12,074
78,998
2,371
i'm running as admin

This Game use antihack UGK-GameShield
Information of the antihack:
+Anti-Debugger.
+Hide-Process main.
+Anti Open Process
+Anti Open Window Name.
+Anti Kill-Threads

Is there any way to bybass this antihack? Please help me.
Dude wtf you didn't say anything about anticheat. This is of course why you can't inject. Yes you can bypass it, but that depends on your experience level.

Frequently Asked Questions & Known Issues

GH Injector is detected by antivirus as malware, but it is not malware. It's 100% clean and safe to use. These are called false positives. It uses functions commonly used by malware and it uses a AutoIt GUI, antiviruses using heuristics will classify this as malware, but it is not.

DO NOT USE ADVANCED SETTINGS IF YOU ARE A NEWB - YOU WILL ONLY SCREW IT UP

If you have problem with opening the injector:

  1. Check antivirus logs
  2. Turn off your antivirus
  3. Turn off Safe Browsing & other features in your browser
  4. Create a folder for the injector and other hacking tools
  5. Add this folder as an exception in your antivirus
  6. Antivirus often have multiple modules, add an exception in all of them
  7. Download it again
If the injector has an error, click the "Reset settings" button and try again. If that doesn't work, delete the "GH Injector Config.ini" file an re-open it.

You cannot eject a DLL with FreeLibraryAndExitThread() if you used special options such as ManualMap and others

If the GUI disappears and you can't find it, delete the "GH Injector Config.ini" or reset MAINGUIX & MAINGUIY to 0 in the ini file and re-open it.

GH DLL Injector Error Codes
If injection fails it gives you 2 error codes and it may also log the errors. Read the log file. To debug the problem all you need to do is read the error numbers, they are posted below.

If you can't solve the injection problem with this guide, it is possible that your DLL is not compatible with GH Injector. Our injector has a problem with 0.5% of DLLs, should be fixed in the next release hopefully. In the case, use Download - Extreme Injector v3.6.1 Download

Injection Error
C++:
#define INJ_ERR_INVALID_PROC_HANDLE        0x00000001    //GetHandleInformation        :    win32 error
#define INJ_ERR_FILE_DOESNT_EXIST        0x00000002    //GetFileAttributesW        :    win32 error
#define INJ_ERR_OUT_OF_MEMORY_EXT        0x00000003    //VirtualAllocEx            :    win32 error
#define INJ_ERR_OUT_OF_MEMORY_INT        0x00000004    //VirtualAlloc                :    win32 error
#define INJ_ERR_IMAGE_CANT_RELOC        0x00000005    //internal error            :    base relocation directory empty
#define INJ_ERR_LDRLOADDLL_MISSING        0x00000006    //GetProcAddressEx            :    can't find pointer to LdrLoadDll
#define INJ_ERR_REMOTEFUNC_MISSING        0x00000007    //LoadFunctionPointer        :    can't find remote function
#define INJ_ERR_CANT_FIND_MOD_PEB        0x00000008    //internal error            :    module not linked to PEB
#define INJ_ERR_WPM_FAIL                0x00000009    //WriteProcessMemory        :    win32 error
#define INJ_ERR_CANT_ACCESS_PEB            0x0000000A    //ReadProcessMemory            :    win32 error
#define INJ_ERR_CANT_ACCESS_PEB_LDR        0x0000000B    //ReadProcessMemory            :    win32 error
#define INJ_ERR_VPE_FAIL                0x0000000C    //VirtualProtectEx            :    win32 error
#define INJ_ERR_CANT_ALLOC_MEM            0x0000000D    //VirtualAllocEx            :    win32 error
#define INJ_ERR_CT32S_FAIL                0x0000000E    //CreateToolhelp32Snapshot    :    win32 error
#define    INJ_ERR_RPM_FAIL                0x0000000F    //ReadProcessMemory            :    win32 error
#define INJ_ERR_INVALID_PID                0x00000010    //internal error            :    process id is 0
#define INJ_ERR_INVALID_FILEPATH        0x00000011    //internal error            :    INJECTIONDATA::szDllPath is nullptr
#define INJ_ERR_CANT_OPEN_PROCESS        0x00000012    //OpenProcess                :    win32 error
#define INJ_ERR_PLATFORM_MISMATCH        0x00000013    //internal error            :    file error (0x20000001 - 0x20000003, check below)
#define INJ_ERR_NO_HANDLES                0x00000014    //internal error            :    no process handle to hijack
#define INJ_ERR_HIJACK_NO_NATIVE_HANDLE    0x00000015    //internal error            :    no compatible process handle to hijack
#define INJ_ERR_HIJACK_INJ_FAILED        0x00000016    //internal error            :    injecting injection module into handle owner process failed, additional errolog(s) created
#define INJ_ERR_HIJACK_CANT_ALLOC        0x00000017    //VirtualAllocEx            :    win32 error
#define INJ_ERR_HIJACK_CANT_WPM            0x00000018    //WriteProcessMemory        :    win32 error
#define INJ_ERR_HIJACK_INJMOD_MISSING    0x00000019    //internal error            :    can't find remote injection module
#define INJ_ERR_HIJACK_INJECTW_MISSING    0x0000001A    //internal error            :    can't find remote injection function
#define INJ_ERR_GET_MODULE_HANDLE_FAIL    0x0000001B    //GetModuleHandleA            :    win32 error
#define INJ_ERR_OUT_OF_MEMORY_NEW        0x0000001C    //operator new                :    internal memory allocation failed
#define INJ_ERR_REMOTE_CODE_FAILED        0x0000001D    //internal error            :    the remote code wasn't able to load the module
Start Routine Errors
C++:
///////////////////
///NtCreateThreadEx
                                                    //Source                    :    error description

#define SR_NTCTE_ERR_NTCTE_MISSING            0x10100001    //GetProcAddress            :    win32 error
#define SR_NTCTE_ERR_CANT_ALLOC_MEM            0x10100002    //VirtualAllocEx            :    win32 error
#define SR_NTCTE_ERR_WPM_FAIL                0x10100003    //WriteProcessMemory        :    win32 error
#define SR_NTCTE_ERR_NTCTE_FAIL                0x10100004    //NtCreateThreadEx            :    NTSTATUS
#define SR_NTCTE_ERR_GET_CONTEXT_FAIL        0x10100005    //(Wow64)GetThreadContext    :    win32 error
#define SR_NTCTE_ERR_SET_CONTEXT_FAIL        0x10100006    //(Wow64)SetThreadContext    :    win32 error
#define SR_NTCTE_ERR_RESUME_FAIL            0x10100007    //ResumeThread                :    win32 error
#define SR_NTCTE_ERR_RPM_FAIL                0x10100008    //ReadProcessMemory            :    win32 error
#define SR_NTCTE_ERR_TIMEOUT                0x10100009    //WaitForSingleObject        :    win32 error
#define SR_NTCTE_ERR_GECT_FAIL                0x1010000A    //GetExitCodeThread            :    win32 error
#define SR_NTCTE_ERR_GET_MODULE_HANDLE_FAIL    0x1010000B    //GetModuleHandle            :    win32 error

///////////////
///HijackThread
                                                //Source                    :    error description

#define SR_HT_ERR_PROC_INFO_FAIL    0x10200001    //internal error            :    can't grab process information
#define SR_HT_ERR_NO_THREADS        0x10200002    //internal error            :    no thread to hijack
#define SR_HT_ERR_OPEN_THREAD_FAIL    0x10200003    //OpenThread                :    win32 error
#define SR_HT_ERR_CANT_ALLOC_MEM    0x10200004    //VirtualAllocEx            :    win32 error
#define SR_HT_ERR_SUSPEND_FAIL        0x10200005    //SuspendThread                :    win32 error
#define SR_HT_ERR_GET_CONTEXT_FAIL    0x10200006    //(Wow64)GetThreadContext    :    win32 error
#define SR_HT_ERR_WPM_FAIL            0x10200007    //WriteProcessMemory        :    win32 error
#define SR_HT_ERR_SET_CONTEXT_FAIL    0x10200008    //(Wow64)SetThreadContext    :    win32 error
#define SR_HT_ERR_RESUME_FAIL        0x10200009    //ResumeThread                :    win32 error
#define SR_HT_ERR_TIMEOUT            0x1020000A    //internal error            :    execution time exceeded SR_REMOTE_TIMEOUT

////////////////////
///SetWindowsHookEx
                                                        //Source                    :    error description

#define SR_SWHEX_ERR_CANT_QUERY_INFO_PATH    0x10300001    //internal error        :    can't resolve own module filepath
#define SR_SWHEX_ERR_CANT_OPEN_INFO_TXT        0x10300002    //internal error        :    can't open swhex info file
#define SR_SWHEX_ERR_VAE_FAIL                0x10300003    //VirtualAllocEx        :    win32 error
#define SR_SWHEX_ERR_CNHEX_MISSING            0x10300004    //GetProcAddressEx        :    can't find pointer to CallNextHookEx
#define SR_SWHEX_ERR_WPM_FAIL                0x10300005    //WriteProcessMemory    :    win32 error
#define SR_SWHEX_ERR_WTSQUERY_FAIL            0x10300006    //WTSQueryUserToken        :    win32 error
#define SR_SWHEX_ERR_DUP_TOKEN_FAIL            0x10300007    //DuplicateTokenEx        :    win32 error
#define SR_SWHEX_ERR_GET_ADMIN_TOKEN_FAIL    0x10300008    //GetTokenInformation    :    win32 error
#define SR_SWHEX_ERR_CANT_CREATE_PROCESS    0x10300009    //CreateProcessAsUserW    :    win32 error
                                                        //CreateProcessW
#define SR_SWHEX_ERR_SWHEX_TIMEOUT            0x1030000A    //WaitForSingleObject    :    win32 error
#define SR_SWHEX_ERR_REMOTE_TIMEOUT            0x1030000B    //internal error        :    execution time exceeded SR_REMOTE_TIMEOUT

///////////////
///QueueUserAPC
                                                        //Source                    :    error description

#define SR_QUAPC_ERR_RTLQAW64_MISSING        0x10400001    //GetProcAddress            :    win32 error
#define SR_QUAPC_ERR_CANT_ALLOC_MEM            0x10400001    //VirtualAllocEx            :    win32 error
#define SR_QUAPC_ERR_WPM_FAIL                0x10400002    //WriteProcessMemory        :    win32 error
#define SR_QUAPC_ERR_TH32_FAIL                0x10400003    //CreateToolhelp32Snapshot    :    win32 error
#define SR_QUAPC_ERR_T32FIRST_FAIL            0x10400004    //Thread32First                :    win32 error
#define SR_QUAPC_ERR_NO_APC_THREAD            0x10400005    //QueueUserAPC                :    win32 error
#define SR_QUAPC_ERR_TIMEOUT                0x10400006    //internal error            :    execution time exceeded SR_REMOTE_TIMEOUT
#define SR_QUAPC_ERR_GET_MODULE_HANDLE_FAIL    0x10100007    //GetModuleHandle            :    win32 error
File Errors
C++:
//File errors:
#define FILE_ERR_SUCCESS            0x00000000

                                                //Source                :    error description
#define FILE_ERR_CANT_OPEN_FILE        0x20000001    //std::ifstream::good    :    openening the file failed
#define FILE_ERR_INVALID_FILE_SIZE    0x20000002    //internal error        :    file isn't a valid PE
#define FILE_ERR_INVALID_FILE        0x20000003    //internal error        :    PE isn't compatible with the injection settings
SWHEX Errors
C++:
//SWHEX - XX.exe errors:
#define SWHEX_ERR_SUCCESS            0x00000000

                                                //Source                :    error description

#define SWHEX_ERR_INVALID_PATH        0x30000001    //StringCchLengthW        :    path exceeds MAX_PATH * 2 chars
#define SWHEX_ERR_CANT_OPEN_FILE    0x30000002    //std::ifstream::good    :    openening the file failed
#define SWHEX_ERR_EMPTY_FILE        0x30000003    //internal error        :    file is empty
#define SWHEX_ERR_INVALID_INFO        0x30000004    //internal error        :    provided info is wrong / invalid
#define SWHEX_ERR_ENUM_WINDOWS_FAIL 0x30000005    //EnumWindows            :    API fail
#define SWHEX_ERR_NO_WINDOWS        0x30000006    //internal error        :    no compatible window found
 
Last edited:

Rake

Cesspool Admin
Administrator
Jan 21, 2014
12,074
78,998
2,371
Attach the visual studio debugger and put a breakpoints on your start function and on the DLL Attach then set these settings:

Hit debug and then inject. Report back on any errors. If no errors, put GetLastError() in the watch window and tell us what error codes it returns and what line it is given on
 

concacso

Newbie
Silenced
Full Member
Aug 1, 2017
18
194
0
Rake;50894 said:
Attach the visual studio debugger and put a breakpoints on your start function and on the DLL Attach then set these settings:

Hit debug and then inject. Report back on any errors. If no errors, put GetLastError() in the watch window and tell us what error codes it returns and what line it is given on
Tks For your reply. I can't attach to process.
This is problem: http://sv1.upsieutoc.com/2017/08/17/Untitled22f019.png
Please help me!
 

Rake

Cesspool Admin
Administrator
Jan 21, 2014
12,074
78,998
2,371
Does your game have anticheat? Are you running as admin?
 

concacso

Newbie
Silenced
Full Member
Aug 1, 2017
18
194
0
Rake;50902 said:
Does your game have anticheat? Are you running as admin?
i'm running as admin

This Game use antihack UGK-GameShield
Information of the antihack:
+Anti-Debugger.
+Hide-Process main.
+Anti Open Process
+Anti Open Window Name.
+Anti Kill-Threads

Is there any way to bybass this antihack? Please help me.
 

concacso

Newbie
Silenced
Full Member
Aug 1, 2017
18
194
0
Rake;50904 said:
Dude wtf didn't you say anything about anticheat. This is of course why you can't inject. Yes you can bypass it, but that depends on your experience level
I don't know where to start to bypass it.
Please Give me some suggestions.
 

concacso

Newbie
Silenced
Full Member
Aug 1, 2017
18
194
0
How exactly are we supposed to know?
Maybe you should ask where you got it from?
This tool has been made since 2010 and i can't find any infomation about this tool.
When I run this tool, a dll file appears in the process that I want to hack. (zMu.dll in my video)
I use GHinjector to inject MyDLL, but the antihack crash GHInjector.
 

Rake

Cesspool Admin
Administrator
Jan 21, 2014
12,074
78,998
2,371
This tool has been made since 2010 and i can't find any infomation about this tool.
When I run this tool, a dll file appears in the process that I want to hack. (zMu.dll in my video)
I use GHinjector to inject MyDLL, but the antihack crash GHInjector.
The Evil/zMu.dll bypasses the anti cheat. If you want to do the same you will need to be a good reverse engineer, you have lots of studying to do. Stop what you're doing and focusing on learning instead. focus on learning anti-debug methods. Here is some links
http://pferrie.host22.com/papers/antidebug.pdf
https://www.symantec.com/connect/articles/windows-anti-debug-reference
 

concacso

Newbie
Silenced
Full Member
Aug 1, 2017
18
194
0

Rake

Cesspool Admin
Administrator
Jan 21, 2014
12,074
78,998
2,371
This shit looks like an advanced Taskmanager lol
If you haven't played with SysInternals Process Explorer you should check it out it's awesome. Also Autoruns and ProcessMonitor they are great, can't live without them
 
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Similar threads

Community Mods