pentesting, updated

Fingerprint the web server

Identify the web server software and version through banners, malformed requests and automated tools.

Goal

Determine the web server product and version, so you can map it to known vulnerabilities and expected behaviour.

How to test

Banner grabbing — read the Server and X-Powered-By headers:

curl -sI https://example.com                     # response headers only
openssl s_client -connect example.com:443        # then type: HEAD / HTTP/1.0
nmap -sV -p 80,443 example.com                    # service/version detection

Malformed requests — servers often reveal themselves in error pages:

printf 'GET / SANTA CLAUS/1.1\r\nHost: example.com\r\n\r\n' | nc example.com 80

Compare the error page wording and header ordering against known server signatures.

Automated — Netcraft, nikto -h https://example.com, and nmap NSE. See nmap.

What to look for

A concrete product + version (e.g. nginx/1.18.0, Apache/2.4.29), reverse proxies or WAFs in front, and version/wording mismatches that hint at a load balancer.

Notes

The Server header is easily spoofed or stripped — corroborate with error-page behaviour and header ordering rather than trusting it alone.

References

§ home
~/knubertus/home/
1,1 Top