Module 8 · Kali Linux and Security Tools · Lesson 22 of 75

Kali Linux: what it is and how to set it up safely

Why testers use Kali, the ways to run it, first-boot housekeeping, and habits that keep your lab and your own data safe.

In this lesson · about 30 minutes

  • Explain what Kali Linux is and is not
  • Choose a safe way to run it and update it
  • Set up a tidy working folder for each engagement

Ways to run Kali

OptionGood forWatch out for
Virtual machine (pre-built VirtualBox/VMware images)Most learners: snapshots, easy reset, isolated networksGive it 4 GB RAM or more; Wi-Fi attacks need a USB adapter
WSL (Windows Subsystem for Linux)Quick command-line tools on a Windows laptopLimited networking for scanning; antivirus may quarantine tools
Live USB with persistenceUsing a borrowed or lab machine without installingEasy to lose; encrypt the persistence partition
Cloud instanceTesting internet-facing targets you are authorised forCloud providers have their own testing rules; never leave it open

First-boot housekeeping

  • Change the default password (passwd). Kali uses a normal user, kali, and sudo for admin tasks.
  • Update: sudo apt update && sudo apt full-upgrade -y. Tools change weekly.
  • Take a snapshot called "clean" once updated.
  • Install extra tools as needed: sudo apt install seclists gobuster. The kali-linux-large metapackage adds many more.
  • Learn where things live: word lists in /usr/share/wordlists (rockyou is compressed there) and /usr/share/seclists; Nmap scripts in /usr/share/nmap/scripts; exploit database in /usr/share/exploitdb.

Good habits

  • One folder per engagement: ~/engagements/acme-2026-11/{scans,loot,notes,screens}.
  • Log your terminal: script -a notes/terminal.log records everything you type and see.
  • Save every scan to a file (-oA in Nmap) so you never need to re-run it.
  • Do not browse the web, read email or log in to personal accounts from Kali.
  • Download tools only from official sources. Fake "hacking tools" laced with malware are a common trap for beginners.

Hands-on lab (simulated terminal)

Lab: prepare Kali for an engagement

A freshly imported Kali VM. Output is simulated.

Step 1 of 5. Type each command and press Enter. Nothing runs on your computer.

kali@kali: ~

1. Update the package lists and upgrade everything.

┌──(kali㉿kali)-[~]
└─$

Check your understanding0 of 3 correct

Question 1

1.Why is Kali not recommended as your everyday operating system?

Question 2

2.Where are Kali's word lists, such as rockyou?

Question 3

3.What does 'script -a notes/terminal.log' do?

Quiz score: 0 of 3

Tip: answer every quiz question correctly first.

Written by Noviq Academy in its own words. All labs are simulations: no real systems are touched, and every name, address, password and hash is made up. The offensive techniques taught here are for defending systems and for authorised testing only; never scan, access or test a system without the owner's written permission. Tool and product names belong to their owners, and command output may differ slightly from yours. Read-aloud uses your device's built-in voices.