Faragiri

Learn Exploitation Ethical hacking

What has to be true before a weakness is an exploit, in the order that costs least to check, what proof has to contain, and the smallest action that establishes it.

5Sections
4Min read
4Depth

Recommended Before This

0 / 2

Four things have to hold before a weakness is an exploit, and a scanner checks one of them. The service has to be reachable from where you are, the version has to be genuinely affected, no compensating control can be in the way, and a working technique has to exist for that build. Break any one and the finding is theoretical.

Zainab spent two days on a retailer's system in Stoke proving that a critical advisory did not apply, which was the correct outcome and the harder report to write.

The four links, in the order that costs least to check

Reachability first, because it is free: nc -zv 10.20.4.9 8080 from the position an attacker would actually be in. A service reachable only from a management network is a different finding with a different severity, and testing from the wrong position is how a report ends up describing an attack nobody could perform.

One advisory

All four links have to be intact, and the one drawn open is the one that is assumed rather than checked more often than the other three together.

The chain says nothing about severity. A weakness that clears all four on an internal system with nothing on it is still a low finding, and establishing that is the next phase rather than this one.

Interactive Practice Lab

Edit and run this snippet directly in your browser (zero setup)

Regex
/\b(Role|Task|Constraint|Format):\s*([^\n]+)/gi
# sample: Role: Senior Python Reviewer
Task: Audit CSV parser edge cases
Constraint: Max 3 bullet points, zero fluff
Format: Markdown checklist

HTTP/TLS Request Lifecycle & Latency Waterfall Lab

Inspect every hop from DNS to Brotli stream and replay packet flow live.

Then the version, and against the vendor's advisory rather than against the banner. A distribution that backports fixes leaves the version string alone, so the honest check is the package version and the changelog rather than what the service announces.

Compensating controls are third and they are the link most often assumed absent. A web application firewall, a configuration that disables the affected feature, or a setting the advisory names as a mitigation all break the chain, and each of them can be confirmed rather than assumed.

The technique is fourth and last because it is the expensive one. A published proof of concept is written against one build on one platform, and adapting it is the work that separates demonstrating a weakness from citing one.

What proof has to look like

The deliverable is not access, it is a demonstration that a specific input leads to a specific consequence, reproducible by somebody else. That means recording the exact request, the exact response, the time, and the state of the system before and after.

Evidence standard

What proof has to record, and where it stops

The deliverable is a reproducible demonstration of impact using the smallest action that settles the question.

  • Records to keepSo another person can repeat it
    • Exact request sent
    • Exact response received
    • Timestamp of the attempt
    • System state before and after
Reproducible proof
  • Minimal action ruleProve access without excess data
    • Read one non-sensitive file
    • Avoid dumping customer tables
    • Take the conservative scope reading

Extracting a customer table proves nothing more than reading one harmless file, while creating a data handling problem afterwards.

Take the smallest action that proves it. Reading a single non-sensitive file proves file access; extracting a customer table proves the same thing and creates a data handling problem for everybody afterwards. The scope document should already say where that line is, and where it does not, the conservative reading is the correct one.

Doing it without breaking the client

An exploit that works by crashing the service is a denial of service test wearing a different name, and it belongs in the window with the contact on the phone. Anything writing to a database, changing a password or sending mail has consequences that outlast the engagement.

Operational safety

Guardrails that prevent testing from causing an outage

Exploits that crash services or alter state leave consequences that outlast the engagement unless boxed in.

  1. Window and live contactUnannounced crashes and denial of serviceScheduled checks with the client on the phone
  2. State-change restraintUnexpected database writes, password edits, or outbound mailNon-destructive, pre-approved test actions
  3. Per-attempt written logGuessing whether the eleven-o-clock outage was yoursExact record of what ran, against what, when, and the result
Safe exploitation discipline

When a client asks whether an outage at eleven came from testing, a per-attempt log gives an honest, immediate answer.

The habit that keeps this clean is a written note per attempt: what was run, against what, at what time, and what happened. That is the record that answers a client asking whether the outage at eleven was yours, and the honest answer to that question is regularly yes.

Metasploit, the proof of concept, and the searchable index

Metasploit is free in its community form and replaced writing an exploit from scratch for each engagement; the caution worth repeating is that its modules do real things, and check before exploit is a habit rather than a formality where the module supports it.

Tools and advisories

Blind shortcuts versus disciplined tooling

Free tools save time only when paired with reading the code, running safe checks first, and verifying against vendor advisories.

Unchecked shortcutHigh risk and wasted time
Disciplined practiceVerified and controlled
Exploit modulesWriting from scratch or firing modules blindlyMetasploit with check run before exploit
Proof of concept codeRunning whatever a web search returnsOffline searchsploit and reading the source first
Affected version checkTrusting a scanner banner matchConfirming the build in the vendor advisory

Reading a proof of concept before executing it against a client is mandatory and skipped far too often.

searchsploit is free and offline, and it replaced searching the web for a proof of concept and running whatever came back, which is how testers end up executing somebody else's payload against a client. Reading the code before running it is not optional at this step and it is skipped constantly.

The vendor's own advisory is free and is the authority on which builds are affected; it replaced trusting a scanner's mapping, which is derived from version strings and is wrong in the direction that wastes the most time.

Reporting a scanner's output

The stall is treating a vulnerability scanner's list as a findings list. It arrives sorted by severity, formatted, and with the client's addresses in it, and passing it on with a cover page is a report that can be produced in an hour and is worth what it cost.

Reporting trap

From a raw scanner list to an audit-ready finding

Passing on a sorted scanner export takes an hour and fails as soon as somebody checks link three.

Verification depth behind a security report

Unchecked scanner dumpVerified all four links
  1. Raw scanner exportSorted by severity with a cover page and zero validation
  2. Link-three mitigation checkTwenty minutes reading past the score to test disabled features
  3. Disproved critical with evidenceClear explanation of why it did not apply, used by auditors next year

Stoke's critical finding failed on a disabled configuration named in the advisory itself, making that paragraph the report's most valuable line.

The Stoke engagement's critical advisory failed on the third link: the affected feature was disabled in the configuration, which the advisory itself named as a mitigation, and confirming that took twenty minutes once anybody read past the score. Two days went on the remaining three links for other findings. The report said the critical one did not apply and said why, and that paragraph is the one the client's own auditors used the following year.

Where the list of candidates came from, and the two passes that produced it, is finding hosts, ports and versions. What a foothold is actually worth, and how it becomes reach, is from a foothold to full control. And the document that decides whether any of these actions were permitted is scope, rules of engagement and the phases.

Alongside this

Above this