Skip to content

trevorsaudi/Process-Injection-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Process-Injection on Windows with C/C++

  • This repository contains C/C++ programs that demonstrate examples of process injection techniques on a Windows system.

Overview

  • The program uses the Windows API to inject a payload into a running process. The payload and the target process are hardcoded into the program for demonstration purposes.

  • The payload is generated using msfvenom, intended to display a message box with the text "Hello hackers".

  • The target process is notepad.exe, but this can be modified to any process that the user has permissions to manipulate.

  • Standard classic process injection featuring common API calls like VirtualAllocEx, WriteProcessMemory, CreateRemoteThread.
  • . In this method, we abuse the QueueUserAPC WINAPI to queue our shellcode into running processes. This injection eliminates the need for using CreateRemoteThread to create a thread to run the shellcode.
  • In this example we encrypt the payload using TinyAES, a small portable AES256 encryption wrapper to implement aes encryption.

About

Various Process Injection Implementation with cpp

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published