Posted Sep 26, 2019 2019-09-26T00:00:00+01:00 by mlcsec
Updated Jan 31 2021-01-31T11:40:19+00:00

Collection of snippets for basic network configuration and IP/CIDR ranges.
Connecting
Windows
Windows host network configuration.
1
2
3
4
5
6
7
8
9
10
11
12
13
| 1) Windows + R
2) ncpa.cpl // run
3) Right click Ethernet -> Properties
4) Select Internet Protocol Version 4 (TCP/IPv4) -> Properties
5) Enter IP and DNS server:
Use the following IP address: <...>
Use the follwing DNS server addresses: <...>
|
Kali VM
Then setup bridging instead of NAT in VMware configuration.
1
2
3
4
5
6
7
| ipcalc xx.xx.xx.xx
ifconfig <iface> xx.xx.xx.xx
ifconfig <iface> xx.xx.xx.xx/24
ifconfig <iface> xx.xx.xx.xx netmask 255.xx.xx.xx
echo nameserver xx.xx.xx.xx > /etc/resolv.conf
|
USB Passthrough
1
2
3
4
5
6
7
8
9
| /etc/init.d/network-manager stop // not always needed
ip addr add xx.xx.xx.xx/24 dev eth1
ip link set eth1 up
route add default gw xx.xx.xx.xx eth1 // not always needed
ip a // check config
arp-scan -I eth1 -l // confirm
|
IPv4 Address Ranges
Class | Range |
---|
Class A Private Address Range | 10.0.0.0 - 10.255.255.255 |
Class B Private Address Range | 172.16.0.0 - 172.31.255.255 |
Class C Private Address Range | 192.168.0.0 - 192.168.255.255 |
| 127.0.0.0 - 127.255.255.255 |