Cyberlium

Metasploit › Module 7 › Lesson 4

BeginnerModule 7Lesson 4/5

Sessions Lab

sessions -l literacy on $LAB — interact only per written brief; full teardown.

15 min+40 XP3 quiz
Module progress4 of 5

Visual · msf_sessions_lab

Lab: list/interact/background/kill on $LAB. Original Cyberlium.

Opening

Prove you can name sessions — then prove you can end them.

If your lab brief includes a session on $LAB: run sessions -l before and after, interact once, background, then kill all and revert snapshot. If no live session lab, document commands with expected output shapes from course materials — still no stranger targets.

1. List and label

sessions -l output saved redacted.

Map session id → $LAB VM name.

Command guide

Try these commands — List and label

═══ TOOLS & WEBSITES ═══ Browse / read these (authorized learning only — stay in YOUR lab / program scope)

Session lab — https://docs.rapid7.com/metasploit/managing-sessions/ Cleanup — https://docs.rapid7.com/metasploit/msf-overview/

═══ INSTALL ═══

Linux (Debian/Ubuntu): Kali: preinstalled, or: sudo apt install metasploit-framework

macOS: Prefer Kali/Linux VM — brew install metasploit (heavy)

Windows: Use Kali VM or WSL with metasploit-framework — not raw Windows host

═══ LINUX / macOS ═══

Command — copy this

msfconsole -q -x 'sessions -h; routes -h; exit' 2>/dev/null || echo 'Session routing literacy — lab only'

Primary tools to practice this lesson: msfconsole. Reference sites: Session lab (https://docs.rapid7.com/metasploit/managing-sessions/); Cleanup (https://docs.rapid7.com/metasploit/msf-overview/). Run every command in the box — install first, then the usage lines — only on YOUR lab / program scope.

2. Interact cycle

sessions -i <id>, then background.

No post modules beyond brief.

3. Teardown

Kill sessions. Stop handler. Revert snapshot.

Confirm no listener on 0.0.0.0.

4. What you ship: sessions lab transcript

List/interact/kill transcript + teardown confirmation.

5. What you record before the next lesson

Redacted sessions -l notes.

6. Wrong vs right: stranger hosts vs YOUR lab VM

Worked failure — same MSF word, opposite target. Right never needs a café Wi-Fi or classmate laptop.

  • Wrong

    Practice sessions -i on a discovered LAN host.

  • Right

    Lab transcript + teardown. Next: quiz.

Mission: sessions lab

1) sessions -l documented. 2) interact/background if brief allows. 3) kill + revert + confirm handler stopped.

Stuck? Ask Cyberlium AI Mentor

Ask Mentor: “Sample sessions -l columns?”

Knowledge Check

1

APPLY: Lab ends with:

Multiple choice

Knowledge Check

2

APPLY: True or False: sessions -i on strangers is practice.

True or False

Knowledge Check

3

APPLY: background lets you:

Multiple choice

← Previous

Answer all 3 knowledge checks to continue. (0/3 answered)