Kali Linux Tools Cheatsheet for SOC Analysts and Pen Testers

πŸ€– AI Prompts Cheatsheet

Daniel Osei — AI-Assisted Security Engineer

What is Kali Linux?

Kali Linux is a Debian-based Linux distribution designed for penetration testing, security research, and digital forensics. It comes pre-installed with numerous tools that security professionals rely on to assess the security of systems.

Installation

Kali Linux can be installed on various platforms, including physical machines, virtual environments, and even in the cloud. To install Kali Linux:

  1. Download the latest ISO from the Kali Linux downloads page.
  2. Write the ISO to a USB drive using tools like dd or Rufus.
  3. Boot your computer from the USB drive and follow the installation prompts.

Basic Syntax

Most Kali tools follow a command-line structure of:

tool_name [options] [target]

Discovery

Nmap

Nmap is one of the most popular network scanning tools.

Flag Description
-sS TCP SYN scan (stealth scan).
-sV Service version detection.
-A Aggressive scan options.
nmap -sS -sV -A

Scanning

Nikto

Nikto is a web server scanner that performs comprehensive tests against web servers for multiple vulnerabilities.

nikto -h

Exploitation

Metasploit Framework

Metasploit is an indispensable penetration testing framework that provides information about security vulnerabilities and helps exploit them.

msfconsole
use exploit/windows/smb/ms17_010_eternalblue
set RHOST
exploit

Analysis

Wireshark

Wireshark is a protocol analyzer that allows users to capture and interactively browse traffic on a computer network.

wireshark

Evasion

Proxychains

Proxychains allows you to force any TCP connection made by a given application to follow through proxy (like Tor).

proxychains

Reporting

Dradis

Dradis helps security teams to collaborate and report effectively.

dradis

Quick Reference Table

Tool Description
Nmap Network vulnerability scanner.
Nikto Web server security scanner.
Metasploit Penetration testing framework.
Wireshark Packet analyzer tool.
Proxychains For proxying connections through Tor.
Dradis Collaboration and reporting tool.

Pro Tips

  • Always keep your Kali tools up-to-date using sudo apt update && sudo apt upgrade.
  • Leverage scripting to automate tasks within the Metasploit Framework.
  • Utilize Nmap scripts for advanced scanning techniques with -sC for default scripts.

Real-World Examples

1. To scan a target network with services and OS detection using Nmap:

nmap -A -sS 192.168.1.0/24

2. Exploiting a known vulnerability using Metasploit:

msfconsole
use exploit/windows/smb/ms17_010_eternalblue
set RHOST 192.168.1.10
exploit

3. Capturing network packets with Wireshark and analyzing them:

wireshark