# hackgodybj/symbian architecture

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

- Interactive diagram: https://gitdiagram.com/hackgodybj/symbian
- Repository: https://github.com/hackgodybj/symbian

## Overview

This repository is a small, script-based toolkit rather than a layered application. Its architecture is “flat”: each `.sh` file is an independent entrypoint for a specific penetration-testing task, with `functions.sh` acting as the only obvious shared code module.

1. **Purpose and scope**
   - The repo is a Bash/Shell automation bundle for penetration testing.
   - It focuses on post-exploitation operations: shell access, shell stabilization, file transfer, persistence, and host enumeration.

2. **Core execution model**
   - Every capability is delivered as a shell script, so the runtime boundary is the local shell environment plus whatever utilities are available on the remote host.
   - There is no server, daemon, package manager, or compiled component visible in the tree.

3. **Shared helper layer**
   - `functions.sh` is the central reusable layer.
   - The rest of the scripts likely source it for common routines such as formatting, environment checks, command construction, or repeated shell logic.

4. **Remote shell acquisition**
   - `revshell_nc.sh`, `python_revshell.sh`, and `python3_revshell.sh` represent different reverse-shell launch paths depending on what is installed on the target.
   - These scripts are alternative adapters around the same architectural goal: create an interactive foothold from target back to operator.

5. **Shell stabilization**
   - `stabilize_shell.sh` and `stabilize_zsh_shell.sh` handle the transition from a basic reverse shell to a more usable interactive session.
   - This subsystem is about terminal ergonomics and session quality, not new access creation.

6. **File transfer subsystem**
   - `download_nc.sh`, `upload_nc.sh`, and `wget_upload.sh` provide transfer channels for moving payloads or collected data.
   - The design suggests multiple fallback mechanisms, chosen according to what tools exist on the target.

7. **Persistence mechanisms**
   - `add_cronjob.sh` and `persist_ssh.sh` are persistence-oriented scripts.
   - One targets scheduled task persistence via cron; the other targets SSH-based persistence or access retention.
   - These are separate from initial access and from file transfer, showing a distinct “maintain foothold” subsystem.

8. **Enumeration and discovery**
   - `lenum.sh` appears to be a Linux enumeration helper.
   - Architecturally, this is the reconnaissance/post-exploitation discovery layer: gather system facts after access is obtained.

9. **Tooling dependencies**
   - The scripts are built around standard Unix tooling: Bash, netcat, Python, wget, SSH, cron, and optionally zsh.
   - This makes the framework portable across minimal Linux environments, but also means capabilities depend heavily on what is already installed on the target.

10. **Data flow between operator and target**
   - Primary flow is operator-to-target for delivery of commands, payloads, and transfer utilities.
   - Secondary flow is target-to-operator for reverse-shell callbacks and exfiltration of command output or files.
   - Persistence scripts modify the target system so access survives session loss.

11. **Repository shape**
   - The repo is organized by task, not by abstraction or application layer.
   - Each script is a tool in a toolkit; there is little evidence of internal orchestration beyond shared helper functions.

12. **How to draw the architecture**
   - Draw one boundary for the operator environment and one for the compromised/remote host.
   - Place the scripts as task-specific modules on the operator side, with arrows to the target for shell spawn, stabilization, transfer, and persistence.
   - Show `functions.sh` as a shared helper used by multiple scripts, not as an independent service.

In short: this is a lightweight pentest automation collection centered on shell-based post-exploitation workflows, with modular scripts for access, interaction, transfer, persistence, and host enumeration.

Main entry points: [`functions.sh`](https://github.com/hackgodybj/symbian/blob/main/functions.sh) (Shared funcs), [`revshell_nc.sh`](https://github.com/hackgodybj/symbian/blob/main/revshell_nc.sh) (Netcat shell), [`python_revshell.sh`](https://github.com/hackgodybj/symbian/blob/main/python_revshell.sh) (Python shell), [`python3_revshell.sh`](https://github.com/hackgodybj/symbian/blob/main/python3_revshell.sh) (Python3 shell)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_operator["Operator toolkit"]
  node_operator_shell["Operator shell<br/>runtime boundary"]
  node_functions_sh["Shared funcs<br/>helper module<br/>[functions.sh]"]
  node_revshell_nc_sh["Netcat shell<br/>reverse shell<br/>[revshell_nc.sh]"]
  node_python_revshell_sh["Python shell<br/>reverse shell<br/>[python_revshell.sh]"]
  node_python3_revshell_sh["Python3 shell<br/>reverse shell"]
  node_stabilize_shell_sh["Stabilize shell<br/>session upgrade<br/>[stabilize_shell.sh]"]
  node_stabilize_zsh_shell_sh["Stabilize zsh<br/>session upgrade"]
  node_download_nc_sh["Download file<br/>file transfer<br/>[download_nc.sh]"]
  node_upload_nc_sh["Upload file<br/>file transfer<br/>[upload_nc.sh]"]
  node_wget_upload_sh["Wget upload<br/>file transfer<br/>[wget_upload.sh]"]
  node_add_cronjob_sh["Cron persistence<br/>[add_cronjob.sh]"]
  node_persist_ssh_sh["SSH persistence<br/>[persist_ssh.sh]"]
  node_lenum_sh["Linux enum<br/>enumeration<br/>[lenum.sh]"]
end

subgraph group_target["Remote host"]
  node_target_host["Target host<br/>remote runtime"]
end

node_functions_sh -.->|"shared helpers"| node_revshell_nc_sh
node_functions_sh -.->|"shared helpers"| node_python_revshell_sh
node_functions_sh -.->|"shared helpers"| node_python3_revshell_sh
node_functions_sh -.->|"shared helpers"| node_stabilize_shell_sh
node_functions_sh -.->|"shared helpers"| node_stabilize_zsh_shell_sh
node_functions_sh -.->|"shared helpers"| node_download_nc_sh
node_functions_sh -.->|"shared helpers"| node_upload_nc_sh
node_functions_sh -.->|"shared helpers"| node_wget_upload_sh
node_functions_sh -.->|"shared helpers"| node_add_cronjob_sh
node_functions_sh -.->|"shared helpers"| node_persist_ssh_sh
node_functions_sh -.->|"shared helpers"| node_lenum_sh
node_revshell_nc_sh -->|"spawn shell"| node_target_host
node_python_revshell_sh -->|"spawn shell"| node_target_host
node_python3_revshell_sh -->|"spawn shell"| node_target_host
node_stabilize_shell_sh -->|"upgrade session"| node_target_host
node_stabilize_zsh_shell_sh -->|"upgrade session"| node_target_host
node_download_nc_sh -->|"pull files"| node_target_host
node_upload_nc_sh -->|"push files"| node_target_host
node_wget_upload_sh -->|"retrieve payload"| node_target_host
node_add_cronjob_sh -->|"modify persistence"| node_target_host
node_persist_ssh_sh -->|"modify access"| node_target_host
node_lenum_sh -->|"enumerate host"| node_target_host

click node_functions_sh "https://github.com/hackgodybj/symbian/blob/main/functions.sh"
click node_revshell_nc_sh "https://github.com/hackgodybj/symbian/blob/main/revshell_nc.sh"
click node_python_revshell_sh "https://github.com/hackgodybj/symbian/blob/main/python_revshell.sh"
click node_python3_revshell_sh "https://github.com/hackgodybj/symbian/blob/main/python3_revshell.sh"
click node_stabilize_shell_sh "https://github.com/hackgodybj/symbian/blob/main/stabilize_shell.sh"
click node_stabilize_zsh_shell_sh "https://github.com/hackgodybj/symbian/blob/main/stabilize_zsh_shell.sh"
click node_download_nc_sh "https://github.com/hackgodybj/symbian/blob/main/download_nc.sh"
click node_upload_nc_sh "https://github.com/hackgodybj/symbian/blob/main/upload_nc.sh"
click node_wget_upload_sh "https://github.com/hackgodybj/symbian/blob/main/wget_upload.sh"
click node_add_cronjob_sh "https://github.com/hackgodybj/symbian/blob/main/add_cronjob.sh"
click node_persist_ssh_sh "https://github.com/hackgodybj/symbian/blob/main/persist_ssh.sh"
click node_lenum_sh "https://github.com/hackgodybj/symbian/blob/main/lenum.sh"

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_operator_shell,node_functions_sh,node_revshell_nc_sh,node_python_revshell_sh,node_python3_revshell_sh,node_stabilize_shell_sh,node_stabilize_zsh_shell_sh,node_download_nc_sh,node_upload_nc_sh,node_wget_upload_sh,node_add_cronjob_sh,node_persist_ssh_sh,node_lenum_sh toneBlue
class node_target_host toneAmber
```

## Components

### Operator toolkit

Local shell scripts used by the operator to gain access, interact with the session, move files, and establish persistence.

- **Operator shell**: runtime boundary · Local execution environment for the Bash toolkit and available command-line utilities.
- [Shared funcs](https://github.com/hackgodybj/symbian/blob/main/functions.sh): helper module · Common shell helpers sourced by multiple scripts. · `functions.sh`
- [Netcat shell](https://github.com/hackgodybj/symbian/blob/main/revshell_nc.sh): reverse shell · Reverse-shell entrypoint using netcat. · `revshell_nc.sh`
- [Python shell](https://github.com/hackgodybj/symbian/blob/main/python_revshell.sh): reverse shell · Reverse-shell entrypoint using Python. · `python_revshell.sh`
- [Python3 shell](https://github.com/hackgodybj/symbian/blob/main/python3_revshell.sh): reverse shell · Reverse-shell entrypoint using Python 3. · `python3_revshell.sh`
- [Stabilize shell](https://github.com/hackgodybj/symbian/blob/main/stabilize_shell.sh): session upgrade · Improves an unstable reverse shell into a more usable interactive session. · `stabilize_shell.sh`
- [Stabilize zsh](https://github.com/hackgodybj/symbian/blob/main/stabilize_zsh_shell.sh): session upgrade · Upgrades or reconfigures a session for zsh-based interaction. · `stabilize_zsh_shell.sh`
- [Download file](https://github.com/hackgodybj/symbian/blob/main/download_nc.sh): file transfer · Pulls files from the target using netcat-based transfer. · `download_nc.sh`
- [Upload file](https://github.com/hackgodybj/symbian/blob/main/upload_nc.sh): file transfer · Pushes files to the target using netcat-based transfer. · `upload_nc.sh`
- [Wget upload](https://github.com/hackgodybj/symbian/blob/main/wget_upload.sh): file transfer · Transfers payloads or data using wget-based retrieval on the target. · `wget_upload.sh`
- [Cron persistence](https://github.com/hackgodybj/symbian/blob/main/add_cronjob.sh): persistence · Establishes scheduled-task persistence via cron. · `add_cronjob.sh`
- [SSH persistence](https://github.com/hackgodybj/symbian/blob/main/persist_ssh.sh): persistence · Adds or maintains access using SSH-based persistence. · `persist_ssh.sh`
- [Linux enum](https://github.com/hackgodybj/symbian/blob/main/lenum.sh): enumeration · Post-exploitation Linux host enumeration script. · `lenum.sh`

### Remote host

Compromised Linux host that receives reverse shells, transfers, enumeration commands, and persistence changes.

- **Target host**: remote runtime · Remote Linux host where shells, transfers, enumeration, and persistence operate.

## Connections

- Shared funcs → Netcat shell: shared helpers · Reverse-shell script reuses common shell routines.
- Shared funcs → Python shell: shared helpers · Python reverse-shell script reuses common shell routines.
- Shared funcs → Python3 shell: shared helpers · Python 3 reverse-shell script reuses common shell routines.
- Shared funcs → Stabilize shell: shared helpers · Shell stabilization script reuses common shell routines.
- Shared funcs → Stabilize zsh: shared helpers · zsh stabilization script reuses common shell routines.
- Shared funcs → Download file: shared helpers · Netcat download script reuses common shell routines.
- Shared funcs → Upload file: shared helpers · Netcat upload script reuses common shell routines.
- Shared funcs → Wget upload: shared helpers · Wget transfer script reuses common shell routines.
- Shared funcs → Cron persistence: shared helpers · Cron persistence script reuses common shell routines.
- Shared funcs → SSH persistence: shared helpers · SSH persistence script reuses common shell routines.
- Shared funcs → Linux enum: shared helpers · Enumeration script reuses common shell routines.
- Netcat shell → Target host: spawn shell · Creates a reverse-shell callback on the remote host.
- Python shell → Target host: spawn shell · Creates a reverse-shell callback on the remote host.
- Python3 shell → Target host: spawn shell · Creates a reverse-shell callback on the remote host.
- Stabilize shell → Target host: upgrade session · Improves an existing interactive shell on the remote host.
- Stabilize zsh → Target host: upgrade session · Improves an existing zsh-capable shell on the remote host.
- Download file → Target host: pull files · Transfers data from the remote host to the operator.
- Upload file → Target host: push files · Transfers payloads from the operator to the remote host.
- Wget upload → Target host: retrieve payload · Uses wget on the remote host to fetch operator-provided content.
- Cron persistence → Target host: modify persistence · Installs scheduled access on the remote host.
- SSH persistence → Target host: modify access · Sets up SSH-based persistence or retention on the remote host.
- Linux enum → Target host: enumerate host · Collects system and environment information from the remote host.
