OSCP Kali Linux 2 — Questions and Answers
Question 1: Which Kali Linux tool is used to create a persistent USB drive that saves changes across reboots?
- live-build
- mkusb
- live-usb-creator
- dd with persistence partition (Correct answer)
Correct answer: dd with persistence partition
A persistent Kali USB is created by partitioning the drive with a 'persistence' labeled ext4 partition alongside the ISO written with dd.
Question 2: In Kali Linux, which command updates the package database AND upgrades all installed packages in a single step?
- apt-get update
- apt-get upgrade
- apt-get update && apt-get upgrade (Correct answer)
- apt-get dist-upgrade
Correct answer: apt-get update && apt-get upgrade
Running apt-get update refreshes the package list, then apt-get upgrade installs newer versions; both must be chained to accomplish both tasks.
Question 3: What is the default root password for Kali Linux when first installed?
- root
- toor
- kali
- There is no default root password; a user account with sudo is created (Correct answer)
Correct answer: There is no default root password; a user account with sudo is created
Since 2020 Kali Linux defaults to a non-root user model and prompts you to set a password during installation with no preset root password.
Question 4: Which Kali Linux meta-package installs the top 10 most popular penetration testing tools?
- kali-linux-full
- kali-tools-top10 (Correct answer)
- kali-linux-default
- kali-linux-large
Correct answer: kali-tools-top10
The kali-tools-top10 meta-package installs the 10 most widely used tools included in Kali's curated top-10 list.
Question 5: What does the command 'updatedb' do in Kali Linux and why is it relevant to OSCP engagements?
- Updates the APT database
- Rebuilds the locate command's file index database (Correct answer)
- Updates the Metasploit database
- Synchronizes NTP time database
Correct answer: Rebuilds the locate command's file index database
updatedb rebuilds the database used by the locate command, enabling fast file searches which is useful for quickly finding exploit scripts or config files.
Question 6: Which command in Kali Linux displays active network connections along with the process name and PID?
- netstat -an
- ss -tlnp
- netstat -tulnp (Correct answer)
- ip route show
Correct answer: netstat -tulnp
netstat -tulnp shows TCP/UDP listening ports along with the program name and PID, making it ideal for enumerating services.
Question 7: In Kali Linux, what is the purpose of the 'searchsploit' tool?
- Searches for vulnerabilities in running services live
- Searches the local Exploit-DB copy for matching exploits offline (Correct answer)
- Queries the NVD database for CVEs
- Scans a target for exploitable services
Correct answer: Searches the local Exploit-DB copy for matching exploits offline
searchsploit queries a local copy of Exploit-DB, allowing offline searching for exploits by keyword, CVE, or platform.
Which Kali Linux tool is used to create a persistent USB drive that saves changes across reboots?