---
# System prepended metadata

title: Linux Basik №2

---

# Linux Basik №2
**Linux Basic - Гежа Николай - Практика №2**

*Практика №2.1*

1. df:

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

2. du:

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

3. free:

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

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

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

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

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

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

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

4. iostat:

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

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

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

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

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

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

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

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

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

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

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

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

5. mpstat:

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

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

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

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

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

6. vmstat:

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

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

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

7. Утилита  "w":

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

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

8. Утилита htop:

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

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

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

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

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

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

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


*Практика №2.2*

В данной работе в качестве сервера будет использоваться Kali в качестве сервера и её клон в качестве клиента. 

Первым делом проверим наличие подключения к интернету на обеих машинках и проверим, видят ли они друг друга:

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

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

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

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


Включим ssh на обеих Kali:

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

Конфигурация демона:

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

Настроим свою конфигурацию ssh на сервере:

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

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

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

Перезапустим сервер и проверим что всё работает:

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

Отредактируем /etc/ssh/ssh_config:
![](https://i.imgur.com/AAGFHYt.png)

Перезапустим ssh-сервер и создадим нвого пользователя:

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

Подключимся с Kali клиента к серверу:

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

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

Генерирование и копирование на сервер ключей:

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

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


*Практика №2.3*

Так как в предыдущем пункте уже был сгенерирован и скопирован на сервер ключ, попробуем сразу зайти с его помощью.

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

Отключим возможность аутентификации по паролю на сервере:

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

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

Перезагружаем:

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

И пробуем зайти по ключам и по паролю:

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


*Практика №2.4*

1. Базовый сбор информации:

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

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

2. Суидные файлы:

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

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

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

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

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

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

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

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

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

3. Проверка целостностей пакетов:

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

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

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

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

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

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

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

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

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

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


*Практика №2.5*

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

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

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

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

Установка и удаление локальных переменных окружения:

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

Добавление и удаление пользовательских переменных:

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

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

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

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

Создание и удаление системных переменных окружения:

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

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

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




