aidnzz / Dll-Injector

Dll injector is a simple to use command line tool which uses CreateRemoteThread and VirtualAllocEx to launch the DLL in the target process.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dll-Injector

A simple dll injector which uses VirtualAllocEx and CreateRemoteThread to launch dll in target process. Dll Injector is a simple to use command line tool which efficiently injects dll's into almost any program:

  ============
  Dll Injector
  ============

  Usage:
    Dllinject.exe [DLL path] [Process name]
    Dllinject.exe [DLL path]

To use the simple Injector class:

#include "injector.h"
#include <iostream> // For input / output and exceptions

int main()
{
  try 
  {
    Injector injector;
    
    injector.attach(processName);
    injector.inject(dllPath);
  }
  catch(const std::runtime_error& e) // To catch any exceptions
  {
    std::cerr << e.what() << '\n';
    return 1;
  }
  
  return 0;
}

About

Dll injector is a simple to use command line tool which uses CreateRemoteThread and VirtualAllocEx to launch the DLL in the target process.


Languages

Language:C++ 98.4%Language:C 1.6%