-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Description
#pragma once
#define _CRT_SECURE_NO_WARNINGS
#include <Windows.h>
#include
#include
#include
#include "Blackbone/src/BlackBone/Config.h"
#include "Blackbone/src/BlackBone/Process/Process.h"
#include "Blackbone/src/BlackBone/PE/PEImage.h"
#include "Blackbone/src/BlackBone/Misc/Utils.h"
#pragma comment(lib, "Blackbone/src/BlackBone/BlackBone.lib")
using namespace blackbone;
blackbone::Process _process;
using namespace std;
void kernelInject(DWORD programPid) {
static bool driverCheck = blackbone::Driver().EnsureLoaded();
if (!driverCheck)
{
if (!blackbone::Driver().MmapDll(programPid, L"example.dll", KWipeHeader | KNoTLS)) {
std::cout << " Injection Successful!" << std::endl;
}
else {
std::cout << " Error Occurred During Injection!" << std::endl;
}
}
else {
std::cout << " Driver Not Loaded, Please Try Again." << std::endl;
}
}
int main() {
_process.Attach(L"test.exe");
kernelInject(_process.pid());
}
I get a blue screen when I start injecting helpppp