In case you ever wondered what some obscurely named Linux commands stand for, like awk, grep, etc., click here.
1. Test if a particular TCP port of a remote host is open. $ nc -vn 192.168.233.208 5000 nc: connect to 192.168.233.208 5000 (tcp) failed: Connection refused $ nc -v 192.168.233.208 22 Connection to 192.168.233.208 22 port [tcp/ssh] succeeded! SSH-2.0-OpenSSH_6.0p1 Debian-4 2. Send a test UDP packet to a remote host. The command below sends […]
host The host command performs DNS lookups. Give it a domain name and you’ll see the associated IP address. Give it an IP address and you’ll see the associated domain name. host howtogeek.com host 22.214.171.124 The host is a simple and essential command line tool. It is used for the following purposes: Performing DNS name […]
Hat tip to g0tmi1k for authoring one of the best basic Linux privilege escalation compilations ever. Operating System What’s the distribution type? What version? 1 2 3 4 cat /etc/issue cat /etc/*-release cat /etc/lsb-release # Debian based cat /etc/redhat-release # Redhat based What’s the kernel version? Is it 64-bit? 1 2 3 4 5 6 […]
About nc nc is the command which runs netcat, a simple Unix utility that reads and writes data across network connections, using the TCP or UDP protocol. It is designed to be a reliable “back-end” tool that can be used directly or driven by other programs and scripts. At the same time, it is a […]