# und3rf10w/kali-anonsurf architecture

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

- Interactive diagram: https://gitdiagram.com/und3rf10w/kali-anonsurf
- Repository: https://github.com/und3rf10w/kali-anonsurf

## Overview

kali-anonstealth combines two Kali system utilities: Anonsurf for system-wide Tor routing and I2P controls, and Pandora for wiping RAM during shutdown or on demand. The documented user workflow is to invoke the Anonsurf command to start, stop, restart, change identity, check status, or control I2P; Pandora can be invoked manually or runs at shutdown. The graph uses README-described behavior and paths in the tree; source excerpts were unavailable, so uncertain internal calls are omitted.

Main entry points: [`kali-anonsurf-deb-src/usr/bin/anonsurf`](https://github.com/und3rf10w/kali-anonsurf/blob/master/kali-anonsurf-deb-src/usr/bin/anonsurf) (Anonsurf command), [`kali-anonsurf-deb-src/usr/bin/pandora`](https://github.com/und3rf10w/kali-anonsurf/blob/master/kali-anonsurf-deb-src/usr/bin/pandora) (Pandora command), [`kali-anonsurf-deb-src/etc/systemd/system/pandora.service`](https://github.com/und3rf10w/kali-anonsurf/blob/master/kali-anonsurf-deb-src/etc/systemd/system/pandora.service) (Pandora systemd unit), [`kali-anonsurf-deb-src/etc/init/pandora.conf`](https://github.com/und3rf10w/kali-anonsurf/blob/master/kali-anonsurf-deb-src/etc/init/pandora.conf) (Pandora init config)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_anonsurf["Anonsurf"]
  node_anonsurf_cmd["Anonsurf command"]
  node_tor_config["Tor configuration<br/>[torrc.anon]"]
  node_onion_pac["Onion PAC<br/>[onion.pac]"]
end

subgraph group_pandora["Pandora"]
  node_pandora_cmd["Pandora command"]
end

subgraph group_integration["System integration"]
  node_pandora_systemd["Pandora systemd unit<br/>[pandora.service]"]
  node_pandora_init["Pandora init config<br/>[pandora.conf]"]
  node_anonsurf_init["Anonsurf init script<br/>[anonsurf]"]
end

node_user(("System user"))
node_tor["Tor service"]
node_iptables["IPTables"]
node_i2p["I2P services"]
node_ram[("System RAM")]
node_shutdown(("System shutdown"))

node_user -->|"invokes command"| node_anonsurf_cmd
node_anonsurf_cmd -->|"controls routing"| node_tor
node_anonsurf_cmd -->|"configures rules"| node_iptables
node_anonsurf_cmd -->|"starts or stops"| node_i2p
node_tor_config -->|"configures"| node_tor
node_user -->|"runs bomb"| node_pandora_cmd
node_pandora_cmd -->|"overwrites"| node_ram
node_shutdown -->|"triggers service"| node_pandora_systemd
node_shutdown -.->|"triggers job"| node_pandora_init
node_pandora_systemd -->|"runs"| node_pandora_cmd
node_pandora_init -.->|"runs"| node_pandora_cmd
node_anonsurf_init -.->|"supports service control"| node_anonsurf_cmd

click node_anonsurf_cmd "https://github.com/und3rf10w/kali-anonsurf/blob/master/kali-anonsurf-deb-src/usr/bin/anonsurf"
click node_tor_config "https://github.com/und3rf10w/kali-anonsurf/blob/master/kali-anonsurf-deb-src/etc/tor/torrc.anon"
click node_onion_pac "https://github.com/und3rf10w/kali-anonsurf/blob/master/kali-anonsurf-deb-src/etc/tor/onion.pac"
click node_pandora_cmd "https://github.com/und3rf10w/kali-anonsurf/blob/master/kali-anonsurf-deb-src/usr/bin/pandora"
click node_pandora_systemd "https://github.com/und3rf10w/kali-anonsurf/blob/master/kali-anonsurf-deb-src/etc/systemd/system/pandora.service"
click node_pandora_init "https://github.com/und3rf10w/kali-anonsurf/blob/master/kali-anonsurf-deb-src/etc/init/pandora.conf"
click node_anonsurf_init "https://github.com/und3rf10w/kali-anonsurf/blob/master/kali-anonsurf-deb-src/etc/init.d/anonsurf"

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_anonsurf_cmd,node_tor_config,node_onion_pac,node_user toneBlue
class node_pandora_cmd,node_ram toneAmber
class node_pandora_systemd,node_pandora_init,node_anonsurf_init toneMint
class node_tor,node_iptables,node_i2p,node_shutdown toneIndigo
```

## Components

### Anonsurf

- [Anonsurf command](https://github.com/und3rf10w/kali-anonsurf/blob/master/kali-anonsurf-deb-src/usr/bin/anonsurf): `kali-anonsurf-deb-src/usr/bin/anonsurf`
- [Tor configuration](https://github.com/und3rf10w/kali-anonsurf/blob/master/kali-anonsurf-deb-src/etc/tor/torrc.anon): `kali-anonsurf-deb-src/etc/tor/torrc.anon`
- [Onion PAC](https://github.com/und3rf10w/kali-anonsurf/blob/master/kali-anonsurf-deb-src/etc/tor/onion.pac): `kali-anonsurf-deb-src/etc/tor/onion.pac`

### Pandora

- [Pandora command](https://github.com/und3rf10w/kali-anonsurf/blob/master/kali-anonsurf-deb-src/usr/bin/pandora): `kali-anonsurf-deb-src/usr/bin/pandora`

### System integration

- [Pandora systemd unit](https://github.com/und3rf10w/kali-anonsurf/blob/master/kali-anonsurf-deb-src/etc/systemd/system/pandora.service): `kali-anonsurf-deb-src/etc/systemd/system/pandora.service`
- [Pandora init config](https://github.com/und3rf10w/kali-anonsurf/blob/master/kali-anonsurf-deb-src/etc/init/pandora.conf): `kali-anonsurf-deb-src/etc/init/pandora.conf`
- [Anonsurf init script](https://github.com/und3rf10w/kali-anonsurf/blob/master/kali-anonsurf-deb-src/etc/init.d/anonsurf): `kali-anonsurf-deb-src/etc/init.d/anonsurf`

### Other components

- **System user**
- **Tor service**
- **IPTables**
- **I2P services**
- **System RAM**
- **System shutdown**

## Connections

- System user → Anonsurf command: invokes command
- Anonsurf command → Tor service: controls routing
- Anonsurf command → IPTables: configures rules
- Anonsurf command → I2P services: starts or stops
- Tor configuration → Tor service: configures
- System user → Pandora command: runs bomb
- Pandora command → System RAM: overwrites
- System shutdown → Pandora systemd unit: triggers service
- System shutdown → Pandora init config: triggers job
- Pandora systemd unit → Pandora command: runs
- Pandora init config → Pandora command: runs
- Anonsurf init script → Anonsurf command: supports service control
