Tag: commands

nmap commands

Scan network for responsive IPsnmap -sS -O 10.199.42.0/23 | tee nmap.log Check if port is opennmap -P0 -p1521 oracle.com Scan UDPnmap -sU -p <port> <target>

sed Commands

sed one linersInsert character at beginning of lineComment all nfs entries in fstabsed -i '/nfs/s/^/#/' /etc/fstab Uncomment all nfs entries in fstabsed -i '/nfs/s/^#//g' /etc/fstab Su

tar / gzip commands

Here, we are sending the tar file to -, which stands for tar’s standard output. This is piped to gzip, which compresses the incoming tar file, and the result is saved in backup.tar.gz. The -c option t

tcpdump commands

Capture DHCP requestsPXE pxedhcp01 ~ # tcpdump -i eth1 \(port 67 or port 68\)tcpdump: verbose output suppressed, use -v or -vv for full protocol decodelistening on eth1, link-type EN10MB (Ethernet), c