★ FLAGSHIP RELEASE · SELF-ENGINEERED · v1.0.0

RatanSec OS

AI PENTEST ENVIRONMENT · KALI TOOLCHAIN · OPENROUTER AI COPILOT · x86_64 & ARM64

Ek AI-driven penetration testing environment — Kali ke tools (nmap, nikto, whatweb, gobuster, ffuf, nuclei, sqlmap, hydra) + AI copilot jo tumhari bhasha samajhta hai aur khud tools chalata hai. Web dashboard, CLI, REST API, human approvals, scope allowlist aur AI reports — sab ek jagah. Free VM images ke roop me download karo aur 5 minute me operational ho jao.

AI_COPILOTKALI_TOOLCHAINWEB_DASHBOARD CLI + REST_APIHUMAN_APPROVALSSCOPE_ALLOWLIST AI_REPORTSAUDIT_LOGDOCKER_READY
ratansec-os · dashboard · http://<vm-ip>:8000
[ 0.9s] Kali toolchain loaded — nmap · nikto · nuclei · sqlmap · gobuster · ffuf · hydra
[ 1.4s] AI copilot online — OpenRouter (apni API key)
[ 1.6s] scope allowlist armed — metadata IPs hard-blocked
[ 2.0s] dashboard ready → http://<vm-ip>:8000 · services: ratansecos
you ▸ example lab target ka quick recon karo
ai ▸ Scope check ✓ target authorized list me hai. Main quick profile chala raha hoon: whois, DNS, HTTP headers, nmap top-100.
RUNNING nmap -T4 -Pn -sT -F --open -sV  (12s)
DONE curl -sSI · allow: GET · server: nginx
APPROVAL sqlmap (level 1) ke liye dashboard me confirm karo
ai ▸ 3 findings mile: 2 informational, 1 medium (missing HSTS). Report generate karke Reports tab me save kar diya — download kar sakte ho.

Yeh kya hai exactly?

RatanSec OS ek "cockpit" hai — niche Kali ke real tools chalte hain, upar ek AI layer jo tumhare instruction samajh kar sahi tool, sahi flags aur sahi analysis deta hai. Har command dashboard + audit log me record hoti hai, aur intrusive steps ke liye tumhari approval maangta hai.

◈ Interface — Web dashboard (chat · scans · runs · reports · tools · audit) · CLI (cli.py) · REST API (/api/docs)
▲ ▼
◈ AI Agent — OpenRouter tool-calling loop · scope check · approval gates · report writer · Hinglish + English
▲ ▼
◈ Core — argv-only executor (shell = off) · timeouts + output caps · rate limits · audit log (data/audit.jsonl) · auth (cookie + Bearer)
▲ ▼
◈ Kali Toolchain — nmap · nikto · whatweb · gobuster · ffuf · nuclei · sqlmap · hydra · whois · dig · curl · netcat

Features — asli, chalne wale

// AI

AI Copilot (tool-calling)

Hinglish/English instruction do — AI khud run_scan, run_command, generate_report jaise tools call karta hai, output analyze karta hai aur next steps suggest karta hai. Koi bhi OpenRouter model (GPT-4o, Claude, Gemini, Llama, DeepSeek, free models bhi).

// SCAN

6 Professional Profiles

quick recon · web (WhatWeb + Nikto + gobuster) · network top-1000 ports + scripts · vuln (nmap vuln + Nuclei CVE templates) · webapp (sqlmap + ffuf) · full sab kuch.

// SAFETY

Human-in-the-Loop

sqlmap/hydra jaise intrusive tools aur scope ke bahar wale targets par dashboard me Approve / Deny card aata hai. Approve karne par wahi scan chalta hai aur AI result aage analyze kar deta hai.

// SCOPE

Scope Allowlist

ALLOWED_TARGETS me apne domains/wildcards/CIDR daalo — bahar ka kuch bhi scan nahi hoga. Cloud metadata IPs (169.254.x.x) hard-blocked — SSRF-style abuse impossible.

// EXEC

Injection-Proof Execution

Har command argv list ke roop me chalti hai (shell=False) — ; rm -rf / jaisa injection impossible. Per-step timeout, output caps, cancel support, background runs.

// REPORT

AI Reports + Audit Log

Ek click me Markdown report jisme AI ka analysis hota hai (findings, risk, next steps). Saath me audit.jsonl — kaun, kab, kya chalaya — evidence ke liye.

Downloads — free, ready to import

GitHub Release se seedha download. Har image me poora RatanSec OS baked hai — boot karte hi khud install ho jata hai (tools + service, 4–6 min), phir http://<VM-IP>:8000 par dashboard. Password VM ke andar /root/ratansec-credentials.txt me milta hai.

FileSizeKis VM ke liyeDownload
ratansec-os-1.0.0-amd64.qcow2597 MBOracle Cloud custom image · Proxmox · KVM/libvirt · GCP import⤓ QCOW2
ratansec-os-1.0.0-amd64.img.gz548 MBRaw disk — jo providers raw .img maangte hain (gzip -d karke unzip)⤓ RAW IMG
ratansec-os-1.0.0-amd64.vmdk568 MBVMware Workstation / ESXi / VirtualBox⤓ VMDK
ratansec-os-1.0.0-amd64.vdi1.8 GBVirtualBox (direct attach — convert nahi karna padta)⤓ VDI
ratansec-seed.iso40 KBcloud-init config — kisi bhi Ubuntu cloud VM me 2nd CD-ROM me lagao, sab auto-install⤓ SEED ISO
SHA256SUMS.txt1 KBChecksum verify: sha256sum -c SHA256SUMS.txt⤓ SUMS
// NOTE

QCOW2 vs RAW IMG

QCOW2 = compressed + import-friendly (Oracle Custom Image, Proxmox qm importdisk, GCP). RAW IMG = unzip karne par ~3.5 GB ka plain disk — un tools/providers ke liye jo raw maangte hain.

// NOTE

ISO OS nahi hai

ratansec-seed.iso sirf 40 KB ka config disc hai (cloud-init user-data). Poora OS VM images (qcow2/vmdk/vdi/img) ke andar hai. Seed ISO us VM ke liye hai jisme tum stock Ubuntu 24.04 cloud image use kar rahe ho.

Chalane ke 4 raste — apna chuno

// RASTA 1

VM image import (recommended)

QCOW2 download karo → cloud/VM me import → boot → 4–6 min baad dashboard live. Oracle Cloud free tier ARM (Ampere) par ARM64 image, x86 VM par amd64.

# Oracle Cloud (steps)
Storage → Buckets → qcow2 upload
Compute → Custom Images → Import image (OS: Ubuntu 24.04)
Custom image → Create Instance → SSH key
Security List → Ingress: TCP 8000 · 0.0.0.0/0

# Proxmox
qm importdisk 900 ratansec-os-1.0.0-amd64.qcow2 local-lvm
qm set 900 --scsi0 local-lvm:vm-900-disk-0 --ide2 local-lvm:cloudinit
// RASTA 2

Seed ISO (kuch bhi platform)

Koi bhi Ubuntu 24.04 cloud VM chalao → ratansec-seed.iso ko 2nd CD-ROM me attach karo → boot. Cloud-init baaki sab kar dega.

# Multipass (laptop par fastest)
multipass launch 24.04 --name ratansec --memory 4G --disk 20G \
  --cloud-init ratansec-os/deploy/cloud-init/user-data
multipass exec ratansec -- sudo cat /root/ratansec-credentials.txt
// RASTA 3

VPS installer (ek command)

Kisi bhi Ubuntu/Debian VM (Oracle/GCP/Vultr/Hetzner/DO) ke SSH me:

sudo apt update && sudo apt install -y git
git clone https://github.com/Ratan-patel/Ratan-patel.github.io.git
cd Ratan-patel.github.io
sudo bash ratansec-os/deploy/vps-install.sh \
  --key sk-or-v1-TUMHARI-KEY \
  --scope "tera-domain.com" --port 8000

# ban gaya: http://<VM-IP>:8000  · 24x7 systemd service
ratansec status | logs -f | restart | password
// RASTA 4

Docker / local script

Kali image (saare tools pre-installed) ya halka Debian slim — dono me compose file hai.

cd ratansec-os && cp .env.example .env
nano .env   # APP_PASSWORD + OPENROUTER_API_KEY

docker compose up -d --build     # full Kali (~3 GB)
# ya halka:
docker build -f Dockerfile.slim -t ratansec-os:slim .

./setup.sh --with-tools          # Linux/Kali/macOS/Termux
start-windows.bat                # Windows
RastaKis ke liyeTimeTools
VM image (qcow2)Cloud VM, Proxmox, KVM — 24x7 chalanay ke liye~10 minSab (pre-baked)
Seed ISOKoi bhi Ubuntu cloud VM — Oracle/GCP/AWS/Multipass~8 minSab (auto-install)
VPS scriptJaldi setup, systemd service, ek command~6 minSab (apt se)
DockerIsolation pasand ho / Kali full image~10 minSab (image me)
Local scriptLaptop, phone (Termux), Windows~3 minJo installed hain
GitHub CodespacesKuch install nahi — sirf browser~5 minSab (auto)

CLI & REST API

Dashboard ke saath-saath poora control terminal aur API se bhi — apni website/app me integrate karna ho to /api/docs par Swagger ready hai.

// CLI
export RATANSEC_URL=http://localhost:8000
export RATANSEC_PASSWORD='tera-password'

python cli.py status
python cli.py tools
python cli.py scan --target example.com --profile quick --wait
python cli.py scan --target example.com --profile full --wait --report
python cli.py chat "example.com ke open ports check karo"
python cli.py approve <approval_id>
python cli.py audit --limit 50
// API
curl -X POST http://localhost:8000/api/chat \
  -H "Authorization: Bearer $APP_PASSWORD" \
  -H 'Content-Type: application/json' \
  -d '{"messages":[{"role":"user",
       "content":"example.com ka recon karo"}],
       "conversation_id":"c1"}'

# Endpoints: /api/scan /api/runs /api/reports
#            /api/approvals /api/audit /api/tools
# Interactive docs → /api/docs

Safety by design

01

Scope allowlist

Sirf tumhare likhe targets par scan — baaki sab rejected.

02

Approval gates

Intrusive tools aur scope-less mode me human confirmation lazmi.

03

No shell

argv-only execution — command injection ka koi rasta nahi.

04

Audit trail

Har command audit.jsonl me — evidence + accountability.

⚠️ Legal: RatanSec OS sirf authorized security testing ke liye hai — apne systems, lab VMs, bug-bounty scope ya written client contract. Bina permission kisi bhi system ko scan karna illegal hai (India: IT Act 2000 ke under). Scope allowlist aur approval gates ko seriously use karo; galat use ki zimmedari user ki hai.

FAQ — jo sab poochhte hain

Kya yeh 25 MB me aa sakta hai?

Nahi — aur koi bhi OS + hacking tools 25 MB me nahi aate (Kali ISO khud ~4.5 GB hai, Metasploit ~400 MB, ek chhota AI model 300 MB+). RatanSec OS ka core code sirf ~500 KB hai, par tools aur VM image bade rehte hain. Isi liye design aisa hai: AI layer halka (tumhari API key se chalti hai) aur tools cloud VM me (on-demand).

AI key kiski? Paisa kitna lagega?

AI sim ki apni OpenRouter key (free account + free models possible). Software aur VM images free hain. Paid models par ek scan+analysis ≈ ₹0.2–1; roz 20 scans ≈ ₹150–600/mahina. Server: Oracle Cloud Always Free (4 ARM CPU/24 GB RAM) par ₹0, ya $5–6/mo VPS.

Kaunse tools andar hain?

nmap · nikto · whatweb · gobuster · ffuf · nuclei · sqlmap · hydra · whois · dig · curl · netcat — aur registry extend karna ek JSON block jitna aasan hai. Missing tools ke install commands dashboard ke Tools tab me dikhte hain.

Mobile par chal sakta hai?

Haan — do tarike: (1) Termux me ./setup.sh (nmap/curl/whois chalte hain), (2) cloud par deploy karke phone ke browser se dashboard use karo (recommended).

Kya yeh Kali ko replace karta hai?

Yeh Kali/Pentest distro ko replace nahi karta — yeh unke upar AI layer + orchestration deta hai. Tumhare tools wahi rahte hain, bas ek copilot unhe chala kar samjhata hai, aur poora kaam dashboard + audit log me organised rehta hai.

Source code kahan hai? Kya main modify kar sakta hoon?

Poora source GitHub par hai — ratansec-os/ folder (FastAPI backend, agent loop, tool registry, dashboard, CLI, CI builders). Customise karo: naya tool add karo, apni profiles banao, apna model/endpoint lagao.