m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/network.md
blob: 1720cb3bc06d845e94bcbc6bfeac6f1992d5ee42 (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
# 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 <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.