---
# System prepended metadata

title: Practice 7

---

# Practice 7
![](https://i.imgur.com/OyK15tv.png)

## ICMP

Настройка моста 
![](https://i.imgur.com/mB04a4o.png)
![](https://i.imgur.com/KibI2pC.png)
Устанавливаем https://github.com/friedrich/hans

```
git clone https://github.com/friedrich/hans
```
![](https://i.imgur.com/MI61J6j.png)
Устанавливаем net-tools
```
sudo apt install net-tools
cd hans
make
```
![](https://i.imgur.com/nrlvhYl.png)
Поднимаем ICMP тунель 
```
sudo ./hans -s 10.1.2.0 -p 1234
```
![](https://i.imgur.com/FFems4b.png)
Все то же самое устанавливаем на Debian 
```
apt update -y
apt install git
git clone https://github.com/friedrich/hans
cd hans/
apt install make net-tools g++
make
```
![](https://i.imgur.com/gvC25zM.png)
```
./hans -c 192.168.17.130 -p 1234
```
![](https://i.imgur.com/iHRQuxY.png)
![](https://i.imgur.com/pmBNIKs.png)
Подключаемся по ssh через icmp тунель
![](https://i.imgur.com/jTjBveu.png)

## DNS

Уставнавливаем iodine и редактируем resolve.conf
```
apt install iodine
nano /etc/resolv.conf
```
![](https://i.imgur.com/JsXZm38.png)
Уставнавливаем iodine на Kali
```
sudo apt install iodine
sudo iodined -P 1234 10.99.99.1/24 -c i.example.com
```
![](https://i.imgur.com/KgYc4hU.png)
```
iodine -P 1234 i.example.com
```
![](https://i.imgur.com/j84zmba.png)
![](https://i.imgur.com/aCaDj70.png)
![](https://i.imgur.com/WrSjTl2.png)
Подключаемся по ssh через DNS тунель
![](https://i.imgur.com/PhhYHU6.png)




