
CVE-2026-33017 - Langflow < 1.9.0 PoC de RCE não autenticado
██╗ ██╗ ██████╗ ███████╗███████╗ ██████╗ ██████╗ ██████╗ ███████╗
██║ ██║██╔═══██╗██╔════╝██╔════╝██╔═══██╗██╔══██╗██╔═══██╗██╔════╝
██║ ██║██║ ██║███████╗███████╗██║ ██║██║ ██║██║ ██║███████╗
╚██╗ ██╔╝██║ ██║╚════██║╚════██║██║ ██║██║ ██║██║ ██║╚════██║
╚████╔╝ ╚██████╔╝███████║███████║╚██████╔╝██████╔╝╚██████╔╝███████║
╚═══╝ ╚═════╝ ╚══════╝╚══════╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚══════╝
███████╗██╗ ██╗███████╗███╗ ██╗████████╗██╗
██╔════╝██║ ██║██╔════╝████╗ ██║╚══██╔══╝██║
███████╗██║ ██║█████╗ ██╔██╗ ██║ ██║ ██║
╚════██║██║ ██║██╔══╝ ██║╚██╗██║ ██║ ╚═╝
███████║╚██████╔╝███████╗██║ ╚████║ ██║ ██╗
╚══════╝ ╚═════╝ ╚══════╝╚═╝ ╚═══╝ ╚═╝ ╚═╝
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░ ESCANEADOR CONCORRENTE × NUCLEI × RECON ░
░ Captura de Banner · ID de Serviço · Detecção de Vulnerabilidades ░
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
┌──────────────────────────────────────────────────────────────┐
│ │
│ Escaneie IPs aleatórios → Capture banners → Identifique │
│ serviços → Alimente Nuclei → Encontre vulnerabilidades │
│ → Lucro │
│ │
└──────────────────────────────────────────────────────────────┘
Scanner de portas concorrente de alto desempenho com captura de banner, identificação de serviços e integração com Nuclei para descoberta automatizada de vulnerabilidades em escala.
Mecanismo Principal
|
Pipeline Nuclei
|
# 1. Clone o monstro
git clone https://github.com/Usman0220/port-scanner.git && cd port-scanner
# 2. Compile
go build -o port-scanner main.go
# 3. Solte a fera — escaneie porta 5678 com 500 workers, 10k IPs
./port-scanner -port 5678 -w 500 -n 10000
# 4. Pipeline completo — escaneie → filtre → nuclei
./port-scanner -port 80 -w 1000 -n 50000 -o http-open.txt
awk -F'[|]' '{print $1}' http-open.txt | sed 's/\[OPEN\] //' | cut -d: -f1 | sort -u > http-targets.txt
nuclei -l http-targets.txt -tags http -severity critical,high -o findings.txt
╔═══════════════════════════════════╗
║ MECANISMO DO SCANNER DE PORTAS ║
╚═══════════════════════════════════╝
│
┌───────────────┼───────────────┐
▼ ▼ ▼
┌──────────────┐ ┌──────────────┐ ┌──────────────┐
│ Gerador IP │ │ Pool de │ │ Coletor de │
│ │ │ Goroutines │ │ Resultados │
│ IPs Aleatórios│ │ │ │ │
│ Ignorar │ │ N workers │ │ Canal │
│ Privados │ │ Concorrente │ │ Bufferizado │
│ 1-223.x.x.x│ └──────┬───────┘ └──────┬───────┘
└──────┬───────┘ │ │
│ │ │
▼ ▼ ▼
┌──────────────┐ ┌──────────────┐ ┌──────────────┐
│ Conexão TCP │ │ Envio de │ │ Leitura de │
│ │ │ Sonda │ │ Banner │
│ Dial com │ │ │ │ │
│ timeout │ │ Consciente │ │ Identifi- │
│ 2s padrão │ │ de Protocolo│ │ cação de │
└──────────────┘ └──────────────┘ └──────────────┘
│
╔═══════════════╧═══════════════╗
║ SAÍDA: results.txt ║
╚═══════════════╤═══════════════╝
│
┌───────────────┼───────────────┐
▼ ▼ ▼
┌──────────────┐ ┌──────────────┐ ┌──────────────┐
│ awk / grep │ │ sort -u │ │ nuclei -l │
│ Extrair IPs │ │ Deduplicar │ │ Scan Vuln │
└──────────────┘ └──────────────┘ └──────────────┘
│
╔═══════════════╧═══════════════╗
║ DESCOBERTAS: nuclei-*.txt ║
╚═══════════════════════════════╝
# ┌─────────────────────────────────────────────────────────────┐
# │ PASSO 1: ESCANEIE — Encontre serviços ativos │
# │ PASSO 2: EXTRAIA — Pegue IPs dos resultados │
# │ PASSO 3: AUDITE — Escaneie vulnerabilidades com Nuclei │
# └─────────────────────────────────────────────────────────────┘
# Escaneie
./port-scanner -port 21 -w 1000 -n 50000 -o ftp-open.txt
# Extraia
awk -F'[|]' '{print $1}' ftp-open.txt | sed 's/\[OPEN\] //' | cut -d: -f1 | sort -u > ftp-targets.txt
# Audite
nuclei -l ftp-targets.txt -tags ftp -severity critical,high -o ftp-findings.txt
#!/bin/bash
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# PIPELINE COMPLETO DE RECON — Escaneie → Extraia → Nuclei → Relatório
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
PORTS=(21 22 23 25 80 110 143 443 3306 5432 6379 8080 8443 9090 27017 5678)
WORKERS=1000
IPS=30000
SEVERITY="critical,high,medium"
TEMPLATES="$HOME/.local/nuclei-templates"
echo "╔══════════════════════════════════════════════════════════╗"
echo "║ PIPELINE COMPLETO DE RECON INICIADO ║"
echo "╚══════════════════════════════════════════════════════════╝"
for port in "${PORTS[@]}"; do
echo ""
echo "┌──────────────────────────────────────────────────────┐"
echo "│ [*] ESCANEANDO PORTA $port"
echo "│ Workers: $WORKERS | Alvos: $IPS"
echo "└──────────────────────────────────────────────────────┘"
# Escaneie
./port-scanner -port $port -w $WORKERS -n $IPS -o "scan-port${port}.txt"
# Extraia alvos
awk -F'[|]' '{print $1}' "scan-port${port}.txt" | \
sed 's/\[OPEN\] //' | cut -d: -f1 | sort -u > "targets-port${port}.txt"
count=$(wc -l < "targets-port${port}.txt")
echo "[+] Encontrados $count hosts ativos na porta $port"
# Auditoria Nuclei
if [ "$count" -gt 0 ]; then
echo "[*] Executando templates Nuclei para a porta $port..."
nuclei -l "targets-port${port}.txt" \
-p-port $port \
-t "$TEMPLATES" \
-severity $SEVERITY \
-o "nuclei-port${port}.txt" \
-silent -stats
vulns=$(wc -l < "nuclei-port${port}.txt" 2>/dev/null || echo "0")
echo "[!] $vulns vulnerabilidades encontradas na porta $port"
fi
done
# Mescle todas as descobertas
echo ""
echo "┌──────────────────────────────────────────────────────┐"
echo "│ [*] MESCLANDO TODAS AS DESCOBERTAS"
echo "└──────────────────────────────────────────────────────┘"
cat nuclei-port*.txt 2>/dev/null | sort -u > all-findings.txt
total=$(wc -l < "all-findings.txt" 2>/dev/null || echo "0")
echo ""
echo "╔══════════════════════════════════════════════════════════╗"
echo "║ PIPELINE CONCLUÍDO ║"
echo "║ Total de vulnerabilidades: $total"
echo "║ Relatório: all-findings.txt"
echo "╚══════════════════════════════════════════════════════════╝"
# ┌─────────────────────────────────────────────────────────────┐
# │ ESCANEAMENTOS NUCLEI ESPECÍFICOS POR SERVIÇO │
# └─────────────────────────────────────────────────────────────┘
# FTP — login anônimo, força bruta, CVEs conhecidos
nuclei -l targets.txt -tags ftp -severity critical,high
# SSH — cifras fracas, enumeração de usuários, CVEs
nuclei -l targets.txt -tags ssh -severity critical,high,medium
# HTTP — auditoria web completa (XSS, SQLi, LFI, RCE, configurações incorretas)
nuclei -l targets.txt -tags http -severity critical,high,medium,low
# MySQL — autenticação fraca, CVEs, configurações incorretas
nuclei -l targets.txt -tags mysql -severity critical,high
# Redis — acesso não autorizado, carregamento de módulos
nuclei -l targets.txt -tags redis -severity critical,high
# MongoDB — sem autenticação, CVEs
nuclei -l targets.txt -tags mongodb -severity critical,high
# PostgreSQL — autenticação fraca, CVEs
nuclei -l targets.txt -tags postgresql -severity critical,high
# n8n — exploit God Mode, CVE-2025-68613
nuclei -l targets.txt -tags n8n -severity critical
# Jenkins — console de scripts, CVEs
nuclei -l targets.txt -tags jenkins -severity critical,high
# Grafana — path traversal, CVEs
nuclei -l targets.txt -tags grafana -severity critical,high
# AUDITORIA COMPLETA — tudo
nuclei -l targets.txt -t ~/.local/nuclei-templates/ -severity critical,high,medium,low
./port-scanner -port 443 -w 500 -n 10000 -o results.txt
./port-scanner -port 80 -w 2000 -n 100000 -o results.txt
./port-scanner -port 5678 -w 100 -n 5000 -timeout 1s
./port-scanner -port 22 -w 200 -n 50000 -timeout 5s -o deep-scan.txt
┌──────────────────────────────────────────────────────────────────────┐
│ [*] 15234/30000 escaneados | 847 abertos | 847 verificados │
│ │
│ [OPEN] 103.21.244.12:80 | HTTP/Apache | HTTP/1.1 200 OK │
│ [OPEN] 198.51.100.45:22 | SSH | SSH-2.0-OpenSSH_8.9p1 │
│ [OPEN] 203.0.113.88:3306 | MySQL | 5.7.42-0ubuntu0.18.04.1 │
│ [OPEN] 192.0.2.15:6379 | Redis | Redis server version 7.0.11 │
│ [OPEN] 198.51.100.200:5678 | n8n | n8n v1.19.0 │
│ [OPEN] 203.0.113.55:27017 | MongoDB | MongoDB 6.0.4 │
│ [OPEN] 103.21.244.90:8080 | HTTP/Nginx | HTTP/1.1 200 OK │
│ [OPEN] 198.51.100.120:5432 | PostgreSQL | PostgreSQL 15.3 │
│ │
│ [+] Concluído. Escaneados: 30000 | Abertos: 847 | Verificados: 847 │
└──────────────────────────────────────────────────────────────────────┘
| Flag | Padrão | Descrição |
|---|---|---|
-port | 5678 | Porta alvo para escanear |
-w | 500 | Número de workers de goroutine (mais = mais rápido) |
-timeout | 2s | Timeout de conexão TCP |
-n | 10000 | Número de IPs aleatórios para escanear |
-o | "" | Caminho do arquivo de saída |
| Porta(s) | Serviço | Sonda | Impressão Digital |
|---|---|---|---|
| 21 | FTP | Banner | ProFTPD, vsftpd, Pure-FTPd |
| 22 | SSH | Banner | OpenSSH, Dropbear |
| 23 | Telnet | Banner | Generic telnetd |
| 25, 587 | SMTP | EHLO test | Postfix, Exim, Sendmail |
| 80, 8080, 8443, 443, 5678, 3000, 8000, 8888, 9090 | HTTP | GET / | Nginx, Apache, IIS, Cloudflare, n8n, Grafana, Jenkins, Kibana |
| 110 | POP3 | Banner | Dovecot, Courier |
| 143 | IMAP | Banner | Dovecot, Courier |
| 3306 | MySQL | Handshake | MySQL 5.x, 8.x |
| 5432 | PostgreSQL | Startup | PostgreSQL 12-16 |
| 6379 | Redis | INFO | Redis 6.x, 7.x |
| 27017 | MongoDB | Hello | MongoDB 5.x, 6.x, 7.x |
| Métrica | Valor |
|---|---|
| Velocidade de Escaneamento (500 workers) | ~2.500 IPs/s |
| Velocidade de Escaneamento (2000 workers) | ~10.000 IPs/s |
| Uso de Memória | ~50MB base + pool de workers |
| Timeout de Conexão | Configurável (padrão 2s) |
| Conexões Concorrentes Máximas | Ilimitado (limitado pela flag de workers) |
# Go
go version # >= 1.20
# Nuclei (opcional — para escaneamento de vulnerabilidades)
go install -v github.com/projectdiscovery/nuclei/v3/cmd/nuclei@latest
# Atualizar templates Nuclei
nuclei -update-templates
┌──────────────────────────────────────────────────────────────────────┐
│ │
│ ⚠️ AVISO │
│ │
│ Esta ferramenta é apenas para testes de segurança autorizados e │
│ pesquisa. │
│ │
│ Escanear redes sem permissão explícita é ILEGAL. │
│ Use esta ferramenta com responsabilidade e apenas em sistemas que │
│ você possui ou tem autorização por escrito para testar. │
│ │
│ O autor não se responsabiliza por qualquer uso indevido ou dano │
│ causado por esta ferramenta. │
│ │
└──────────────────────────────────────────────────────────────────────┘