# pkyria14/panicware architecture

> Architecture diagram of the GitHub repository pkyria14/panicware, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2024-12-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/pkyria14/panicware
- Repository: https://github.com/pkyria14/panicware

## Overview

##### Main Components Identification

a. Core Modules:
- Encryptions Module
- ShellcodeLoader Module
- PanicDrop Module
- PanicWareGui (Main Interface)

**┌─ PanicWareGui ─────────────────┐**
- FormEncryptions              │
- FormDropper                  │
- FormShellcodeLoader          │
- ┘

**┌─ Encryptions ─┐ ┌─ ShellcodeLoader ─┐ ┌─ PanicDrop ─┐**
- XOR        │ │ - Memory Allocation│ │ - Remote    │
- RC4        │ │ - Code Execution   │ │   Loading   │
- AES        │ │ - Process Injection│ │ - Assembly  │
- EKKO Sleep │ │                    │ │   Handling  │
- ┘ └──────────────────-┘ └────────────-┘

##### Component Details

For each major component, include:

a. PanicWareGui:
- Input handlers
- File management
- UI controls
- Configuration options

b. Encryptions:
- Encryption algorithms
- File I/O operations
- Key management

c. ShellcodeLoader:
- Memory management
- Process interaction
- Execution handlers

d. PanicDrop:
- Network operations
- Assembly loading
- Deployment logic

##### Integration Points

Integration points between components:
**User Input → PanicWareGui → Encryptions → ShellcodeLoader → Execution**
- ↘ PanicDrop ────→ Remote Loading

##### Technical Details

Annotations for:
- .NET Framework 4.8 dependency
- File formats (encrypted.txt, loader.bin)
- Memory allocation methods
- Security contexts

##### Notes Section

A notes section containing:
- Security considerations
- Educational purpose disclaimer
- Version information
- Dependencies

## Diagram (Mermaid)

```mermaid
%%{init: {
  'theme': 'base',
  'themeVariables': {
    'primaryColor': '#2a2d4c',
    'primaryTextColor': '#fff',
    'primaryBorderColor': '#7C0000',
    'lineColor': '#F8B229',
    'secondaryColor': '#006100',
    'tertiaryColor': '#fff'
  }
}}%%

flowchart TB
    classDef ui fill:#e1f5fe,stroke:#01579b
    classDef processing fill:#fff9c4,stroke:#f57f17
    classDef execution fill:#c8e6c9,stroke:#1b5e20
    classDef security fill:#ffcdd2,stroke:#b71c1c
    
    subgraph UI["User Interface Layer"]
        PanicWareGui["PanicWareGui"]:::ui
        FormEnc["FormEncryptions"]:::ui
        FormDrop["FormDropper"]:::ui
        FormShell["FormShellcodeLoader"]:::ui
        
        PanicWareGui --> FormEnc
        PanicWareGui --> FormDrop
        PanicWareGui --> FormShell
    end
    
    subgraph Core["Core Processing Layer"]
        Encryptions["Encryptions Module"]:::processing
        ShellLoader["ShellcodeLoader Module"]:::processing
        PanicDrop["PanicDrop Module"]:::processing
        
        subgraph EncryptionOps["Encryption Operations"]
            XOR["XOR"]:::security
            RC4["RC4"]:::security
            AES["AES"]:::security
            EKKO["EKKO Sleep"]:::security
            
            Encryptions --> XOR
            Encryptions --> RC4
            Encryptions --> AES
            Encryptions --> EKKO
        end
        
        subgraph LoaderOps["Loader Operations"]
            MemAlloc["Memory Allocation"]:::security
            CodeExec["Code Execution"]:::security
            ProcInject["Process Injection"]:::security
            
            ShellLoader --> MemAlloc
            ShellLoader --> CodeExec
            ShellLoader --> ProcInject
        end
        
        subgraph DropOps["Deployment Operations"]
            RemoteLoad["Remote Loading"]:::execution
            AssemblyHandle["Assembly Handling"]:::execution
            
            PanicDrop --> RemoteLoad
            PanicDrop --> AssemblyHandle
        end
    end
    
    FormEnc --> Encryptions
    FormShell --> ShellLoader
    FormDrop --> PanicDrop
    
    %% Click events for component mapping
    click PanicWareGui "https://github.com/pkyria14/Panicware/blob/main/PanicWareGui/PanicWare.cs"
    click FormEnc "https://github.com/pkyria14/Panicware/blob/main/PanicWareGui/Forms/FormEncryptions.cs"
    click FormDrop "https://github.com/pkyria14/Panicware/blob/main/PanicWareGui/Forms/FormDropper.cs"
    click FormShell "https://github.com/pkyria14/Panicware/blob/main/PanicWareGui/Forms/FormShellcodeLoader.cs"
    click Encryptions "https://github.com/pkyria14/Panicware/blob/main/Encryptions/Encryptions.cs"
    click ShellLoader "https://github.com/pkyria14/Panicware/blob/main/ShellcodeLoaderGPT/MainLoader.cs"
    click PanicDrop "https://github.com/pkyria14/Panicware/blob/main/PanicDrop/Panicdrop.cs"
    
    %% Legend
    subgraph Legend
        UI_Component["UI Component"]:::ui
        Processing["Processing Module"]:::processing
        Execution["Execution Path"]:::execution
        Security["Security Operation"]:::security
    end
```
