Web fingerprinting

From ShulkwiSEC/bb-huge · View interactive version

Web fingerprinting is an AI agent skill from the GitHub repository ShulkwiSEC/bb-huge. Identify web server type/version, framework, and application entry points via banner grabbing, HTTP header analysis (Server, X-Powered-By, X-Generator), cookie names (CAKEPHP, laravel_session, wp-settings), HTML meta generators, robots.txt, source map files (.map), JS hardcoded secrets, and Google d

How to use this skill

Skill file

Web Fingerprinting and Information Gathering

What Is Broken and Why

Web applications leak technology stack details through HTTP response headers, HTML comments,

cookie names, error messages, and static file paths. Search engines and archives may index

sensitive configuration files, credentials, and internal network diagrams. Collectively this

intelligence narrows an attacker's target surface dramatically before any active exploitation

begins, enabling precise selection of known CVEs for the identified stack.

Key Signals

Methodology

  1. Passive recon: Run Google dorks against the target domain using site:, inurl:,

filetype:, intitle:, intext: operators. Check Internet Archive Wayback Machine and Shodan.

  1. Banner grabbing: Send raw HTTP/HTTPS requests and record Server:, X-Powered-By:,

ETag, header ordering, and error page footers.

  1. Malformed request probing: Send invalid HTTP version strings to trigger version-revealing

error pages.

  1. Cookie analysis: Capture Set-Cookie headers across all application sections; match names

against known framework signatures.

  1. HTML/JS source review: Spider the application, download all .js files, search for

credentials patterns, internal hostnames, API endpoints.

  1. Source map detection: Append .map to discovered JS filenames; if 200 OK, parse sources

array for internal paths.

  1. Entry point mapping: Use intercepting proxy to record all GET/POST parameters, hidden

fields, custom headers, and WebSocket frames.

  1. Dirbusting: Request framework-specific paths identified in step 4; compare HTTP response

codes to confirm technology.

Payloads & Tools

# Banner grabbing over HTTP
curl -I http://TARGET/

# Banner grabbing over HTTPS
openssl s_client -connect TARGET:443 -quiet | head -20

# Malformed request to trigger error page
printf 'GET / SANTA CLAUS/1.1\r\nHost: TARGET\r\n\r\n' | nc TARGET 80

# Nikto scan
nikto -h http://TARGET/

# WhatWeb fingerprint
whatweb -a 3 http://TARGET/

# Nmap service/version detection
nmap -sV -p 80,443,8080,8443 TARGET

# Find source maps
curl -s http://TARGET/static/app.js.map | python3 -m json.tool | grep sources

# Google dork examples (replace TARGET with actual domain)
# site:TARGET filetype:env
# site:TARGET inurl:admin
# site:TARGET intitle:"index of"
# site:TARGET filetype:sql

# Check robots.txt
curl -s http://TARGET/robots.txt

# Retrieve archived URLs
waybackurls TARGET | grep -E '\.(php|asp|aspx|jsp|config|bak|sql|env)'

Bypass Techniques

header ordering, ETag format, and error page HTML structure.

Exploitation Scenarios

Scenario 1 — Version to CVE

Setup: Target running Apache/2.4.41 revealed via Server: header.

Trigger: Cross-reference with CVE database; identify known RCE for that minor version.

Impact: Targeted exploitation without broad scanning.

Scenario 2 — Hardcoded AWS Key

Setup: JS source map exposes src/config/aws.js with accessKeyId and secretAcccessKey.

Trigger: Extract keys, configure AWS CLI with stolen credentials.

Impact: Full cloud account takeover, data exfiltration, infrastructure control.

Scenario 3 — Hidden Admin Panel

Setup: robots.txt lists Disallow: /admin-legacy/. Framework cookies confirm WordPress.

Trigger: Navigate to /admin-legacy/; attempt default or leaked credentials.

Impact: Unauthenticated or low-effort admin access.

False Positives

Fix Patterns

Related Skills

Fingerprinting is the entry point that directs all further testing. Once the stack is identified, move to [[auth-bypass]] if an admin panel is exposed, or [[sql-injection]] if the framework version has a known SQLi vulnerability. If a CMS login is found, [[default-credentials]] is the immediate next step. Source maps and hardcoded secrets discovered here can feed directly into [[business-logic-flaws]] by revealing undocumented API endpoints.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.