# Basic networking operations ## Basic networking info ifconfig ## Find process binding a port # specifically tcp lsof -i tcp:8000 # any protocol lsof -i :8000 ## DNS DNS lookup: drill [record type] So to lookup TXT records, drill host.com TXT ## Connecting to WIFI with iwctl iwctl device list Ensure device and adapter are turned on: device set-property Powered on adapter set-property Powered on Begin scan (no output), list networks, connect: station scan station get-networks station connect SSID ## MAC spoofing sudo ip link set dev eth0 down sudo ip link set dev eth0 address 00:00:00:00:00:01 sudo ip link set dev eth0 up Or use `macchanger` utility, where you can specify the vendor, device type, etc.