GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - 11philip22/code-Injection: Collection of shellcode injection and execution techniques

BranchesTags
Open more actions menu

Latest commit

 

History

19 Commits
19 Commits

Folders and files

NameName
Last commit message
Last commit date
APCQueueInjection
APCQueueInjection
 
 
SectionInjection
SectionInjection
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
Code Injection.sln
Code Injection.sln
 
 
README.md
README.md
 
 

Repository files navigation

Code Injection Techniques

This repository documents and demonstrates different Windows process injection methods. Each technique leverages low-level Windows APIs to run arbitrary shellcode inside a target process.


Section Injection

Method: Uses NtCreateSection, NtMapViewOfSection, and RtlCreateUserThread.
Reference: phasetw0 – Section Code Injection

How It Works

  1. Launch a host process (e.g., notepad.exe) that will execute the shellcode.
  2. Create a memory section with RWX permissions via NtCreateSection.
  3. Map the section into the local process with RW permissions using NtMapViewOfSection.
  4. Map the same section into the remote target process with RX permissions.
  5. Write the shellcode into the local mapped view → this change is reflected in the remote mapped section.
  6. Start execution by creating a remote thread in the target process via RtlCreateUserThread, pointing it to the injected shellcode.

APC Queue Injection

Method: Uses Asynchronous Procedure Calls (APCs) to run code inside an alertable thread of a target process.
Reference: Modexp – APC Injection
Reference: ired.team – APC Queue Injection

How It Works

  1. Identify the PID of a target process (explorer.exe).
  2. Allocate memory inside the target process with RWX permissions.
  3. Write the shellcode into that allocated memory.
  4. Enumerate threads of the target process, then find an alertable thread (by checking its context/state).
  5. Queue an APC pointing to the injected shellcode. When the thread enters an alertable state, the shellcode executes.

Additional Reading

  • NtCreateSection + NtMapViewOfSection Code Injection (ired.team)
  • Process Injection: APC Queue (modexp)

About

Collection of shellcode injection and execution techniques

Topics

ccode-injectionmalware-researchntdllshellcodeshellcode-injectionshellcode-injector

Resources

Readme
Activity

Stars

17 stars

Watchers

1 watching

Forks

7 forks
Report repository

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.