How fodiyes/ghostload works
RustLoad is a Rust client and PHP server for retrieving deployment metadata and protected agent files. The documented workflow runs client-side environment checks, requests a profile from the API, then downloads and processes configured files. The README also describes traffic masking, authenticated requests, key derivation, and optional persistence. This is a high-level component map; unsampled modules and unverified connections are not expanded.
Main entry points: api.php API endpoint · main.rs Client workflow · downloader.rs Metadata and download · encrypted_container.rs Encrypted container
Components 20
Rust Client
- Client workflow
loader/src/main.rs - Runtime checks
loader/src/anti_analysis - Debug checks
loader/src/anti_debug.rs - Optional persistence
loader/src/persistence_advanced.rs - Metadata and download
loader/src/downloader.rs - Encrypted container
loader/src/encrypted_container.rs - Payload execution
loader/src/executor.rs - Traffic encoding
loader/src/obfuscation.rs
PHP Server
- API endpoint
backend/public/api.php - Server services
backend/core/Bootstrap.php - Server configuration
backend/core/Config.php - Request security
backend/core/Security.php - File key derivation
backend/core/KeyDerivation.php - Response encoding
backend/core/Obfuscator.php - Response masking
backend/core/AntiFingerprint.php - Security state
backend/data
Deployment Inputs
- Deployment profiles
backend/config/deployments.php - Payload preparation
tools/encrypt_payload.py
Other components
- Authorized operator
- Configured file host
Connections 20
- Authorized operator → Client workflow: starts
README.md - Client workflow → Runtime checks: runs checks
loader/src/main.rs - Client workflow → Debug checks: runs checks
loader/src/main.rs - Client workflow → Optional persistence: installs optionally
loader/src/main.rs - Client workflow → Metadata and download: requests metadata
loader/src/main.rs - Metadata and download → API endpoint: requests profile
README.md - API endpoint → Server services: initializes
backend/public/api.php - Server services → Server configuration: loads
backend/core/Bootstrap.php - API endpoint → Request security: validates request
backend/public/api.php - Request security → Security state: stores limits and nonces
backend/core/Security.php - API endpoint → Deployment profiles: looks up profile
backend/public/api.php - API endpoint → File key derivation: derives file keys
backend/public/api.php - API endpoint → Response encoding: encodes response
backend/public/api.php - API endpoint → Response masking: masks response
backend/public/api.php - Metadata and download → Traffic encoding: decodes metadata
loader/src/downloader.rs - Metadata and download → Configured file host: fetches configured files
README.md - Metadata and download → Encrypted container: processes downloaded data
loader/src/downloader.rs - Encrypted container → Payload execution: provides payload
- Authorized operator → Payload preparation: prepares deployment
README.md - Payload preparation → Deployment profiles: supplies profile metadata
README.md