Skip to main content
 ████████╗██████╗ ███████╗███████╗ ██████╗ ██╗  ██╗
 ╚══██╔══╝██╔══██╗██╔════╝██╔════╝██╔════╝ ╚██╗██╔╝
    ██║   ██████╔╝█████╗  █████╗  ██║  ███╗ ╚███╔╝
    ██║   ██╔══██╗██╔══╝  ██╔══╝  ██║   ██║ ██╔██╗
    ██║   ██║  ██║███████╗███████╗╚██████╔╝██╔╝ ██╗
    ╚═╝   ╚═╝  ╚═╝╚══════╝╚══════╝ ╚═════╝ ╚═╝  ╚═╝

A professional, authorization-gated reconnaissance & security assessment toolkit for the terminal.

PyPI Python License: MIT


⚖️ Authorized use only

TreeGX performs active network reconnaissance and assessment. Use it only against systems you own or have explicit written permission to test. Unauthorized scanning may be illegal and violates most providers' terms of service. On first run TreeGX requires you to accept this and keeps a per-machine scope allow-list so scans cannot be pointed at third parties by accident.

TreeGX is detection-oriented. It identifies and reports weaknesses so an owner can fix them. It deliberately contains no denial-of-service tooling, no data-exfiltration, no database dumping, and no remote-code-execution capability.


✨ Features

Tool Group What it does
portscan recon TCP connect scan of common/custom ports with banner grab
subenum recon Subdomain discovery via crt.sh + DNS brute force
techdetect recon Fingerprint server, language, framework, CMS, JS libs
waf recon Identify the WAF/CDN protecting a target
httpheaders web Grade HTTP security headers, flag info leaks
contentdisco web Discover paths/files, flag sensitive exposures
apicheck web Inventory API/doc endpoints (OpenAPI, GraphQL, actuator)
corscheck web Detect permissive / reflecting CORS policies
tlsscan tls Inspect TLS protocol, cipher, certificate
vulnscan vuln Safe, detection-only web checks (reflection, DB errors, open redirect)
dnsrecon dns Resolve A/AAAA/MX/NS/TXT/CNAME/SOA/CAA over DoH

Plus: a polished ANSI terminal UI, an interactive menu, and JSON/text report export.


📦 Installation

pip install treegx

From source:

git clone https://github.com/ThT0AltayHR/TreeGX.git
cd TreeGX
pip install -e .

Requires Python 3.8+.


🚀 Usage

Launch the interactive menu:

treegx

List tools:

treegx list

Run a single tool:

treegx headers https://example.com
treegx portscan example.com --ports 1-1024
treegx subenum example.com
treegx tls example.com
treegx dns example.com
treegx waf https://example.com

Save a report:

treegx headers https://example.com -o report.json
treegx portscan example.com -o report.txt -f txt

Global flags: --threads, --timeout, --insecure, --quiet, --output/-o, --format/-f {json,txt}, --no-banner.


🧱 Project structure

Each tool lives in its own package folder with its code, a focused README.md, and any data files (wordlists, signatures) it needs:

treegx/
├── core/           # shared UI, HTTP client, scope gate, report model
├── tools/
│   ├── portscan/
│   ├── subenum/
│   ├── techdetect/
│   ├── waf/
│   ├── httpheaders/
│   ├── contentdisco/
│   ├── apicheck/
│   ├── corscheck/
│   ├── tlsscan/
│   ├── vulnscan/
│   └── dnsrecon/
├── cli.py          # command-line interface
└── menu.py         # interactive menu

🤝 Contributing

New tools are self-registering: drop a module under treegx/tools/<name>/ exposing a TOOL descriptor and a run(ctx, **kwargs) function, add it to the registry list, and it appears in the CLI and the menu automatically.


📄 License

MIT © Muhammed Balın. See LICENSE.

Metadata

Release files for treegx 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for treegx 1.0.0
File Size Uploaded Provenance Actions
treegx-1.0.0.tar.gz 33.7 kB Without provenance Details for treegx-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for treegx 1.0.0
File Interpreter ABI Platform Actions
treegx-1.0.0-py3-none-any.whl Python 3 none any Details for treegx-1.0.0-py3-none-any.whl

Total release size: 75.0 kB

Release files / treegx-1.0.0.tar.gz

Download URL treegx-1.0.0.tar.gz
Size 33.7 kB
Tags Source
SHA-256 checksum
How to use checksums
0455c476c4b7b66d50b539de45ba8cd455f7ad8bced998c7b8efc207144de3e4
BLAKE2b-256 checksum
How to use checksums
43b2c069c02f33467d4dbbf71ed5ddaab4dd3de2771681112d63d79d59a1ab96
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / treegx-1.0.0-py3-none-any.whl

Download URL treegx-1.0.0-py3-none-any.whl
Size 41.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
067b8d93ec51739fe4a876b07adf6f4598ef32433dd0211ffe5a7e89ac77191f
BLAKE2b-256 checksum
How to use checksums
0a73343af737837e9e9ce97cbc3d41dedd3ca1cef84d6a63f614d4f8cd725034
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Security for treegx 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page