Skip to main content Skills Marketplace Descubre y explora habilidades de IA creadas por la comunidad.
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Copiar promptMostrar detalles del prompt Un comando directo omite el prompt de revisión. Revisa el origen antes de ejecutarlo.
npx skills add https://github.com/CyberStrikeus/CyberStrike --skill wstg-info-04El comando permanece en una sola línea. Desplázate horizontalmente para revisarlo antes de copiarlo.
¿Prefieres una copia local? Descarga los archivos que SkillsMP tiene disponibles ahora.
Descargar Zip Descargando... Ocupaciones relacionadas SOC
Basado en la clasificación ocupacional SOC
name wstg-info-04 description Enumerate Applications on Webserver category information-gathering owasp_id WSTG-INFO-04 version 1.0.0 author cyberstrike-official tags ["recon","fingerprint","enumeration","wstg","info"] tech_stack [] cwe_ids ["CWE-200"] chains_with [] prerequisites [] severity_boost {}
wstg-info-04
Test ID
WSTG-INFO-04
Test Name
Enumerate Applications on Webserver
High-Level Description
A single web server can host multiple web applications accessible through different URLs, ports, or virtual hosts. This test aims to comprehensively discover all web applications running on the target infrastructure. Missing applications during enumeration can result in overlooking critical vulnerabilities. Applications may be hidden at non-standard URL paths, running on unusual ports, or accessible only through specific hostnames (virtual hosting).
What to Check
Discovery Vectors
Information to Gather
How to Test
Step 1: Port Scanning
Full Port Scan with Nmap
nmap -Pn -sT -sV -p0-65535 target.com
nmap -Pn -sV -p 80,443,8080,8443,8000,3000,4443,5000,9000,9443 target.com
nmap -sV --script=http-enum -p 80,443,8080,8443 target.com
nmap -sU -p 80,443,8080 target.com
Masscan for Large Ranges
masscan -p0-65535 target.com --rate=1000
masscan -p0-65535 target.com --rate=1000 --banners
Common Web Service Ports Port Common Service 80 HTTP 443 HTTPS 8080 HTTP Proxy/Tomcat 8443 HTTPS Alt 8000 Development servers 3000 Node.js/React 4443 HTTPS Alt 5000 Flask/Development 9000 PHP-FPM/SonarQube 9443 WSO2/VMware 8888 Jupyter/Alt HTTP 8081 HTTP Alt 4000 Development 5001 Development
Step 2: Non-Standard URL Enumeration
Directory Brute-forcing
gobuster dir -u https://target.com -w /usr/share/wordlists/dirb/common.txt -t 50
gobuster dir -u https://target.com -w wordlist.txt -x php,asp,aspx,jsp,html -t 50
ffuf -u https://target.com/FUZZ -w /usr/share/seclists/Discovery/Web-Content/common.txt
dirsearch -u https://target.com -e php,asp,aspx,jsp
feroxbuster -u https://target.com -w wordlist.txt
Common Application Paths
for path in admin administrator manager console portal api app webapp webmail mail owa cpanel phpmyadmin adminer jenkins gitlab sonar grafana kibana elastic; do
status=$(curl -s -o /dev/null -w "%{http_code}" "https://target.com/$path " )
echo "$path : $status "
done
Common Application URL Patterns /admin/
/administrator/
/manager/
/console/
/portal/
/api/
/api/v1/
/api/v2/
/app/
/webapp/
/webmail/
/mail/
/owa/
/cpanel/
/phpmyadmin/
/adminer/
/jenkins/
/gitlab/
/grafana/
/kibana/
/elastic/
/solr/
/sonar/
/nagios/
/zabbix/
/cacti/
/munin/
Step 3: Virtual Host Discovery
DNS Enumeration
dig NS target.com
host -t ns target.com
nslookup -type =ns target.com
dig axfr target.com @ns1.target.com
host -l target.com ns1.target.com
dig -x <target_ip>
host <target_ip>
Subdomain Enumeration
amass enum -d target.com
subfinder -d target.com
assetfinder target.com
dnsrecon -d target.com -t std
sublist3r -d target.com
Certificate Transparency
curl -s "https://crt.sh/?q=%.target.com&output=json" | jq -r '.[].name_value' | sort -u
curl -s "https://api.certspotter.com/v1/issuances?domain=target.com&include_subdomains=true" | jq '.[].dns_names[]'
Virtual Host Brute-forcing
ffuf -u https://target.com -H "Host: FUZZ.target.com" -w subdomains.txt -fs <filter_size>
gobuster vhost -u https://target.com -w subdomains.txt
python3 VHostScan.py -t target.com -w wordlist.txt
Step 4: SSL/TLS Certificate Analysis
echo | openssl s_client -connect target.com:443 2>/dev/null | openssl x509 -noout -text | grep -A1 "Subject Alternative Name"
echo | openssl s_client -connect target.com:443 2>/dev/null | openssl x509 -noout -text
openssl s_client -connect target.com:443 </dev/null 2>/dev/null | openssl x509 -noout -text | grep -E 'DNS:|Subject:'
for host in target.com www.target.com api.target.com; do
echo "=== $host ==="
echo | openssl s_client -connect $host :443 -servername $host 2>/dev/null | openssl x509 -noout -subject -ext subjectAltName
done
Step 5: Reverse IP Lookup
Step 6: Search Engine Discovery # Google dorks
site:target.com
site:*.target.com
site:target.com inurl:admin
site:target.com inurl:login
# Bing
site:target.com
ip:<target_ip>
Step 7: Verify Discovered Applications
for url in $(cat discovered_urls.txt); do
echo "=== $url ==="
curl -sI "$url " | head -10
done
cat hosts.txt | httpx -title -status-code -tech-detect
eyewitness --web -f urls.txt -d output/
Tools
Port Scanning Tool Description Usage Nmap Network scanner nmap -sV -p- target.comMasscan Fast port scanner masscan -p0-65535 target.comRustScan Fast scanner + Nmap rustscan -a target.comZmap Internet-wide scanner zmap -p 80 target.com/24
Directory/Application Discovery Tool Description Usage Gobuster Directory brute-forcer gobuster dir -u target.com -w wordlist.txtffuf Fast web fuzzer ffuf -u target.com/FUZZ -w wordlist.txtDirsearch Directory scanner dirsearch -u target.comFeroxbuster Recursive scanner feroxbuster -u target.comDirb Directory scanner dirb https://target.com
Subdomain/Virtual Host Discovery Tool Description Usage Amass Subdomain enumeration amass enum -d target.comSubfinder Subdomain discovery subfinder -d target.comDNSRecon DNS enumeration dnsrecon -d target.comSublist3r Subdomain enumeration sublist3r -d target.comAssetfinder Find domains assetfinder target.com
Verification/Analysis Tool Description Usage httpx HTTP toolkit cat hosts.txt | httpxEyeWitness Screenshot tool eyewitness -f urls.txtAquatone Screenshot tool cat hosts.txt | aquatoneWhatWeb Tech identifier whatweb target.com
Online Services Service URL Purpose Shodan shodan.io Host discovery Censys censys.io Certificate search crt.sh crt.sh CT logs ViewDNS viewdns.info Reverse IP SecurityTrails securitytrails.com DNS history
Example Commands/Payloads
Comprehensive Enumeration Script #!/bin/bash
TARGET=$1
echo "=== APPLICATION ENUMERATION ==="
echo "Target: $TARGET "
echo ""
echo "[+] Port Scanning..."
nmap -sV -p 80,443,8080,8443,8000,3000,4443,5000,9000 $TARGET -oN nmap_web.txt
echo "[+] Subdomain Enumeration..."
subfinder -d $TARGET -o subdomains.txt
amass enum -passive -d $TARGET >> subdomains.txt
sort -u subdomains.txt -o subdomains.txt
echo "[+] Certificate Analysis..."
echo | openssl s_client -connect $TARGET :443 2>/dev/null | openssl x509 -noout -text | grep -E 'DNS:|Subject:' > cert_info.txt
echo "[+] Zone Transfer Attempt..."
for ns in $(dig NS $TARGET +short); do
dig axfr $TARGET @$ns
done
echo "[+] Directory Enumeration..."
gobuster dir -u https://$TARGET -w /usr/share/seclists/Discovery/Web-Content/common.txt -o dirs.txt -q
echo "[+] Virtual Host Discovery..."
ffuf -u https://$TARGET -H "Host: FUZZ.$TARGET " -w /usr/share/seclists/Discovery/DNS/subdomains-top1million-5000.txt -o vhosts.txt -fs 0
echo "[+] Verifying Hosts..."
cat subdomains.txt | httpx -silent -title -status-code -tech-detect -o live_hosts.txt
echo "[+] Enumeration Complete"
Nmap Web Service Detection
nmap -sV -p- --script=http-title,http-server-header target.com
nmap -p 80,443,8080,8443 --script=http-enum,http-headers,http-methods target.com
nmap -p 80,443 --script=http-generator,http-php-version target.com
Mass Virtual Host Check #!/bin/bash
IP=$1
DOMAIN=$2
WORDLIST=$3
while read subdomain; do
host="$subdomain .$DOMAIN "
response=$(curl -s -H "Host: $host " -o /dev/null -w "%{http_code}:%{size_download}" http://$IP )
code=$(echo $response | cut -d: -f1)
size=$(echo $response | cut -d: -f2)
echo "$host - Status: $code , Size: $size "
done < $WORDLIST
Aquatone Pipeline
cat domains.txt | amass enum -passive -df - | httpx -silent | aquatone -out screenshots/
Remediation Guide
1. Application Inventory
Maintain comprehensive documentation of all web applications
Include URLs, ports, hostnames, and responsible teams
Regular audits to identify undocumented applications
Implement change management for new applications
2. Network Segmentation # Example: Separate admin interfaces
- Public applications: DMZ segment
- Admin interfaces: Internal network only
- Development: Isolated segment
3. Access Control
Restrict administrative interfaces to internal networks
Implement IP whitelisting where possible
Use VPN for remote admin access
Enable authentication for all applications
4. DNS Security
zone "example.com" {
type master;
file "example.com.zone" ;
allow-transfer { none; };
allow-transfer { 192.168.1.2; };
};
5. Port Management
Close unnecessary ports
Use firewall rules to restrict access
Monitor for new services
Regular port audits
6. Virtual Host Configuration # Apache - Disable default vhost response
<VirtualHost *:80>
ServerName default.invalid
Redirect 404 /
</VirtualHost>
# nginx - Default server block
server {
listen 80 default_server;
server_name _;
return 444;
}
7. Monitoring
Implement logging for all web services
Monitor for unauthorized applications
Alert on new services starting
Regular security scans
Risk Assessment
CVSS Score CVSS Vector : CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Metric Value Description Attack Vector Network Accessible via internet Attack Complexity Low Standard enumeration techniques Privileges Required None No authentication needed User Interaction None No user interaction required Scope Unchanged Impact scope unchanged Confidentiality Low Application existence disclosure Integrity None No integrity impact Availability None No availability impact
Severity Levels Finding Severity Description Public applications discovered Info Normal discovery Admin interface on non-standard port Low Obscurity is not security Unprotected admin interface High Direct administrative access Development/staging exposed Medium Potentially vulnerable apps Undocumented applications Medium Shadow IT risk
CWE Categories CWE ID Title Description CWE-200 Exposure of Sensitive Information Application enumeration disclosure CWE-16 Configuration Improper server configuration CWE-693 Protection Mechanism Failure Lack of access controls CWE-284 Improper Access Control Insufficient access restrictions
References
OWASP References
Tools Documentation
Wordlists
Checklist [ ] Full port scan completed (all 65535 ports)
[ ] Common web ports verified
[ ] Non-standard URL paths enumerated
[ ] Subdomain enumeration performed
[ ] DNS zone transfer attempted
[ ] Certificate transparency checked
[ ] SSL/TLS certificates analyzed for SANs
[ ] Virtual host brute-forcing completed
[ ] Reverse IP lookup performed
[ ] Search engine reconnaissance done
[ ] All discovered applications documented
[ ] Applications verified and accessible
[ ] Technologies identified per application
[ ] Screenshots captured (EyeWitness/Aquatone)
[ ] Risk assessment completed
[ ] Findings documented