Cheatography
https://cheatography.com
Linux Network Commands
Command |
Description |
|
Network Connections |
|
TCP connections |
|
UDP Connections |
|
Connections with PIDs |
|
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 |
|
Domain Lookup 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.
|
Created By
Metadata
Favourited By
and 5 more ...
Comments
gamliel, 20:00 18 Jul 17
Thank you! :)
Add a Comment
Related Cheat Sheets
More Cheat Sheets by itnetsec