Skip to content

Latest commit

 

History

History
463 lines (348 loc) · 8.63 KB

File metadata and controls

463 lines (348 loc) · 8.63 KB

🎯 RED TEAM RECONNAISSANCE - Checklist Completa

Por: @3diklab Basada en: años de experiencia + Metodología OSCP Versión: 1.0 (Nov 2025)


🔍 FASE 1: PASSIVE RECONNAISSANCE

Objetivo: Recopilar información SIN interactuar directamente con el objetivo.

1.1 OSINT (Open Source Intelligence)

  • WHOIS Lookup

    whois target.com

    Información: registrador, fechas, contactos

  • Subdomain Enumeration

    subfinder -d target.com -o subdomains.txt
    amass enum -d target.com
  • Google Dorking

    site:target.com filetype:pdf
    site:target.com inurl:admin
    site:target.com ext:php
  • Shodan/Censys

    # Buscar servicios expuestos
    shodan search "hostname:target.com"
  • Certificate Transparency Logs

    # crt.sh para encontrar subdominios
    curl -s "https://crt.sh/?q=%25.target.com&output=json" | jq
  • Email Harvesting

    theHarvester -d target.com -b all
  • GitHub/GitLab Reconnaissance

    # Buscar código, credenciales, config files
    site:github.com "target.com" password
    site:github.com "target.com" api_key

1.2 DNS Enumeration

  • DNS Records

    dig target.com ANY
    dig target.com MX
    dig target.com TXT
  • Zone Transfer Attempt

    dig axfr @ns1.target.com target.com
  • DNS Bruteforce

    dnsrecon -d target.com -t brt -D /usr/share/wordlists/dnsmap.txt

⚡ FASE 2: ACTIVE RECONNAISSANCE

Objetivo: Escaneo directo para descubrir hosts y puertos.

2.1 Host Discovery

  • Ping Sweep

    nmap -sn 192.168.1.0/24
  • ARP Scan (red local)

    arp-scan -l
    netdiscover -r 192.168.1.0/24

2.2 Port Scanning (CRÍTICO)

Workflow Recomendado: Masscan → Nmap

  • Fast Scan (Masscan)

    sudo masscan 10.10.10.8 -p1-65535 --rate=10000

    ⏱️ Duración: 6-10 segundos

  • Deep Scan (Nmap con puertos descubiertos)

    nmap -p 22,80,443 -sCV -T4 -oA nmap_deep 10.10.10.8

    📝 Script: Usa masscan_to_nmap.sh para automatizar

Escaneo UDP (No olvidar)

  • Top 100 UDP Ports
    sudo nmap -sU --top-ports 100 -v 10.10.10.8

2.3 Service Version Detection

  • Nmap Service/Version Detection

    nmap -sV -p- --version-intensity 9 10.10.10.8
  • Banner Grabbing Manual

    nc 10.10.10.8 22
    telnet 10.10.10.8 80

🔧 FASE 3: SERVICE ENUMERATION

Objetivo: Enumerar servicios específicos en profundidad.

3.1 Web Services (HTTP/HTTPS)

  • Directory/File Fuzzing

    gobuster dir -u http://target.com -w /usr/share/wordlists/dirb/common.txt
    ffuf -u http://target.com/FUZZ -w wordlist.txt -fc 404
  • Technology Detection

    whatweb http://target.com
    wappalyzer  # Extensión de navegador
  • Nikto Scan

    nikto -h http://target.com
  • WordPress Enumeration (si aplica)

    wpscan --url http://target.com --enumerate u,p,t
  • Subdomain Fuzzing

    ffuf -u http://FUZZ.target.com -w subdomains.txt -fc 404

3.2 SMB (139, 445)

  • SMB Version Detection

    nmap -p 445 --script smb-os-discovery 10.10.10.8
  • List Shares

    smbclient -L //10.10.10.8/ -N
    enum4linux -a 10.10.10.8
  • Vuln Scan (EternalBlue)

    nmap -p 445 --script smb-vuln-ms17-010 10.10.10.8
  • Connect to Share

    smbclient //10.10.10.8/share -U username

3.3 FTP (21)

  • Anonymous Login

    ftp 10.10.10.8
    # User: anonymous / Pass: anonymous
  • FTP Banner

    nc 10.10.10.8 21

3.4 SSH (22)

  • SSH Banner

    nc 10.10.10.8 22
  • SSH Key Enumeration

    nmap -p 22 --script ssh-hostkey 10.10.10.8

3.5 LDAP/AD (389, 636, 3268)

  • LDAP Anonymous Bind

    ldapsearch -x -h 10.10.10.8 -s base
  • Enum Users (AD)

    enum4linux -U 10.10.10.8
    crackmapexec smb 10.10.10.8 -u '' -p '' --users
  • Bloodhound (si tienes credenciales)

    bloodhound-python -u user -p pass -d domain.local -ns 10.10.10.8

3.6 MySQL/PostgreSQL/MSSQL (3306, 5432, 1433)

  • MySQL Remote Access

    mysql -u root -p -h 10.10.10.8
  • Nmap DB Scripts

    nmap -p 3306 --script mysql-enum 10.10.10.8
    nmap -p 1433 --script ms-sql-info 10.10.10.8

3.7 NFS (2049)

  • Show Mounts

    showmount -e 10.10.10.8
  • Mount Share

    mkdir /mnt/nfs
    mount -t nfs 10.10.10.8:/share /mnt/nfs

3.8 SNMP (161)

  • SNMP Walk

    snmpwalk -c public -v1 10.10.10.8
  • SNMP Brute

    onesixtyone -c community.txt 10.10.10.8

🎯 FASE 4: VULNERABILITY ASSESSMENT

Objetivo: Identificar vulnerabilidades explotables.

4.1 Version Research

  • SearchSploit

    searchsploit apache 2.4.49
  • Google CVE Search

    site:cve.mitre.org "OpenSSH 7.4"
  • GitHub Exploits

    site:github.com exploit "service version"

4.2 Web Vulnerabilities

  • SQL Injection

    sqlmap -u "http://target.com/page?id=1" --dbs
  • XSS Testing

    <script>alert('XSS')</script>
    <img src=x onerror=alert('XSS')>
    
  • LFI/RFI Testing

    /page?file=../../../../etc/passwd
    /page?file=php://filter/convert.base64-encode/resource=index.php
    

4.3 Misconfigurations

  • Default Credentials

    # Probar: admin/admin, root/root, tomcat/tomcat, etc.
    hydra -L users.txt -P passwords.txt service://target
  • Exposed Files

    # /.git, /.env, /backup, /config.php, etc.
    ffuf -u http://target.com/FUZZ -w sensitive-files.txt

4.4 Automated Scanners

  • Nmap Vuln Scripts

    nmap --script vuln --script-args=unsafe=1 -p<ports> 10.10.10.8
  • Nuclei (Recomendado)

    nuclei -u http://target.com -severity critical,high

📝 FASE 5: DOCUMENTATION

Objetivo: Documentar TODO para reporte y explotación.

5.1 Screenshot Everything

  • Nmap scan results
  • Web directory enumeration
  • Vulnerable service versions
  • Proof of vulnerabilities (PoC)
  • Credentials found

5.2 Note Credentials

  • Formato estructurado:
    Service: SSH
    Host: 10.10.10.8
    User: admin
    Pass: password123
    Notes: Found in /backup/config.txt
    

5.3 Map Attack Surface

  • Lista de todos los servicios expuestos
  • Versiones de software
  • Posibles vectores de ataque
  • Prioridad de explotación

5.4 Track Exploitation Attempts

  • Log de intentos:
    [2025-11-02 10:30] Intentado exploit MS17-010 → Fallido
    [2025-11-02 10:45] SQLi en /login.php → ÉXITO
    [2025-11-02 11:00] Reverse shell obtenida
    

✅ CHECKLIST RÁPIDA (Resumen)

1. PASSIVE RECON
   ✓ WHOIS, Subdominios, Google Dorking, Shodan
   ✓ DNS enum, Zone Transfer, Certificate Logs

2. ACTIVE RECON
   ✓ Masscan (fast) → Nmap (deep)
   ✓ UDP scan (top 100 ports)
   ✓ Service version detection

3. SERVICE ENUM
   ✓ Web: gobuster, ffuf, nikto
   ✓ SMB: enum4linux, smbclient
   ✓ Servicios específicos por puerto

4. VULNERABILITY ASSESSMENT
   ✓ SearchSploit, CVE research
   ✓ SQLi, XSS, LFI/RFI testing
   ✓ Default creds, misconfigurations
   ✓ Automated scanners (nuclei, nmap vuln)

5. DOCUMENTATION
   ✓ Screenshots de EVERYTHING
   ✓ Credenciales encontradas
   ✓ Mapeo de superficie de ataque
   ✓ Log de intentos de explotación

🚀 Scripts Automatizados

masscan_to_nmap.sh

Combina la velocidad de Masscan con la precisión de Nmap.

./masscan_to_nmap.sh 10.10.10.8

Plantilla Obsidian/Notion

Para documentar máquinas en formato estructurado:

# Machine: [nombre]
## Info
- IP: 10.10.10.8
- OS: Linux/Windows
- Difficulty: Easy/Medium/Hard

## Enumeration
[Pegar outputs]

## Exploitation
[Pasos detallados]

## Privilege Escalation
[Vectores + comandos]

## Flags
- User: [hash]
- Root: [hash]

⚠️ DISCLAIMER

Esta checklist es para:

  • ✅ Entrenamiento personal (HTB, THM, labs)
  • ✅ Pentesting autorizado por contrato
  • ✅ Certificaciones (OSCP, etc.)

Uso no autorizado = ILEGAL


Sígueme para más contenido:

¿Preguntas? Comenta en TikTok 👇