Cheatography
https://cheatography.com
Linux Network CommandsCommand | 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 |
User inputted data is to go between the brackets < >. When you enter the command and supply the input, remove the brackets for the command to run successfully.
|
Help Us Go Positive!
We offset our carbon usage with Ecologi. Click the link below to help us!
Created By
Metadata
Favourited By
and 5 more ...
Comments
Thank you! :)
Add a Comment
Related Cheat Sheets
More Cheat Sheets by itnetsec