---
# System prepended metadata

title: Untitled

---

**1. Настройка инфраскруктуры**
![](https://i.imgur.com/Fnl2GU4.png)

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

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

**2. Генерация трафика протоколов**

1. DHCP (он генерируется при включении устройства во время DORA, но т.к. я не выставлял выдачу ip адресов на роутере, то появляются только Discover пакеты)![](https://i.imgur.com/Rcw5uWO.png)Дамп:
```
0000   ff ff ff ff ff ff 00 50 00 00 05 00 08 00 45 10
0010   01 48 00 00 00 00 80 11 39 96 00 00 00 00 ff ff
0020   ff ff 00 44 00 43 01 34 d8 94 01 01 06 00 f5 5f
0030   b1 5a 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0040   00 00 00 00 00 00 00 50 00 00 05 00 00 00 00 00
0050   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0060   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0070   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0080   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0090   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00a0   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00b0   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00c0   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00d0   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00e0   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00f0   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0100   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0110   00 00 00 00 00 00 63 82 53 63 35 01 01 0c 09 44
0120   65 62 69 61 6e 2d 31 30 37 0d 01 1c 02 03 0f 06
0130   77 0c 2c 2f 1a 79 2a 3d 13 ff 00 00 05 00 00 01
0140   00 01 2b 55 93 3b 00 50 00 00 05 00 ff 00 00 00
0150   00 00 00 00 00 00
``` 
2. DNS (он генерируется при обащении к доменному узлу)![](https://i.imgur.com/TtAyxHK.png)Дамп:
```
0000   aa bb cc 00 10 00 00 50 00 00 03 00 08 00 45 00
0010   00 4f ee e8 40 00 40 11 31 58 c0 a8 01 0a c0 a8
0020   98 02 89 c8 00 35 00 3b 1a aa 85 f5 01 00 00 01
0030   00 00 00 00 00 00 01 31 06 64 65 62 69 61 6e 04
0040   70 6f 6f 6c 03 6e 74 70 03 6f 72 67 0b 6c 6f 63
0050   61 6c 64 6f 6d 61 69 6e 00 00 01 00 01
```

3. telnet (я подключусь по telnet к switch, для этого сначала настрою ip адрес и авторизацию на switch, и уже после подключусь по telnet)
    ```
        На Switch:
    enable
    configure terminal 
    int vlan 1
    ip address 192.168.1.11 255.255.255.0
    no shutdown
    exit
    username admin privilege 15     password 10293
    aaa new-model
    do write
    ```
    ![](https://i.imgur.com/a16hI0T.png)![](https://i.imgur.com/Izqs5OX.png)Дамп:
```
0000   00 50 00 00 03 00 aa bb cc 80 20 00 08 00 45 c0
0010   00 29 77 f4 00 00 ff 06 bf b4 c0 a8 01 0b c0 a8
0020   01 0a 00 17 99 7c b5 c2 9f 4f 06 2b 80 c6 50 18
0030   0f e1 3d ed 00 00 69 00 00 00 00 00
```

4. SSH (Для этого я настроил работу SSH на Router и подключился к нему с linux)
    ``` 
        На Router:
    enable
    configure terminal 
    ip domain name igor.com
    crypto key generate rsa
    2048
    service password-encryption
    username admin privilege 15 password 10293
    aaa new-model
    line vty 0 4
    transport input ssh
    logging synchronous
    exec-timeout 60 0
    enable password 10293
    ```
    ![](https://i.imgur.com/O07Z2Ri.png)![](https://i.imgur.com/cS0dfXA.png)Дамп:
```
0000   aa bb cc 00 10 00 00 50 00 00 03 00 08 00 45 10
0010   00 48 0b f2 40 00 40 06 aa 55 c0 a8 01 0a c0 a8
0020   01 fe af 52 00 16 91 07 4c 79 bb 17 ee 9c 50 18
0030   fa f0 84 93 00 00 53 53 48 2d 32 2e 30 2d 4f 70
0040   65 6e 53 53 48 5f 38 2e 37 70 31 20 44 65 62 69
0050   61 6e 2d 34 0d 0a
```

5. HTTP (он генерируется при выходе в интернет)![](https://i.imgur.com/mio2SOz.png)Дамп:
```
0000   aa bb cc 00 90 10 00 50 00 00 03 00 08 00 45 00
0010   01 d4 dc 1c 40 00 40 06 1e 66 c0 a8 01 05 68 12
0020   14 e2 af c0 00 50 8d 45 62 9b 6b 3c 7c f7 50 18
0030   fa f0 40 68 00 00 50 4f 53 54 20 2f 67 73 72 73
0040   61 6f 76 73 73 6c 63 61 32 30 31 38 20 48 54 54
0050   50 2f 31 2e 31 0d 0a 48 6f 73 74 3a 20 6f 63 73
0060   70 2e 67 6c 6f 62 61 6c 73 69 67 6e 2e 63 6f 6d
0070   0d 0a 55 73 65 72 2d 41 67 65 6e 74 3a 20 4d 6f
0080   7a 69 6c 6c 61 2f 35 2e 30 20 28 58 31 31 3b 20
0090   4c 69 6e 75 78 20 78 38 36 5f 36 34 3b 20 72 76
00a0   3a 39 31 2e 30 29 20 47 65 63 6b 6f 2f 32 30 31
00b0   30 30 31 30 31 20 46 69 72 65 66 6f 78 2f 39 31
00c0   2e 30 0d 0a 41 63 63 65 70 74 3a 20 2a 2f 2a 0d
00d0   0a 41 63 63 65 70 74 2d 4c 61 6e 67 75 61 67 65
00e0   3a 20 65 6e 2d 55 53 2c 65 6e 3b 71 3d 30 2e 35
00f0   0d 0a 41 63 63 65 70 74 2d 45 6e 63 6f 64 69 6e
0100   67 3a 20 67 7a 69 70 2c 20 64 65 66 6c 61 74 65
0110   0d 0a 43 6f 6e 74 65 6e 74 2d 54 79 70 65 3a 20
0120   61 70 70 6c 69 63 61 74 69 6f 6e 2f 6f 63 73 70
0130   2d 72 65 71 75 65 73 74 0d 0a 43 6f 6e 74 65 6e
0140   74 2d 4c 65 6e 67 74 68 3a 20 37 39 0d 0a 43 6f
0150   6e 6e 65 63 74 69 6f 6e 3a 20 6b 65 65 70 2d 61
0160   6c 69 76 65 0d 0a 50 72 61 67 6d 61 3a 20 6e 6f
0170   2d 63 61 63 68 65 0d 0a 43 61 63 68 65 2d 43 6f
0180   6e 74 72 6f 6c 3a 20 6e 6f 2d 63 61 63 68 65 0d
0190   0a 0d 0a 30 4d 30 4b 30 49 30 47 30 45 30 09 06
01a0   05 2b 0e 03 02 1a 05 00 04 14 6b 70 64 fe 6a 74
01b0   43 dc 2d 6d 5b 79 ec ac a7 ae 5c 2e c3 3f 04 14
01c0   f8 ef 7f f2 cd 78 67 a8 de 6f 8f 24 8d 88 f1 87
01d0   03 02 b3 eb 02 0c 05 4f e6 c0 75 d2 da d9 6c 08
01e0   39 ad
```

6. SMB(сетевой протокол для общего доступа к файлам)![](https://i.imgur.com/BFwlGNA.png)Дамп:
```
0000   ff ff ff ff ff ff 50 00 00 04 00 00 08 00 45 00
0010   00 ce 00 1e 00 00 80 11 a3 a7 c0 a8 0a 0a c0 a8
0020   0a ff 00 8a 00 8a 00 ba c5 e7 11 0e ce 48 c0 a8
0030   0a 0a 00 8a 00 a4 00 00 20 46 41 45 44 43 4e 46
0040   48 45 4a 45 4f 44 48 43 41 43 41 43 41 43 41 43
0050   41 43 41 43 41 43 41 41 41 00 20 46 48 45 50 46
0060   43 45 4c 45 48 46 43 45 50 46 46 46 41 43 41 43
0070   41 43 41 43 41 43 41 43 41 42 4e 00 ff 53 4d 42
0080   25 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0090   00 00 00 00 00 00 00 00 00 00 00 00 11 00 00 0a
00a0   00 00 00 00 00 00 00 00 00 e8 03 00 00 00 00 00
00b0   00 00 00 0a 00 56 00 03 00 01 00 01 00 02 00 1b
00c0   00 5c 4d 41 49 4c 53 4c 4f 54 5c 42 52 4f 57 53
00d0   45 00 02 00 50 43 2d 57 49 4e 37 00

```