Hoşgeldin Misafir

RustScan - Cheatsheet

WeeZe

8 Haz 2025
817 Mesaj

Aktiflik

Seviye

Deneyim

TIM / GÖREV:
rustscan.png
# Nedir:
RustScan, klasik Nmap taramalarını çok yüksek hızda ön port keşfi ile besleyen, Rust ile yazılmış ultra hızlı bir port tarayıcıdır. Açık portları milisaniyeler içinde keşfeder ve Nmap’e aktararak tam servis fingerprinting yapılmasını sağlar.

# Daha detaylı incelemek isterseniz Turkhacks Resmi Github reposundan bakabilirsiniz.

Markdown (GitHub flavored):
### Turkhacks.com | Bug Researchers Team
GitHub: https://github.com/turkhacks-com
RustScan GitHub: https://github.com/RustScan/RustScan


# TEMEL TARAMA

## Tüm portları tara ve Nmap varsayılan scriptleriyle analiz et
rustscan -a 10.10.10.5

## Ham soket ile ultra hızlı tarama
sudo rustscan -a 10.10.10.5

## Sadece açık portları keşfet (Nmap çalıştırmaz)
rustscan -a 10.10.10.5 --no-nmap

## Sessiz mod
rustscan -a 10.10.10.5 -q

---

# HEDEF BELİRTME

## Çoklu hedef tarama
rustscan -a 10.10.10.5 api.example.com test.site

## CIDR ile alt ağ taraması
rustscan -a 10.10.10.0/24

## Dosyadan hedef oku
rustscan -a targets.txt

## Hedef hariç tut
rustscan -a 10.10.10.0/24 --exclude 10.10.10.254

---

# PORT SEÇİMİ

## Belirli portlar
rustscan -a 10.10.10.5 --ports 21,22,80,443,3306,8080

## Port aralığı
rustscan -a 10.10.10.5 --ports 1-1024

## En popüler portlar
rustscan -a 10.10.10.5 --top

## Karma port listesi
rustscan -a 10.10.10.5 --ports 80,443,8000-8100

---

# NMAP ENTEGRASYONU

## Agresif tarama
rustscan -a 10.10.10.5 -- -A -T4

## Ping bypass
rustscan -a 10.10.10.5 -- -Pn -A

## UDP port taraması
rustscan -a 10.10.10.5 -- -sU --top-ports 20

## HTTP scriptleri
rustscan -a 10.10.10.5 -- -sV --script="http-title,http-headers"

## Full detay Nmap
rustscan -a 10.10.10.5 -- -p- -A -v

---

# PERFORMANS

## Batch size artır
rustscan -a 10.10.10.5 -b 6500

## Timeout artır
rustscan -a 10.10.10.5 -t 2000

## Ulimit ayarla
rustscan -a 10.10.10.5 -u 5000

## Tarama sırası
rustscan -a 10.10.10.5 --scan-order Serial

---

# OUTPUT

## Greppable çıktı
rustscan -a 10.10.10.5 -g

## Nmap .txt
rustscan -a 10.10.10.5 -- -oN scan.txt

## Nmap XML
rustscan -a 10.10.10.5 -- -oX scan.xml

## Tüm formatlar
rustscan -a 10.10.10.5 -- -oA scan_all

---

# DİĞER

## Network interface seç
rustscan -a 10.10.10.5 -i eth1

## DNS kapat
rustscan -a example.com --no-dns

## Retry sayısı
rustscan -a 10.10.10.5 --tries 3

## Versiyon
rustscan --version


---

# İpuçları

RustScan her zaman ön tarama, Nmap her zaman derin analiz içindir
--no-nmap + httpx = ultra hızlı yüzey keşfi
RustScan çıktısı direkt nuclei / ffuf zincirine girer
 

THS-AI

THS-AI

THS YAPAY ZEKA
Turkhacks Kurumsal
20 Haz 2025
11,255 Mesaj

Aktiflik

Seviye

Deneyim

TIM / GÖREV:
**RustScan cheatsheet (quick‑reference)**

| Action | Command | Notes |
|--------|---------|-------|
| Scan a single host | `rustscan --ulimit 10000 <ip>` | Basics: replace `<ip>` with target IP. |
| Scan with SYN/UDP (fast) | `rustscan -a <ip> --ulimit 10000 -- -Pn -sS -sU -p-` | `--ulimit` sets per‑user process limit. |
| Scan multiple ports | `rustscan -r 1-1000 -- ulimit 10000 -- -Pn -sS -p1-1000` | `-r` is port range. |
| Scan a domain (DNS) | `rustscan -a example.com -- -Pn -sS -p-` | Resolves A record. |
| Save results to file | `rustscan -a <ip> -- -Pn -sS -p- > results.txt` | Pipe to file. |
| Hide: quiet mode | `rustscan -a <ip> -- -Pn -sS -p- -oG -` | `-oG -` gives grepable output. |
| Avoid discovery (fast) | `rustscan -a <ip> -- -sN -p-` | No SYN probes, just connect probes. |
| Use custom Nmap scripts | `rustscan -a <ip> -- -Pn -sV -p- -sC` | Enables default scripts. |
| Enable OS detection | `rustscan -a <ip> -- -Pn -O -p-` | Adds OS fingerprinting. |
| Specific port set | `rustscan -a <ip> -- -Pn -sS -p22,80,443` | Comma‑separated list. |

### Quick tips
1. **`-a`** – target host (IP or domain).
2. **`-r <start>-<end>`** – port range.
3. **`--`** – separator; everything after it is passed to Nmap.
4. Adjust **`--ulimit`** to the number of simultaneous Nmap scans you can run.
5. Combine `-Pn` (no ping) with `-sS` (SYN scan) for fast, stealthy scans.
6. Use **`-oG -`** or **`-oX -`** for machine‑readable output.

That’s the core of a RustScan cheat‑sheet – use the `--help` command for full flag list. Happy scanning!