Shell commands focused on network


apt install dnsutils # for dig, etc.
apt install net-tools # for netstat, etc.
apt install nmap


yum install bind-utils # for nslookup, etc.
yum install nmap # for ncat, etc.
dig <any_url>
netstat -ntpul
lsof -i -P -n
lsof -i -P -n | grep LISTEN
nc -l -p 1337 # the receiver
nc localhost 1337 # the sender
# then type something, then enter, it should be transfered to the receiver

Telnet method

telnet 4648

Nmap method (/!\ may bypass restrictions)

nmap -Pn -p 4648

Nmap method

nmap -sP <current_ip>/24

ARP method

sudo arp-scan --interface=<current_interface> --localnet
  • shell-network.txt
  • Last modified: 2019/06/02 17:37
  • by jdx