Skip to content
Visual explainer 2h 30m to learn 4 steps

Footprinting an authorized target

Build a picture of an authorized target's technology and exposure.

By Invicly Tech, , in Ethical Hacking & Penetration Testing. About 9 minutes to read.

Topic 8 of 32

In short

Footprinting assembles recon findings into a clear picture of an authorized target's technology and exposure. Identifying frameworks, exposed services and the overall attack surface tells you where to focus the later, active phases.

Explained simply

After recon you have lists: names, IPs, documents, technologies. Footprinting is the step where you turn those lists into a picture. What does the client expose to the internet, what software runs it, and which parts look weakest?

It is like a builder walking around a house before a renovation. They note every door and window, the type of locks, which walls look old. They do not break anything yet; they plan where to look closely.

Technology identification is a big part of it. HTTP headers, cookie names, error pages and certificates all give hints. A cookie called JSESSIONID suggests Java. A header saying Server: nginx/1.18.0 names the web server and its version.

Some of this is passive (search engines and Shodan's stored data), and some is active, because you send normal web requests to the client's servers. Active requests need to be in scope. The output is a short attack surface summary the client can read and act on.

Press Play on a diagram to walk through it one step at a time.

FlowFootprinting
  1. Step 1
    Collect

    Gather recon data.

  2. Step 2
    Identify tech

    Frameworks and versions.

  3. Step 3
    Map surface

    Exposed hosts and services.

  4. Step 4
    Summarise

    Brief the client.

ComparePassive and active footprinting sources
Passive (no contact)
  • Shodan and Censys data
  • Search results and archives
  • CT logs and DNS data
  • Job adverts and docs
Active (in scope only)
  • HTTP headers with curl
  • whatweb fingerprinting
  • TLS certificate details
  • robots.txt and error pages

In depth

Reading technology from normal responses

A single HTTP request reveals a lot. The Server header may name the web server and version. X-Powered-By may name the language or framework, such as PHP/8.1 or Express. Session cookie names are strong hints: PHPSESSID (PHP), JSESSIONID (Java), ASP.NET_SessionId (ASP.NET), connect.sid (Node.js Express), laravel_session (Laravel), csrftoken (often Django).

Other clues: the TLS certificate's Subject Alternative Names list other hostnames on the same certificate; default error pages identify the server; robots.txt and sitemap.xml list paths the site owner thinks about; HTML comments and JavaScript file names can reveal frameworks and build tools. Browser extensions like Wappalyzer and the command-line tool whatweb automate this recognition.

  • Server and X-Powered-By headers
  • Session cookie names
  • Certificate Subject Alternative Names
  • Error pages, robots.txt, sitemap.xml
  • Script names and HTML comments

Exposure from public scan data

Services like Shodan and Censys scan the whole internet all the time and store what they find: open ports, banners, certificates and screenshots. Searching them for the client's IP ranges or organisation name shows what has been exposed, without you scanning anything. Typical surprises are a remote desktop port, an old database, a forgotten admin panel or a camera.

Treat this data as a lead, not a fact. It may be weeks old, and the service may have moved or closed. You confirm it later with your own authorised scan. The same data is available to attackers, which is why it belongs in the report: "this is what anyone on the internet can already see about you".

Building the attack surface map

Put every asset in one table: hostname, IP, owner, in scope or not, open services, technology and version, and notes. Then rank where to focus. High-interest items are login pages and single sign-on portals, admin panels, APIs, file upload features, remote access (VPN, RDP, SSH), anything that looks like a test or staging system, and software with old versions.

Also note what is missing. If a domain has no DMARC record, or a site has no HTTPS redirect, those are findings even before active testing. The map becomes the test plan for scanning and web testing, and it shows the client what you will look at and why.

MapAn attack surface map for one client
example.com exposure
  • Web apps
    • www (WordPress)
    • app (React + API)
    • staging (old build)
  • Remote access
    • vpn portal
    • SSH on a jump host
  • Email
    • Microsoft 365 via MX
    • No DMARC record
  • Third parties
    • help desk SaaS
    • CDN in front of www
  • Unexpected
    • Admin panel on port 8080
    • Database port in Shodan

Summarising for the client and fixing exposure

Clients often do not know their own footprint, so the summary is valuable on its own. Keep it short: how many hosts and services are exposed, which ones look most risky and why, which assets you found that were not in their inventory, and what you will test next. Avoid jargon in the first paragraph; a manager should understand it.

Pair every exposure with a defensive step. Remove version numbers from banners (Apache: ServerTokens Prod and ServerSignature Off; nginx: server_tokens off; PHP: expose_php = Off). Put admin panels behind a VPN or an IP allowlist. Shut down or protect staging systems. Keep an asset inventory and run attack surface monitoring, so the client sees new exposure before attackers do.

  • Apache: ServerTokens Prod, ServerSignature Off
  • nginx: server_tokens off;
  • PHP: expose_php = Off
  • Admin panels behind VPN or IP allowlist
  • Keep an asset inventory and monitor it

Learn it in 4 short steps

About 40m each. Track them with a timer in your plan.

  1. 1
    Identify technologies in use~40m
  2. 2
    Note exposed services from public data~40m
  3. 3
    Map the attack surface~40m
  4. 4
    Summarise findings for the client~40m

Key points

  • Footprinting turns scattered recon into a clear picture.
  • Identifying technology narrows where to look next.
  • The attack surface is everything exposed to test.
  • Summarise exposure clearly for the client.

Key terms

Tap a card to flip it. 0/4 known

Examples

Fingerprint a lab web app with a few requests

Your lab runs DVWA at 192.168.56.102. Step 1: fetch only the headers with curl -I. Step 2: note the Server and X-Powered-By values and the cookie names. Step 3: run whatweb at its gentlest level (one request) for a summary. Step 4: check robots.txt. Step 5: write one line in your attack surface table, for example: Apache 2.4, PHP, PHPSESSID cookie, login page at /login.php.

bash
T=http://192.168.56.102    # lab target in scope
curl -sI "$T/" | grep -Ei '^(server|x-powered-by|set-cookie):'
whatweb -a 1 "$T/"
curl -s "$T/robots.txt"
# Record: host, server, language, cookies, interesting paths

Read the certificate for extra hostnames

An in-scope HTTPS site may share a certificate with other names. Step 1: connect with openssl and print the certificate's subject, issuer and Subject Alternative Names. Step 2: the SAN list shows other hosts, for example mail and intranet names. Step 3: add any new names to your list as "to confirm with the client", because sharing a certificate does not prove they are in scope. Step 4: note the issuer and the expiry date; an expired or self-signed certificate is a small finding of its own.

bash
H=www.example.com
echo | openssl s_client -connect "$H:443" -servername "$H" 2>/dev/null \
  | openssl x509 -noout -subject -issuer -enddate -ext subjectAltName

Quick reference

  • curl -sI URL shows response headers such as Server and Set-Cookie
  • whatweb -a 1 URL fingerprints a site with a single request
  • PHPSESSID = PHP, JSESSIONID = Java, ASP.NET_SessionId = .NET, connect.sid = Express
  • openssl s_client plus x509 -ext subjectAltName lists names on a certificate
  • Shodan and Censys show past exposure without you sending traffic
  • Hide versions: ServerTokens Prod (Apache), server_tokens off (nginx), expose_php = Off
  • Rank focus: logins, admin panels, APIs, uploads, remote access, staging

Quick quiz

Pick an answer to see if you're right and why.

Question 1

1A site sets a cookie called JSESSIONID. What does that suggest?

Question 2

2Shodan shows port 3389 open on a client IP. What should you do?

Question 3

3Which nginx setting hides the version number in the Server header?

Question 4

4Why does footprinting with curl and whatweb require scope?

Question 5

5What is the best first line of a footprinting summary for a client manager?

0/5 answered

Practice exercises

Try each one yourself first. Use the hint if you get stuck, then compare with the solution.

  1. Exercise 1easy

    Run Juice Shop or DVWA locally and identify its web server, language or framework from headers and cookies alone.

  2. Exercise 2medium

    Create an attack surface table (CSV) for your lab with at least four assets and rank them by interest.

  3. Exercise 3hard

    Harden a test nginx container so its responses reveal less, and prove the difference with curl before and after.

Check yourself

Answer in your head, reveal, then be honest with yourself.

Feel confident about this topic?

Frequently asked questions

What is the difference between footprinting and reconnaissance?
Recon is collecting information. Footprinting is organising that information into a profile of the target's technology and exposure, which then guides scanning.
Does hiding version numbers make a server secure?
No. It only removes an easy hint; attackers can still test for flaws directly. Patching is the real fix, and hiding versions is a small extra layer.
Is Wappalyzer passive?
It reads the pages your browser already loads, so it adds little traffic, but you are still visiting the target's site. Use it only on sites you are allowed to test or normally browse.
ShareXLinkedInWhatsApp