Cyberlium
Cyberlium
Cyberlium on Android·Google Play Store

Learn cybersecurity with hands-on labs and AI mentor support on your phone.

Mod 7 · Les 4/5
In progress
Module 7•Lesson 4 of 5•⏱️ 15 min read•Beginner+40 XP

Sessions Lab

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

Sessions Lab
00:00/02:14

Visual · msf_sessions_lab

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

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.
Hands-on Exercise

Mission: sessions lab

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

Pro Tip

Stuck? Ask Cyberlium AI Mentor

Ask Mentor: “Sample sessions -l columns?”

Practice QuizQuestion 1
Multiple choice
Q1

APPLY: Lab ends with:

Practice QuizQuestion 2
True or False
Q2

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

Practice QuizQuestion 3
Multiple choice
Q3

APPLY: background lets you:

←Previous: Session Hygiene
Answer 3 practice quiz questions to unlock XP reward. (0/3 answered)
Skip quiz & read next →