Cheat sheet

Kali Linux Certified Professional (KLCP) Cheat Sheet

Quick Facts

Provider
OffSec
Course
PEN-103
Questions
80 multiple-choice
Time
90 minutes
Pace average
67.5 seconds per question
Delivery
ClassMarker; proctored
Resources
Closed book; no notes
Results
Immediately after final answer
Passing score
Not published
Validity
No expiration
Course prerequisites
None formal
Topic weights
Not published

Boot Mode Memory

Install writes; Live runs; persistence saves

Installer: disk setupLive: temporary systemPersistence: retained changes

Live vs Installed

Live

  • Boot live image
  • Changes normally temporary
  • Persistence optional

Installed

  • Boot installed system
  • Changes saved on disk
  • Regular package upgrades

Temporary vs persistent system

Image Picker

  1. Permanent installation→Installer
  2. Small setup download; internet available→NetInstaller
  3. Try without disk installation→Live
  4. Retain Live USB changes→USB persistence
  5. Protect persistent data at rest→Encrypted persistence
  6. Use hypervisor guest→VM image
  7. Preserve forensic media→Forensic boot(Validate evidence handling)

Kali Essentials

Debian
Kali distribution base
BackTrack
Kali predecessor
kali-rolling
Continuously updated default branch
kali-last-snapshot
Frozen at versioned releases
kali-dev
Development integration branch
Xfce
Default desktop environment
Standard user
Non-root by default since 2020.1
sudo
Policy-controlled privileged command execution
kali-linux-core
Essential base system
kali-linux-headless
Default collection without GUI
kali-linux-default
Standard desktop tool selection
Metapackage
Dependency bundle
Zsh
Became default shell in 2020.4

Hash vs Signature

Hash

  • Detect changes to data
  • Needs trusted expected digest

Signature

  • Check using trusted public key
  • Authenticates signed digest list

Integrity vs authenticated origin

Installation Media

Installer
Recommended disk installation image
NetInstaller
Downloads packages during setup
Live
Runs without installation
Live persistence
Retains changes across reboots
Encrypted persistence
LUKS-protected persistent partition
Forensic boot
Disables automount; avoids existing swap
VM image
Ready-made virtual machine
ARM image
Device-specific architecture build
SHA256
Compare download to trusted digest
GPG signature
Authenticate signed checksum list

Boot and Storage

UEFI
Firmware boot interface
GRUB
Bootloader for selecting kernels
initramfs
Early RAM-based root filesystem
systemd
System and service manager
LUKS
Block-device encryption format
LVM
Logical volume management
Default desktop target
2 GB RAM; 20 GB disk
ext4
Journaling filesystem
Swap
Disk-backed memory extension

Octal Permissions

Read four; write two; execute one

r = 4w = 2x = 17 = rwx6 = rw5 = rx

Hard vs Symbolic Link

Hard link

  • Same inode
  • Same filesystem required

Symbolic link

  • Pathname reference
  • Can cross filesystems
  • Can dangle

Inode vs path

Local Help Picker

  1. Known command syntax→man COMMAND
  2. Find command by purpose→man -k KEYWORD
  3. Configuration file syntax→man 5 NAME
  4. GNU tool tutorial→info COMMAND
  5. Installed package examples→/usr/share/doc
  6. Filesystem nearly full→df -h
  7. Large directory suspected→du -sh DIRECTORY

Filesystem Map

/
Filesystem root
/home
Regular user home directories
/root
Root account home directory
/etc
System configuration
/usr
Installed software and shared data
/var
Variable data
/var/log
File-based system logs
/dev
Device nodes
/proc
Virtual process and kernel information
/sys
Kernel device and subsystem interfaces
/tmp
Temporary files
/boot
Boot-related files
/run
Runtime state since boot

Standard Streams

Zero in, one out, two errors

0: stdin1: stdout2: stderr

Single vs Double Quotes

Single quotes

  • Literal enclosed characters
  • Suppress parameter expansion

Double quotes

  • Allow parameter expansion
  • Suppress word splitting and globbing

Literal vs controlled expansion

Permissions

r = 4
Read permission
w = 2
Write permission
x = 1
Execute; directory traversal
u g o
Owner; group; others
chmod 644
Owner rw; group and others r
chmod 750
Owner rwx; group rx; others none
umask 022
Files 0666→0644; dirs 0777→0755
chown
Changes file ownership
chgrp
Changes file group
Hard link
Another name for same inode
Symbolic link
Reference to pathname
Directory write
With x, modify directory entries
Directory setgid
New entries inherit directory group
Sticky directory
Deletion: entry owner, directory owner, privilege
ACL
Additional user and group permissions

Shell Commands

pwd
Print current directory
ls -la
Detailed list including dotfiles
cd
Change working directory
cp
Copy files
mv
Move or rename files
less
Page through text
grep
Match text patterns
find
Search directory hierarchy
wc -l
Count newline characters
df -h
Filesystem capacity and usage
du -sh
Summarize directory space usage

Bash Scripting

#!
Interpreter directive
$PATH
Command search directories
$HOME
User home directory
$1
First script argument
$#
Number of positional arguments
$?
Last foreground pipeline exit status
"$@"
Preserves separate argument boundaries
&&
Next command only after success
||
Next command only after failure
|
Connect stdout to next stdin
>
Redirect output; overwrite by default
>>
Append redirected output
if
Conditional branching
for
Iterate over values

Processes and Documentation

PID
Process identifier
PPID
Parent process identifier
ps
Process snapshot
top
Live process statistics
man 1
Executable command manuals
man 5
File format manuals
man 8
System administration manuals
man -k
Search manual descriptions
info
Structured GNU documentation
/usr/share/doc
Installed package documentation
uname -r
Running kernel release
free -h
Human-readable memory statistics

Package Removal Memory

Remove retains config; purge clears package config

remove: retain configurationpurge: remove configurationautoremove: orphaned automatic dependencies

APT vs dpkg

APT

  • Repository-aware interface
  • Resolves dependencies
  • Calls dpkg for installation

dpkg

  • Local package manager
  • Uses local package database
  • Does not fetch missing dependencies

Dependency resolution vs package handling

Package Picker

  1. Stale repository metadata→apt update
  2. Find available package→apt search
  3. Check package candidate version→apt-cache policy
  4. Upgrade without removing packages→apt upgrade
  5. Rolling upgrade needs dependency removals→apt full-upgrade(Review proposed removals)
  6. List installed package files→dpkg -L PACKAGE
  7. Find recorded file owner→dpkg -S PATH
  8. Inspect downloaded archive→dpkg -I FILE

APT Operations

apt update
Refresh package indexes
apt upgrade
Upgrade without removing installed packages
apt full-upgrade
May remove packages for dependencies
apt install
Install with dependency resolution
apt remove
Remove; generally retain package conffiles
apt purge
Also removes package conffiles
apt autoremove
Remove unneeded automatic dependencies
apt search
Find packages by keywords
apt show
Display package details
apt-cache policy
Show versions and priorities
apt-mark hold
Prevent automatic package version changes

Update vs Upgrade

update

  • Downloads package indexes
  • No installed package upgrades

upgrade

  • Installs available package updates
  • Uses existing package indexes

Metadata vs installed software

dpkg Basics

.deb
Installable binary package archive
dpkg -i
Install local package archive
dpkg -l
List package database records
dpkg -L
List files recorded for package
dpkg -S
Find package owning recorded path
dpkg -s
Show package status record
dpkg -c
Inspect archive file listing
dpkg -I
Inspect archive control information
dpkg --audit
Check partial package installations
dpkg --verify
Compare available recorded file checksums

Upgrade vs Full Upgrade

upgrade

  • Never removes installed packages
  • May add required dependencies

full-upgrade

  • Can remove installed packages
  • Handles changing dependencies

Removal constraint matters

Repository Formats

kali.sources
Fresh-install default since Kali 2026.2
sources.list
Legacy one-line format; still supported
/etc/apt/sources.list.d
Directory containing APT source files
/etc/apt/sources.list
Legacy primary APT sources file
deb822
Multifield .sources format
Types
deb binary; deb-src source
URIs
Repository locations
Suites
Distribution or branch names
Components
Repository package categories
Signed-By
Restricts accepted signing keys
apt-secure
Verifies signed repository metadata
APT pinning
Controls package selection priorities
Foreign repositories
Risk incompatible package dependencies
Default components
main contrib non-free non-free-firmware

Filter Chain Memory

In to host; out from host; forward through

INPUT: local destinationOUTPUT: local originFORWARD: routed traffic

Start vs Enable

start

  • Immediate activation
  • No enablement change

enable

  • Configures future activation
  • Does not start by itself

Current state vs future activation

Troubleshooting Picker

  1. Local interface lacks address→ip addr show
  2. Check configured routes→ip route show
  3. Service fails to start→systemctl status UNIT
  4. Read specific service errors→journalctl -u UNIT
  5. New boot problem→journalctl -b
  6. Kernel device issue→dmesg
  7. Check boot-time service enablement→systemctl is-enabled UNIT

Networking Basics

IP address
Network-layer interface address
CIDR prefix
Network prefix length
Default gateway
Next hop for default route
DHCP
Automatic network configuration
DNS
Resolves names to resource records
TCP
Reliable ordered byte stream
UDP
Connectionless datagram transport
NetworkManager
Manages network connections
ip addr show
Local interface addresses
ip route show
Local routing table
nmcli
NetworkManager command interface

Authentication vs Authorization

Authentication

  • Verify identity
  • Passwords or credentials

Authorization

  • Control allowed operations
  • Permissions and policy

Who vs what allowed

Users and Access

UID
Numeric user identity
GID
Numeric group identity
id
Show account and group identifiers
passwd
Change account password
PAM
Pluggable authentication modules
NSS
Name service lookup framework
Authentication
Verify claimed identity
Authorization
Determine allowed actions

INPUT vs FORWARD

INPUT

  • Traffic destined for local sockets
  • Host protection rules

FORWARD

  • Traffic routed through host
  • Transit protection rules

Local destination vs transit

System Services

systemctl status
Service state and recent output
systemctl start
Activate service now
systemctl enable
Configure future activation
systemctl is-enabled
Check enablement status
systemctl daemon-reload
Reload systemd unit definitions
systemd timer
Scheduled unit activation
journalctl -b
Current boot journal entries
journalctl -u UNIT
Filter journal by unit
dmesg
Kernel ring buffer messages
Network service policy
External listeners off by default
SSH
Encrypted remote administration
Apache HTTP Server
Web content serving
PostgreSQL
Object-relational database system

Defensive Controls

Least privilege
Minimum necessary permissions
Disk encryption
Protects data at rest
Netfilter
Kernel packet-processing framework
filter table
Packet filtering decisions
INPUT
Locally destined packets
OUTPUT
Locally generated packets
FORWARD
Packets routed through host
ACCEPT
Permit matching packet
DROP
Discard matching packet
Default chain policy
Fallback for built-in chain
Audit logs
Evidence for incident review

Build Artifact Memory

Source becomes package; packages populate images

Source: editable codePackage: installable archiveImage: bootable system

Preseed vs Custom ISO

Preseed

  • Answers installer prompts
  • Reuses installation settings

Custom ISO

  • Bundles selected packages
  • Contains custom image files

Installer answers vs image contents

Build Picker

  1. Repeat identical installer answers→Preseed
  2. Reusable customized live medium→live-build
  3. Group software dependencies→Metapackage
  4. Distribute maintained software packages→Signed repository
  5. Need supported driver feature→Kernel configuration
  6. Test change before deployment→Disposable VM

Package Builds

Source package
Source code and packaging metadata
Binary package
Installable compiled or packaged files
debian/control
Package metadata and dependencies
debian/rules
Package build instructions
debian/changelog
Package version and change history
Build-Depends
Dependencies needed for building
dpkg-buildpackage
Build Debian packages from source
.buildinfo
Records build environment details

Image Customization

live-build
Builds customized Debian live images
Package lists
Select installed image packages
File overlay
Adds files to image
Build hook
Runs at defined build stage
Kernel configuration
Selects kernel features and drivers
Kernel headers
Build interface for external modules
VM snapshot
Point-in-time virtual machine state

Deployment Basics

Preseed
Supplies Debian installer answers
Unattended install
Automated installation from settings
Custom ISO
Reusable installation or live image
Signed archive
Trusted package distribution metadata
Package mirror
Replica of package repository
Version inventory
Track deployed software versions
Rollback plan
Restore known-good configuration
Staged deployment
Test before wider rollout

Common Traps

Closed-book exam

Pre-exam review sheet ≠ Permitted exam notes

Certificate vs course

Free PEN-103 training ≠ Free certification attempt

Forensic safety

Automount disabled ≠ Impossible to alter evidence

Space reporting

df reports filesystem usage ≠ du estimates file space

File vs directory execute

Run executable file ≠ Traverse directory

Index refresh

apt update refreshes metadata ≠ apt upgrade installs updates

Package config

apt remove retains package config ≠ apt purge removes package config

Repository evolution

2026.2 fresh install uses kali.sources ≠ All older installs automatically migrated

Trust checks

Matching hash from trusted source ≠ Signature authentication of publisher

Service state

Active service now ≠ Enabled for future activation

Network scope

INPUT local destination ≠ FORWARD through host

Disk layout

LVM manages logical volumes ≠ LUKS encrypts block devices

Last Minute

  1. 1.KLCP: 80 questions, 90 minutes
  2. 2.Closed book; leave notes outside
  3. 3.Passing score not officially published
  4. 4.Rolling branch updates continuously
  5. 5.Live persistence retains reboot changes
  6. 6.Verify downloads against signed checksums
  7. 7.Octal permissions: r4 w2 x1
  8. 8.man 5 describes file formats
  9. 9.Bash zero exit status: success
  10. 10.APT update refreshes indexes
  11. 11.Full-upgrade can remove packages
  12. 12.dpkg -L lists package files
  13. 13.Since 2026.2 fresh installs use kali.sources
  14. 14.Start now; enable future activation
  15. 15.INPUT local; FORWARD transit
  16. 16.Preseed answers installer prompts
  17. 17.Authentication identifies; permissions authorize
Same family resources

Explore More OffSec Certifications

Continue into nearby exams from the same family. Each card keeps practice questions, study guides, flashcards, videos, and articles in one place.