# g3tsyst3m/codefromblog architecture

> Architecture diagram of the GitHub repository g3tsyst3m/codefromblog, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/g3tsyst3m/codefromblog
- Repository: https://github.com/g3tsyst3m/codefromblog

## Overview

CodefromBlog is an anthology of independent examples, not a single application. Its projects range from Python command-and-control (C2) prototypes to Windows process, shellcode, loader, and networking demonstrations. There is no repository-wide user-to-result workflow; each example has its own entry point and result. The graph groups related examples by topic and shows only relationships supported by the README or source index. Several projects are represented by their exact enclosing directory because their source was not sampled; no connections are inferred between them.

Main entry points: [`2026-6-26-How to Create a Makeshift C2 with Claude Code as the Operator/listener.py`](https://github.com/g3tsyst3m/codefromblog/blob/main/2026-6-26-How%20to%20Create%20a%20Makeshift%20C2%20with%20Claude%20Code%20as%20the%20Operator/listener.py) (C2 listener), [`2026-1-29-Living off the Process/LOTP_blog/LOTP_blog.cpp`](https://github.com/g3tsyst3m/codefromblog/blob/main/2026-1-29-Living%20off%20the%20Process/LOTP_blog/LOTP_blog.cpp) (Process technique demo), [`2024-12-20-Create your own C2 using Python - Part 3/elevationstation/elevationstation.cpp`](https://github.com/g3tsyst3m/codefromblog/blob/main/2024-12-20-Create%20your%20own%20C2%20using%20Python%20-%20Part%203/elevationstation/elevationstation.cpp) (Elevation station), [`2024-12-20-Create your own C2 using Python - Part 3/migrator/migrator.cpp`](https://github.com/g3tsyst3m/codefromblog/blob/main/2024-12-20-Create%20your%20own%20C2%20using%20Python%20-%20Part%203/migrator/migrator.cpp) (Process migrator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_c2["C2 examples"]
  node_pyc2p1["Python C2 part 1"]
  node_pyc2p2["Python C2 part 2"]
  node_pyc2p3["Python C2 part 3"]
  node_quicc2["QUIC C2"]
  node_listener["C2 listener<br/>[listener.py]"]
  node_broker[("Task broker<br/>[broker_db.py]")]
  node_agentconfig["Agent configuration<br/>[agent_config.py]"]
  node_agentserver["Remote agent server"]
end

subgraph group_windows["Windows techniques"]
  node_elevation["Elevation station"]
  node_elevdefs["Elevation declarations<br/>[def.h]"]
  node_migrator["Process migrator<br/>[migrator.cpp]"]
  node_migratordefs["Migrator declarations<br/>[def.h]"]
  node_lotp["Process technique demo<br/>[LOTP_blog.cpp]"]
  node_debugpriv["Debug privilege helper<br/>[debugprivcheck.cpp]"]
  node_gadget["Gadget finder<br/>[findgadget.cpp]"]
  node_rwx["Memory-region helper"]
  node_funcstomp["Function-stomping BOF<br/>[funcstomp.c]"]
  node_beaconapi["Beacon API declarations<br/>[beacon.h]"]
  node_uac["UAC bypass examples"]
  node_intelbypass["Intel cache bypass"]
end

subgraph group_payloads["Payload demonstrations"]
  node_shellcode["Assembly shellcode series"]
  node_syscallloader["Direct-syscall loader"]
  node_manualntdll["Manual Ntdll loader<br/>[ManualNtdll.cpp]"]
  node_peload["In-memory PE loader<br/>[peinjection.cpp]"]
  node_fragment["Shellcode fragmentation"]
end

subgraph group_utilities["Other examples"]
  node_netcat["Python Netcat"]
  node_stego["JPEG steganography"]
  node_overflow["Buffer overflow series"]
  node_edrencode["EDR encoding demos"]
  node_stompdemo["Module stomping demo<br/>[mstmp2.cpp]"]
  node_dotnetloader[".NET staged loader<br/>[Class1.cs]"]
end

node_listener -->|"uses task store"| node_broker
node_listener -->|"imports config"| node_agentconfig
node_elevation -->|"uses declarations"| node_elevdefs
node_migrator -->|"includes declarations"| node_migratordefs
node_lotp -->|"enables privilege"| node_debugpriv
node_lotp -->|"finds gadgets"| node_gadget
node_funcstomp -->|"uses API declarations"| node_beaconapi
node_syscallloader -->|"loads syscall exports"| node_manualntdll

click node_pyc2p1 "https://github.com/g3tsyst3m/codefromblog/tree/main/2024-11-22-Create%20your%20own%20C2%20using%20Python-%20Part%201.md"
click node_pyc2p2 "https://github.com/g3tsyst3m/codefromblog/tree/main/2024-11-27-Create%20your%20own%20C2%20using%20Python-%20Part%202"
click node_pyc2p3 "https://github.com/g3tsyst3m/codefromblog/tree/main/2024-12-20-Create%20your%20own%20C2%20using%20Python%20-%20Part%203"
click node_quicc2 "https://github.com/g3tsyst3m/codefromblog/tree/main/2026-4-30-Building%20an%20Encrypted%20C2%20Implant%20Using%20QUIC"
click node_listener "https://github.com/g3tsyst3m/codefromblog/blob/main/2026-6-26-How%20to%20Create%20a%20Makeshift%20C2%20with%20Claude%20Code%20as%20the%20Operator/listener.py"
click node_broker "https://github.com/g3tsyst3m/codefromblog/blob/main/2026-6-26-How%20to%20Create%20a%20Makeshift%20C2%20with%20Claude%20Code%20as%20the%20Operator/broker_db.py"
click node_agentconfig "https://github.com/g3tsyst3m/codefromblog/blob/main/2026-6-26-How%20to%20Create%20a%20Makeshift%20C2%20with%20Claude%20Code%20as%20the%20Operator/agent_config.py"
click node_agentserver "https://github.com/g3tsyst3m/codefromblog/blob/main/2026-6-26-How%20to%20Create%20a%20Makeshift%20C2%20with%20Claude%20Code%20as%20the%20Operator/remote_agent_server.py"
click node_elevation "https://github.com/g3tsyst3m/codefromblog/blob/main/2024-12-20-Create%20your%20own%20C2%20using%20Python%20-%20Part%203/elevationstation/elevationstation.cpp"
click node_elevdefs "https://github.com/g3tsyst3m/codefromblog/blob/main/2024-12-20-Create%20your%20own%20C2%20using%20Python%20-%20Part%203/elevationstation/def.h"
click node_migrator "https://github.com/g3tsyst3m/codefromblog/blob/main/2024-12-20-Create%20your%20own%20C2%20using%20Python%20-%20Part%203/migrator/migrator.cpp"
click node_migratordefs "https://github.com/g3tsyst3m/codefromblog/blob/main/2024-12-20-Create%20your%20own%20C2%20using%20Python%20-%20Part%203/migrator/def.h"
click node_lotp "https://github.com/g3tsyst3m/codefromblog/blob/main/2026-1-29-Living%20off%20the%20Process/LOTP_blog/LOTP_blog.cpp"
click node_debugpriv "https://github.com/g3tsyst3m/codefromblog/blob/main/2026-1-29-Living%20off%20the%20Process/LOTP_blog/debugprivcheck.cpp"
click node_gadget "https://github.com/g3tsyst3m/codefromblog/blob/main/2026-1-29-Living%20off%20the%20Process/LOTP_blog/findgadget.cpp"
click node_rwx "https://github.com/g3tsyst3m/codefromblog/blob/main/2026-1-29-Living%20off%20the%20Process/LOTP_blog/FindRWXMemoryRegions.cpp"
click node_funcstomp "https://github.com/g3tsyst3m/codefromblog/blob/main/2026-10-4-Function%20Stomping%20101%20-%20Adaptix%20C2%20BOFs%20and%20Crystal%20Palace%20PIC%20Shellcode/funcstomp_bof/funcstomp.c"
click node_beaconapi "https://github.com/g3tsyst3m/codefromblog/blob/main/2026-10-4-Function%20Stomping%20101%20-%20Adaptix%20C2%20BOFs%20and%20Crystal%20Palace%20PIC%20Shellcode/funcstomp_bof/_include/beacon.h"
click node_uac "https://github.com/g3tsyst3m/codefromblog/tree/main/2024-10-16-Creative%20UAC%20Bypass%20Methods%20for%20the%20Modern%20Era"
click node_intelbypass "https://github.com/g3tsyst3m/codefromblog/blob/main/4-22-2025-Intel%20Shader%20Cache%20UAC%20Bypass/intel_UAC_bypass.cpp"
click node_shellcode "https://github.com/g3tsyst3m/codefromblog/tree/main/2024-11-1-x64%20Assembly%20%26%20Shellcoding%20101"
click node_syscallloader "https://github.com/g3tsyst3m/codefromblog/blob/main/2025-8-23-Using%20Direct%20Syscalls%20with%20an%20In-Memory%20PIC%20Shellcode%20Loader/syscall_mayhem_6/syscall_mayhem_6.cpp"
click node_manualntdll "https://github.com/g3tsyst3m/codefromblog/blob/main/2025-8-23-Using%20Direct%20Syscalls%20with%20an%20In-Memory%20PIC%20Shellcode%20Loader/syscall_mayhem_6/ManualNtdll.cpp"
click node_peload "https://github.com/g3tsyst3m/codefromblog/blob/main/2025-9-23-Bypassing%20EDR%20using%20an%20In-Memory%20PE%20Loader/peinjection.cpp"
click node_fragment "https://github.com/g3tsyst3m/codefromblog/tree/main/2025-12-23-Evading%20Signature%20Based%20Memory%20Detection%20-%20Shellcode%20Fragmentation%20and%20Staged%20Reassembly"
click node_netcat "https://github.com/g3tsyst3m/codefromblog/tree/main/2023-08-19-Create%20your%20own%20Netcat%20using%20Python"
click node_stego "https://github.com/g3tsyst3m/codefromblog/tree/main/2025-5-16-Steganography%20is%20still%20relevant!"
click node_overflow "https://github.com/g3tsyst3m/codefromblog/tree/main/2025%20-%20Buffer%20Overflow%20Series"
click node_edrencode "https://github.com/g3tsyst3m/codefromblog/tree/main/2023-09-27-Malware%20EDR%20Evasion%20Techniques"
click node_stompdemo "https://github.com/g3tsyst3m/codefromblog/blob/main/2025-10-3-Module%20Stomping%20101%20-%20My%20Favorite%20Stomping%20Grounds/mstmp2.cpp"
click node_dotnetloader "https://github.com/g3tsyst3m/codefromblog/blob/main/2025-8-12-How%20to%20Create%20a%20Staged%20In-Memory%20.NET%20Reflective%20Shellcode%20Loader/Class1.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_pyc2p1,node_pyc2p2,node_pyc2p3,node_quicc2,node_listener,node_broker,node_agentconfig,node_agentserver toneBlue
class node_elevation,node_elevdefs,node_migrator,node_migratordefs,node_lotp,node_debugpriv,node_gadget,node_rwx,node_funcstomp,node_beaconapi,node_uac,node_intelbypass toneAmber
class node_shellcode,node_syscallloader,node_manualntdll,node_peload,node_fragment toneMint
class node_netcat,node_stego,node_overflow,node_edrencode,node_stompdemo,node_dotnetloader toneRose
```

## Components

### C2 examples

- [Python C2 part 1](https://github.com/g3tsyst3m/codefromblog/tree/main/2024-11-22-Create%20your%20own%20C2%20using%20Python-%20Part%201.md): `2024-11-22-Create your own C2 using Python- Part 1.md`
- [Python C2 part 2](https://github.com/g3tsyst3m/codefromblog/tree/main/2024-11-27-Create%20your%20own%20C2%20using%20Python-%20Part%202): `2024-11-27-Create your own C2 using Python- Part 2`
- [Python C2 part 3](https://github.com/g3tsyst3m/codefromblog/tree/main/2024-12-20-Create%20your%20own%20C2%20using%20Python%20-%20Part%203): `2024-12-20-Create your own C2 using Python - Part 3`
- [QUIC C2](https://github.com/g3tsyst3m/codefromblog/tree/main/2026-4-30-Building%20an%20Encrypted%20C2%20Implant%20Using%20QUIC): `2026-4-30-Building an Encrypted C2 Implant Using QUIC`
- [C2 listener](https://github.com/g3tsyst3m/codefromblog/blob/main/2026-6-26-How%20to%20Create%20a%20Makeshift%20C2%20with%20Claude%20Code%20as%20the%20Operator/listener.py): `2026-6-26-How to Create a Makeshift C2 with Claude Code as the Operator/listener.py`
- [Task broker](https://github.com/g3tsyst3m/codefromblog/blob/main/2026-6-26-How%20to%20Create%20a%20Makeshift%20C2%20with%20Claude%20Code%20as%20the%20Operator/broker_db.py): `2026-6-26-How to Create a Makeshift C2 with Claude Code as the Operator/broker_db.py`
- [Agent configuration](https://github.com/g3tsyst3m/codefromblog/blob/main/2026-6-26-How%20to%20Create%20a%20Makeshift%20C2%20with%20Claude%20Code%20as%20the%20Operator/agent_config.py): `2026-6-26-How to Create a Makeshift C2 with Claude Code as the Operator/agent_config.py`
- [Remote agent server](https://github.com/g3tsyst3m/codefromblog/blob/main/2026-6-26-How%20to%20Create%20a%20Makeshift%20C2%20with%20Claude%20Code%20as%20the%20Operator/remote_agent_server.py): `2026-6-26-How to Create a Makeshift C2 with Claude Code as the Operator/remote_agent_server.py`

### Windows techniques

- [Elevation station](https://github.com/g3tsyst3m/codefromblog/blob/main/2024-12-20-Create%20your%20own%20C2%20using%20Python%20-%20Part%203/elevationstation/elevationstation.cpp): `2024-12-20-Create your own C2 using Python - Part 3/elevationstation/elevationstation.cpp`
- [Elevation declarations](https://github.com/g3tsyst3m/codefromblog/blob/main/2024-12-20-Create%20your%20own%20C2%20using%20Python%20-%20Part%203/elevationstation/def.h): `2024-12-20-Create your own C2 using Python - Part 3/elevationstation/def.h`
- [Process migrator](https://github.com/g3tsyst3m/codefromblog/blob/main/2024-12-20-Create%20your%20own%20C2%20using%20Python%20-%20Part%203/migrator/migrator.cpp): `2024-12-20-Create your own C2 using Python - Part 3/migrator/migrator.cpp`
- [Migrator declarations](https://github.com/g3tsyst3m/codefromblog/blob/main/2024-12-20-Create%20your%20own%20C2%20using%20Python%20-%20Part%203/migrator/def.h): `2024-12-20-Create your own C2 using Python - Part 3/migrator/def.h`
- [Process technique demo](https://github.com/g3tsyst3m/codefromblog/blob/main/2026-1-29-Living%20off%20the%20Process/LOTP_blog/LOTP_blog.cpp): `2026-1-29-Living off the Process/LOTP_blog/LOTP_blog.cpp`
- [Debug privilege helper](https://github.com/g3tsyst3m/codefromblog/blob/main/2026-1-29-Living%20off%20the%20Process/LOTP_blog/debugprivcheck.cpp): `2026-1-29-Living off the Process/LOTP_blog/debugprivcheck.cpp`
- [Gadget finder](https://github.com/g3tsyst3m/codefromblog/blob/main/2026-1-29-Living%20off%20the%20Process/LOTP_blog/findgadget.cpp): `2026-1-29-Living off the Process/LOTP_blog/findgadget.cpp`
- [Memory-region helper](https://github.com/g3tsyst3m/codefromblog/blob/main/2026-1-29-Living%20off%20the%20Process/LOTP_blog/FindRWXMemoryRegions.cpp): `2026-1-29-Living off the Process/LOTP_blog/FindRWXMemoryRegions.cpp`
- [Function-stomping BOF](https://github.com/g3tsyst3m/codefromblog/blob/main/2026-10-4-Function%20Stomping%20101%20-%20Adaptix%20C2%20BOFs%20and%20Crystal%20Palace%20PIC%20Shellcode/funcstomp_bof/funcstomp.c): `2026-10-4-Function Stomping 101 - Adaptix C2 BOFs and Crystal Palace PIC Shellcode/funcstomp_bof/funcstomp.c`
- [Beacon API declarations](https://github.com/g3tsyst3m/codefromblog/blob/main/2026-10-4-Function%20Stomping%20101%20-%20Adaptix%20C2%20BOFs%20and%20Crystal%20Palace%20PIC%20Shellcode/funcstomp_bof/_include/beacon.h): `2026-10-4-Function Stomping 101 - Adaptix C2 BOFs and Crystal Palace PIC Shellcode/funcstomp_bof/_include/beacon.h`
- [UAC bypass examples](https://github.com/g3tsyst3m/codefromblog/tree/main/2024-10-16-Creative%20UAC%20Bypass%20Methods%20for%20the%20Modern%20Era): `2024-10-16-Creative UAC Bypass Methods for the Modern Era`
- [Intel cache bypass](https://github.com/g3tsyst3m/codefromblog/blob/main/4-22-2025-Intel%20Shader%20Cache%20UAC%20Bypass/intel_UAC_bypass.cpp): `4-22-2025-Intel Shader Cache UAC Bypass/intel_UAC_bypass.cpp`

### Payload demonstrations

- [Assembly shellcode series](https://github.com/g3tsyst3m/codefromblog/tree/main/2024-11-1-x64%20Assembly%20%26%20Shellcoding%20101): `2024-11-1-x64 Assembly & Shellcoding 101`
- [Direct-syscall loader](https://github.com/g3tsyst3m/codefromblog/blob/main/2025-8-23-Using%20Direct%20Syscalls%20with%20an%20In-Memory%20PIC%20Shellcode%20Loader/syscall_mayhem_6/syscall_mayhem_6.cpp): `2025-8-23-Using Direct Syscalls with an In-Memory PIC Shellcode Loader/syscall_mayhem_6/syscall_mayhem_6.cpp`
- [Manual Ntdll loader](https://github.com/g3tsyst3m/codefromblog/blob/main/2025-8-23-Using%20Direct%20Syscalls%20with%20an%20In-Memory%20PIC%20Shellcode%20Loader/syscall_mayhem_6/ManualNtdll.cpp): `2025-8-23-Using Direct Syscalls with an In-Memory PIC Shellcode Loader/syscall_mayhem_6/ManualNtdll.cpp`
- [In-memory PE loader](https://github.com/g3tsyst3m/codefromblog/blob/main/2025-9-23-Bypassing%20EDR%20using%20an%20In-Memory%20PE%20Loader/peinjection.cpp): `2025-9-23-Bypassing EDR using an In-Memory PE Loader/peinjection.cpp`
- [Shellcode fragmentation](https://github.com/g3tsyst3m/codefromblog/tree/main/2025-12-23-Evading%20Signature%20Based%20Memory%20Detection%20-%20Shellcode%20Fragmentation%20and%20Staged%20Reassembly): `2025-12-23-Evading Signature Based Memory Detection - Shellcode Fragmentation and Staged Reassembly`

### Other examples

- [Python Netcat](https://github.com/g3tsyst3m/codefromblog/tree/main/2023-08-19-Create%20your%20own%20Netcat%20using%20Python): `2023-08-19-Create your own Netcat using Python`
- [JPEG steganography](https://github.com/g3tsyst3m/codefromblog/tree/main/2025-5-16-Steganography%20is%20still%20relevant!): `2025-5-16-Steganography is still relevant!`
- [Buffer overflow series](https://github.com/g3tsyst3m/codefromblog/tree/main/2025%20-%20Buffer%20Overflow%20Series): `2025 - Buffer Overflow Series`
- [EDR encoding demos](https://github.com/g3tsyst3m/codefromblog/tree/main/2023-09-27-Malware%20EDR%20Evasion%20Techniques): `2023-09-27-Malware EDR Evasion Techniques`
- [Module stomping demo](https://github.com/g3tsyst3m/codefromblog/blob/main/2025-10-3-Module%20Stomping%20101%20-%20My%20Favorite%20Stomping%20Grounds/mstmp2.cpp): `2025-10-3-Module Stomping 101 - My Favorite Stomping Grounds/mstmp2.cpp`
- [.NET staged loader](https://github.com/g3tsyst3m/codefromblog/blob/main/2025-8-12-How%20to%20Create%20a%20Staged%20In-Memory%20.NET%20Reflective%20Shellcode%20Loader/Class1.cs): `2025-8-12-How to Create a Staged In-Memory .NET Reflective Shellcode Loader/Class1.cs`

## Connections

- C2 listener → Task broker: uses task store (evidence: `2026-6-26-How to Create a Makeshift C2 with Claude Code as the Operator/listener.py`)
- C2 listener → Agent configuration: imports config (evidence: `2026-6-26-How to Create a Makeshift C2 with Claude Code as the Operator/listener.py`)
- Elevation station → Elevation declarations: uses declarations (evidence: `2024-12-20-Create your own C2 using Python - Part 3/elevationstation/elevationstation.cpp`)
- Process migrator → Migrator declarations: includes declarations (evidence: `2024-12-20-Create your own C2 using Python - Part 3/migrator/migrator.cpp`)
- Process technique demo → Debug privilege helper: enables privilege (evidence: `2026-1-29-Living off the Process/LOTP_blog/LOTP_blog.cpp`)
- Process technique demo → Gadget finder: finds gadgets (evidence: `2026-1-29-Living off the Process/LOTP_blog/LOTP_blog.cpp`)
- Function-stomping BOF → Beacon API declarations: uses API declarations (evidence: `2026-10-4-Function Stomping 101 - Adaptix C2 BOFs and Crystal Palace PIC Shellcode/funcstomp_bof/funcstomp.c`)
- Direct-syscall loader → Manual Ntdll loader: loads syscall exports (evidence: `2025-8-23-Using Direct Syscalls with an In-Memory PIC Shellcode Loader/syscall_mayhem_6/syscall_mayhem_6.cpp`)
