blob: dfcf5123fe47a2b151de5205e3c83fe70ea909e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Basic networking operations
## Basic networking info
ifconfig
## Find process binding a port
# specifically tcp
lsof -i tcp:8000
# any protocol
lsof -i :8000
## Inspect network
# get hosts on LAN
nmap -sn 192.168.0.0/24
# inspect ports on particular machine
nmap 192.168.0.10
## DNS
DNS lookup:
drill <hostname> [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 <device> set-property Powered on
adapter <adapter> set-property Powered on
Begin scan (no output), list networks, connect:
station <device> scan
station <device> get-networks
station <device> 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.
|