Skip to content
PURPLEDUEL

Public documents talk

Recon & Scanning · medium level · 5 objectives · 510 XP in total

You have downloaded the PDFs that Studio Ferri publishes on its website: a price list, a press release, a brochure. The text you read is harmless, but a file carries far more than that. Find out what it gives away and whether what you find can be reached from outside.

Lab 8 of 10 in the Recon & Scanning path. If you get stuck you have 3 hints, from the vaguest to the most precise: they cost 0, 40 and 100 XP.

What you learn

Objectives complete themselves while you work in the terminal; each one is worth experience points:

  • Read the firm’s org chart (50 XP)
  • Find out what kind of file the price list is (60 XP)
  • Read the strings hidden in the price list (120 XP)
  • Check whether the internal server’s name resolves from outside (100 XP)

Topics: recon, osint, metadati, strings.

Commands you will use

The terminal is simulated and understands about forty Linux commands. In this lab you will mostly need these:

  • cat: prints the contents of a file: the most direct way to read configurations, notes and logs.
  • file: recognises what kind of file you are looking at (text, executable, image) from its contents, not its name.
  • strings: extracts the readable text from a binary file: it reveals passwords and addresses left inside a program.
  • dig: queries DNS and tells you which address a name points to; if the name does not exist it answers NXDOMAIN.
  • curl: makes HTTP requests from the terminal and shows the server’s raw answer, headers included.

The simulated environment

The target is an invented host on a simulated private network: you can only reach it from the game terminal.

The target exposes these services:

  • Web (HTTP): a web server with pages, APIs or admin panels: the most exposed part of almost every organisation.

The defensive lesson

Once the lab is solved, the write-up explains what went wrong and how to protect yourself:

Published files carry more than meets the eye: author, program used, paths on the computer and even the name of an internal server. Whoever does reconnaissance gathers these details to derive valid usernames, learn which programs are in use and find servers that were never meant to be visible; here the author was the administrator’s account. Defense: scrub metadata before publishing (export a "clean" copy or use a sanitising tool), never sign public documents with administrative accounts, keep internal names out of public DNS (split-horizon), do not make document servers reachable from the Internet and protect user profile pages with authentication.

Before and after this lab

To unlock it you must have solved:

After this lab you can move on to:

The Recon & Scanning path

Recon & Scanning is reconnaissance: before defending a network, or testing it with permission, you need to know what is in it. You learn to discover live hosts, list ports and services, read the banners services greet you with, and query DNS and HTTP headers. Every lab also shows the defender’s point of view: an up-to-date asset inventory, minimal banners, internal DNS kept apart from public DNS and nothing forgotten left running.

All labs in the Recon & Scanning path

Learn more with the guides

All guides