Linux Network Commands Flashcards
1
Q
Network connections
A
watch ss -tp
2
Q
TCP connections
A
netstat -ant
3
Q
UDP connections
A
netstat -anu
4
Q
Established connections
A
lsof -i
5
Q
Access Windows SMB share
A
smb:///share
6
Q
Mount Windows share
A
share user x.x.x.x c$
7
Q
SMB connect
A
smbclient -U user \\\
8
Q
Set IP and netmask
A
ifconfig eth# /
9
Q
Set virtual interfaces
A
ifconfig eth0:1 /
10
Q
Set GW
A
route add default gw
11
Q
Change MTU size
A
ifconfig eth# mtu [size]
12
Q
Change MAC
A
export MAC=xx:xx:xx:xx:xx:xx
13
Q
Change MAC
A
ifconfig hw ether
14
Q
Backtrack MAC changer
A
macchanger -m
15
Q
Built-in WiFi scanner
A
iwlist scan