Skip to content
Pwnversity
RECON-FINGERPRINTintermediate · 7 min · upd. 2026-11

Technology Fingerprinting

T1592.002

Before attacking a website or a service you need to know what it’s built with: which server, framework, CMS, libraries and versions, and what sits in front of it (WAF, CDN, proxy). Each answer shapes the attack: a WordPress site is attacked differently from a Spring Boot app, and an exact, outdated version is often the shortest path to exploitation. It’s cheap and fast, so it comes before any fuzzing.

flowchart LR
    A["Headers and cookies"] --> D["Stack hypothesis"]
    B["HTML, JS and files"] --> D
    C["Errors and default paths"] --> D
    D --> E["Exact version"]
    E --> F["Public exploits and CVEs"]
    D --> G["Vectors per architecture"]
  • Web server (nginx, Apache, IIS) and its version.
  • Language and framework (PHP/Laravel, Python/Django, Node/Express, .NET, Java/Spring). Each one’s full fingerprint is in web architectures.
  • CMS (WordPress, Joomla, Drupal) and, above all, its plugins and themes.
  • Front end (React, Angular, Vue, Next.js) and JS libraries with versions.
  • WAF and CDN in front (Cloudflare, Akamai, Imperva). See WAF evasion.
  • Infrastructure: cloud provider, load balancers, reverse proxies.
Header What it gives away
Server Software and sometimes version (Apache/2.4.49 (Unix), Microsoft-IIS/10.0).
X-Powered-By Language or framework (PHP/8.1.2, Express, ASP.NET, Next.js).
X-AspNet-Version · X-AspNetMvc-Version Exact .NET version.
X-Generator · X-Drupal-Cache · X-Drupal-Dynamic-Cache CMS.
Via · X-Cache · CF-RAY · X-Amz-Cf-Id Proxies and CDNs (Cloudflare, CloudFront…).
CSP, HSTS, X-Frame-Options, X-Content-Type-Options Not the technology, but the team’s security maturity.
Cookie Likely technology
PHPSESSID PHP (WordPress, custom apps)
laravel_session · XSRF-TOKEN Laravel
JSESSIONID Java (Tomcat, Spring, WebLogic)
ASP.NET_SessionId · .AspNetCore.* ASP.NET / ASP.NET Core
csrftoken + sessionid Django
connect.sid Express (express-session)
_<app>_session Ruby on Rails
File What it reveals
robots.txt · sitemap.xml Paths they don’t want indexed (panels, APIs, environments).
/.well-known/ Standard metadata: security.txt, OpenID configuration (openid-configuration), JWT public keys.
README, CHANGELOG, readme.html, license.txt Exact product version (WordPress exposes readme.html).
<meta name="generator"> CMS and version.
Static assets with ?ver=x.y.z WordPress plugin and theme versions.
Comments in HTML and JS Internal paths, developer names, TODOs.

Default error pages are the most reliable fingerprint: Tomcat’s 404 page, Spring Boot’s “Whitelabel Error Page”, Django’s yellow debug page, the Werkzeug traceback or IIS’s error page. Request a non-existent path, a parameter of the wrong type or a disallowed method, and see what comes back. Note the input that triggered the error: it’s often the vector.

The favicon hash identifies products even when banners are hidden, and lets you find all the infrastructure using the same icon, sometimes including the origin IP behind a CDN (see Shodan):

Ventana de terminal
# Shodan-style hash (mmh3 over the base64 favicon with line breaks)
python3 -c "import mmh3,base64,requests; print(mmh3.hash(base64.encodebytes(requests.get('https://target/favicon.ico').content)))"
# then, in Shodan: http.favicon.hash:<value>
Ventana de terminal
whatweb -a 3 https://target # -a 3: more aggressive, more clues
httpx -l hosts.txt -td -title -sc -server # inventory: tech, title, status, server
wafw00f https://target # is there a WAF in front?
nuclei -t http/technologies/ -u https://target # template-based detection

Wappalyzer (extension or CLI) gives a visual summary of the stack as you browse.

Manual checks with curl:

Ventana de terminal
curl -sI https://target # Server, X-Powered-By, Set-Cookie
curl -s https://target | grep -iE 'generator|wp-content|_next|__NEXT_DATA__|csrf'
curl -s https://target/robots.txt; curl -s https://target/sitemap.xml
curl -si https://target/does-not-exist-$(date +%s) | head -40 # default error page (GET: headers and body)
CMS Scanner Example
WordPress wpscan wpscan --url https://target --enumerate vp,vt,u
Drupal droopescan droopescan scan drupal -u https://target
Joomla joomscan joomscan -u https://target

In a CMS, the core version matters less than the plugins’: that’s where almost all vulnerabilities show up.

The real goal of fingerprinting is an exact version to cross-check against vulnerability databases.

  1. Pin down the version. “Apache 2.4” is useless; “Apache 2.4.49” isn’t. Cross-check several sources (header, CHANGELOG, static files), because the banner can be faked or removed.
  2. Search Exploit-DB (offline with searchsploit), NVD and GitHub Advisories.
  3. Read the exploit before running it: what it does, which parameters it expects, whether it’s Python 2 or 3, which paths it assumes.
  4. Adapt it: it almost never works as is (paths, port, LHOST, headers, Python version). Adapting it is part of the job.
Ventana de terminal
searchsploit apache 2.4.49 # search
searchsploit -x 50383 # read it without copying
searchsploit -m 50383 # copy it to the current directory to adapt it
  • Trusting the banner blindly: Server can be faked or removed.
  • Mistaking the CDN for the real stack (you see cloudflare and not the origin technology).
  • Settling for the framework version and ignoring plugins and libraries, which are usually the weak spot.
  • Not repeating the fingerprint per subdomain, port and vhost: each may run a different stack.
  • Running a public exploit without reading it.

Shrink the footprint: hide or normalise version headers (Server, X-Powered-By, X-AspNet-Version), remove the meta generator and readme/CHANGELOG files from the webroot, customise error pages, disable debug mode and, above all, keep everything updated so the leaked version isn’t vulnerable. Fingerprinting can’t be fully prevented, but it can be made more expensive.

  • HTTP headers (Server, X-Powered-By, session cookies, CDN).
  • Clues in HTML/JS (generator, paths, ?ver=, comments).
  • robots.txt, sitemap.xml, /.well-known/, README/CHANGELOG.
  • Default error page triggered and noted.
  • whatweb / httpx / Wappalyzer on every host, port and vhost.
  • CMS, plugins and themes identified (wpscan, droopescan, joomscan).
  • WAF/CDN identified (wafw00f).
  • Exact version cross-checked and matched to exploits, read before running.