---
# System prepended metadata

title: Untitled

---

Занятие 4. Модель OSI. Транспортный уровень - L4

Сканирование спомощью netdiscover
![](https://i.imgur.com/gUjzK02.png)
![](https://i.imgur.com/8bDmZuk.png)

Сканирование сети с помощью nmap
![](https://i.imgur.com/2uFKhXv.png)


![](https://i.imgur.com/Z0cklv1.png)

![](https://i.imgur.com/BNT9Yxy.png)

![](https://i.imgur.com/GFJ3KSm.png)

![](https://i.imgur.com/riWRiSE.png)

![](https://i.imgur.com/3YXLl8d.png)

Настройка SPAN на switch
```
Building configuration...

Current configuration : 1090 bytes
!
! Last configuration change at 23:50:20 UTC Tue Jan 10 2023
!
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
service compress-config
!
hostname Switch
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
!
!
!
!
!
!
!
!
ip cef
no ipv6 cef
!
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Ethernet0/0
!
interface Ethernet0/1
!
interface Ethernet0/2
!
interface Ethernet0/3
!
interface Ethernet1/0
!
interface Ethernet1/1
!
interface Ethernet1/2
!
interface Ethernet1/3
!
interface Ethernet2/0
!
interface Ethernet2/1
!
interface Ethernet2/2
!
interface Ethernet2/3
!
interface Ethernet3/0
!
interface Ethernet3/1
!
interface Ethernet3/2
!
interface Ethernet3/3
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
!
!
!
!
control-plane
!
!
line con 0
 logging synchronous
line aux 0
line vty 0 4
!
!
monitor session 1 source interface Et0/0
monitor session 1 destination interface Et1/0
!
End

```

Настройка интерфейсов linux

![](https://i.imgur.com/aEWNRZ7.png)

![](https://i.imgur.com/smxjMri.png)

Сканирование сети через SPAN на linux

![](https://i.imgur.com/CXsy1aK.png)


Настройка linux для MITM

apt install brige util

![](https://i.imgur.com/EgRAv3i.png)

![](https://i.imgur.com/7qNGcat.png)

Скан сети через MITM
![](https://i.imgur.com/qwGiQrt.png)
