Giter Site home page Giter Site logo

Comments (4)

Broihon avatar Broihon commented on July 30, 2024 1

Post the code.

from gh-injector-library.

MlSAKA-MlKOTO avatar MlSAKA-MlKOTO commented on July 30, 2024

SURE
`
#include "Injection.h"

int main() {

HINSTANCE hInjectionMod = LoadLibrary(GH_INJ_MOD_NAME);

auto InjectA = (f_InjectA)GetProcAddress(hInjectionMod, "InjectA");
auto GetSymbolState = (f_GetSymbolState)GetProcAddress(hInjectionMod, "GetSymbolState");
auto GetImportState = (f_GetSymbolState)GetProcAddress(hInjectionMod, "GetImportState");
auto StartDownload = (f_StartDownload)GetProcAddress(hInjectionMod, "StartDownload");
auto GetDownloadProgressEx = (f_GetDownloadProgressEx)GetProcAddress(hInjectionMod, "GetDownloadProgressEx");

Sleep(500);
StartDownload();

while (GetDownloadProgressEx(PDB_DOWNLOAD_INDEX_NTDLL, true) != 1.0f)
{
	Sleep(10);
}

while (GetSymbolState() != 0)
{
	Sleep(10);
}

while (GetImportState() != 0)
{
	Sleep(10);
}

DWORD TargetProcessId = 22308;//FindProcessId("x86process.exe");
DWORD flags = MM_DEFAULT;

INJECTIONDATAA data =
{
	"",
	TargetProcessId,
	INJECTION_MODE::IM_LdrLoadDll,
	LAUNCH_METHOD::LM_NtCreateThreadEx,
	NULL,
	0,
	NULL,
	NULL,
	true
};

strcpy(data.szDllPath, "C:\\Users\\CHUAN\\source\\repos\\testinject\\testinject\\Warhook.dll");
InjectA(&data);

return 0;

}

`

from gh-injector-library.

MlSAKA-MlKOTO avatar MlSAKA-MlKOTO commented on July 30, 2024

Post the code.

sorry it's my fault. I forget to add the dll/lib sources and the exe program.
btw, now it could inject normally, but it will make the injected program crash, which works well in the GUIED GH Injector.
It shows some fault at last"
Entering wait state
WaitForSingleObject failed: 00000102
Return from StartRoutine
StartRoutine failed: 10100009
Injection finished
"

from gh-injector-library.

Broihon avatar Broihon commented on July 30, 2024

The error codes you provided sadly only indicate that the target process has crashed.
The problem most likely is that you set the timeout value to 0ms.

from gh-injector-library.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.