|
Command
|
Description
|
watch ss -tp |
Network Connections
|
netstat -ant |
TCP connections
|
netstat -anu |
UDP Connections
|
netstat -tulpn |
Connections with PIDs
|
lsof -i |
Established Connections
|
smb://<IP>/<SHARENAME> |
Access Windows SMB Share
|
share <USERNAME> <IP> c$ |
Mount Windows Share
|
ifconfig <INTERFACE> <IP/CIDR> |
Set IP and netmask
|
ifconfig eth0:1 <IP/CIDR> |
Set virtual interface
|
route add default gw <IP> |
Set Default Gateway
|
ifconfig <INTERFACE> mtu <SIZE> |
Change MTU size
|
export MAC=<MACADDRESS> |
Change MAC Address
|
ifconfig int hw ether <MACADDRESS> |
Change MAC Address
|
dig -x <IP> |
Domain Lookup IP
|
host <IP> |
Domain Lookup IP
|
dig@<IP> <DOMAIN> -t AXFR |
DNS Zone Transfer
|
host -l <DOMAIN> <NAMESERVER> |
DNS Zone Transfer
|
echo "1" > /proc/sys/net/ipv4/ip forward |
Enable IP Forwarding
|
echo <"NAMESERVER"> > /etc/resolv.conf |
Add DNS Server
|
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.