mylifeismyhome / tinjector Goto Github PK
View Code? Open in Web Editor NEWWindows Injector examples in c/pp
License: MIT License
Windows Injector examples in c/pp
License: MIT License
Hello, first of all thank you for your contribution with this project im here to report an issue when you map.
The dll with Manual Map ThreadHijacking inject successfully and no issues if you just call a message box or something like that, hoewer if you create a thread or hook a function on the injected process this one will freeze and crash, to make things clear if you don't do anything more than calling a simple messagebox or AllocConole everything will be fine but you can't do anything more, no createthread and no hooks (no matter what kind of hooks if detours or not)
Here ill leave an example code im doing to test it.
// dllmain.cpp : Defines the entry point for the DLL application.
#include "pch.h"
#include <stdio.h>
void thstuff()//if this get called by createthread will crash the process
{
AllocConsole();
FILE* pFile = nullptr;
freopen_s(&pFile, "CONOUT$", "w", stdout);
printf("testest\r\n");
while (true)
{
printf("loop\r\n");
Sleep(100);
}
}
BOOL APIENTRY DllMain( HMODULE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
CreateThread(nullptr, 0, (LPTHREAD_START_ROUTINE)thstuff, 0, 0, 0);//if we create a thread will crash once called otherwise no crash.
break;
}
return TRUE;
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.