Metadata-Version: 2.4
Name: treegx
Version: 1.0.0
Summary: TreeGX — a professional, authorization-gated reconnaissance & security assessment toolkit for the terminal.
Author: Muhammed Balın
License: MIT
Project-URL: Homepage, https://github.com/ThT0AltayHR/TreeGX
Project-URL: Repository, https://github.com/ThT0AltayHR/TreeGX
Project-URL: Issues, https://github.com/ThT0AltayHR/TreeGX/issues
Keywords: security,reconnaissance,pentest,infosec,cli,waf,tls,subdomain,dns,assessment
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: System Administrators
Classifier: Intended Audience :: Information Technology
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Security
Classifier: Topic :: Internet :: WWW/HTTP
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: cryptography>=41.0
Provides-Extra: dev
Requires-Dist: pytest>=7; extra == "dev"
Requires-Dist: build; extra == "dev"
Requires-Dist: twine; extra == "dev"
Dynamic: license-file

<div align="center">

```
 ████████╗██████╗ ███████╗███████╗ ██████╗ ██╗  ██╗
 ╚══██╔══╝██╔══██╗██╔════╝██╔════╝██╔════╝ ╚██╗██╔╝
    ██║   ██████╔╝█████╗  █████╗  ██║  ███╗ ╚███╔╝
    ██║   ██╔══██╗██╔══╝  ██╔══╝  ██║   ██║ ██╔██╗
    ██║   ██║  ██║███████╗███████╗╚██████╔╝██╔╝ ██╗
    ╚═╝   ╚═╝  ╚═╝╚══════╝╚══════╝ ╚═════╝ ╚═╝  ╚═╝
```

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

[![PyPI](https://img.shields.io/pypi/v/treegx.svg)](https://pypi.org/project/treegx/)
[![Python](https://img.shields.io/pypi/pyversions/treegx.svg)](https://pypi.org/project/treegx/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)

</div>

---

## ⚖️ 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

```bash
pip install treegx
```

From source:

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

Requires Python 3.8+.

---

## 🚀 Usage

Launch the interactive menu:

```bash
treegx
```

List tools:

```bash
treegx list
```

Run a single tool:

```bash
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:

```bash
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](LICENSE).
