Skip to main content

Overview

A curated reference of Linux commands most useful during penetration tests and security assessments, organized by category.

Common Bash One-Liners

Network-Aware File Operations (lsof)

Decompression

HTTP Servers (Quick)

OpenSSL Operations

Grep Patterns for Pentesters

Find Commands

Iptables

Nmap Script Help

Windows-Targeted Commands (from Linux)

eBPF Telemetry and Rootkit Hunting

Modern rootkits (TripleCross, BPFDoor variants) persist as hidden eBPF programs. Use bpftool to detect them:
Correlate bpftool output with expected NIC/cgroup attachments. A sudden xdp or kprobe program owned by an unapproved PID is a strong indicator of an injected eBPF payload.

Journald Incident Triage

systemd-journald provides structured, filterable logs without touching /var/log/*:

References