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.
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.
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).
quick recon · web (WhatWeb + Nikto + gobuster) · network top-1000 ports + scripts · vuln (nmap vuln + Nuclei CVE templates) · webapp (sqlmap + ffuf) · full sab kuch.
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.
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.
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.
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.
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.
| File | Size | Kis VM ke liye | Download |
|---|---|---|---|
| ratansec-os-1.0.0-amd64.qcow2 | 597 MB | Oracle Cloud custom image · Proxmox · KVM/libvirt · GCP import | ⤓ QCOW2 |
| ratansec-os-1.0.0-amd64.img.gz | 548 MB | Raw disk — jo providers raw .img maangte hain (gzip -d karke unzip) | ⤓ RAW IMG |
| ratansec-os-1.0.0-amd64.vmdk | 568 MB | VMware Workstation / ESXi / VirtualBox | ⤓ VMDK |
| ratansec-os-1.0.0-amd64.vdi | 1.8 GB | VirtualBox (direct attach — convert nahi karna padta) | ⤓ VDI |
| ratansec-seed.iso | 40 KB | cloud-init config — kisi bhi Ubuntu cloud VM me 2nd CD-ROM me lagao, sab auto-install | ⤓ SEED ISO |
| SHA256SUMS.txt | 1 KB | Checksum verify: sha256sum -c SHA256SUMS.txt | ⤓ SUMS |
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.
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.
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
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.txtKisi 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
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
| Rasta | Kis ke liye | Time | Tools |
|---|---|---|---|
| VM image (qcow2) | Cloud VM, Proxmox, KVM — 24x7 chalanay ke liye | ~10 min | Sab (pre-baked) |
| Seed ISO | Koi bhi Ubuntu cloud VM — Oracle/GCP/AWS/Multipass | ~8 min | Sab (auto-install) |
| VPS script | Jaldi setup, systemd service, ek command | ~6 min | Sab (apt se) |
| Docker | Isolation pasand ho / Kali full image | ~10 min | Sab (image me) |
| Local script | Laptop, phone (Termux), Windows | ~3 min | Jo installed hain |
| GitHub Codespaces | Kuch install nahi — sirf browser | ~5 min | Sab (auto) |
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.
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
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/docsSirf tumhare likhe targets par scan — baaki sab rejected.
Intrusive tools aur scope-less mode me human confirmation lazmi.
argv-only execution — command injection ka koi rasta nahi.
Har command audit.jsonl me — evidence + accountability.
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 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.
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.
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).
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.
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.