Gyazo







LinuxUbuntu 20.04


NIC | Network Interface Card
ip a
lo0
localhost
eth0
ethernetNIC
wlan0 , wlan1
wireless lanNIC
inet
IP


route
ss


Wi-Fi
Wi-Fi
sudo iw dev
sudo iw list
Wi-Fi AP
iwlist wlan1 scan


Wi-Fi
sudo ip link set wlan1 promisc on
SET failed on device wlan0 ; Operation not supported.
Wi-Fi | monitor mode
sudo iw wlan1 set monitor control
command failed: Operation not supported (-95)
sudo iw wlan1 set type managed
AP
sudo ip link set wlan1 up




| promiscuous modeWi-Fi
tcpdump
sudo apt install tcpdump
sudo tcpdump -i wlan1 -A -n not arp and not port 22
Gyazo
sudo tcpdump -i wlan1 -n not arp and not port 22 -w hoge.cap
sudo tcpdump -i wlan1 port 80 or port 443
tshark
sudo apt install tshark
sudo tshark -i wlan1 -Px
sudo tshark -i wlan1 -Y http


| monitor modeWi-Fi
horstWi-Fi AP
sudo apt install horst
sudo horst -i wlan1
Gyazo
kismetWi-Fi AP
sudo apt install kismet
mkdir kismet && cd kismet
sudo kismet -c wlan1
aircrack-ngWi-Fi AP
sudo apt install aircrack-ng
mkdir air && cd air
SSH
sudo airmon-ng check kill
Wi-Fi AP
sudo airodump-ng wlan1 -w airscan
Gyazo
airscan-*[0-9].csv
WEP使Wi-Fi AP
Wi-Fi AP
WEP Wi-Fi AP
cat airscan-*[0-9].csv | grep WEP
Wi-Fi AP
Wi-Fi AP
sudo airodump-ng -c 1 --bssid 00:11:22:33:44:55 -w aircap wlan1
Wi-Fi APWEP
aircrack-ng aircap-*.cap



arp
nmap
wireshark
HTTPS
Metasploit
MITM proxy



ip
ip a
ip a show wlan0
iw
iw dev
iwlist
iwlist wlan0 scan
tcptraceroute
mtr
ss
dig
iptables
arp
telnet
netem
tc
curl inet-ip.info
/etc/hosts