diff --git a/HTB/environment/en.md b/HTB/environment/en.md index a69d874..2ae171d 100644 --- a/HTB/environment/en.md +++ b/HTB/environment/en.md @@ -445,12 +445,12 @@ Here I lost some time, thinking where or how could we hijack execution of these Searching web for BASH_ENV gives us this explanation: - ``` +``` BASH_ENV is an environment variable in Unix-like systems that specifies the file to be executed when a non-interactive shell is started. It allows users to set up a specific environment for scripts or commands run in that shell. - ``` +``` ### Exploit diff --git a/HTB/environment/ua.md b/HTB/environment/ua.md index cf788f5..2913602 100644 --- a/HTB/environment/ua.md +++ b/HTB/environment/ua.md @@ -458,15 +458,14 @@ df -h ### BASH_ENV [Документація gnu](https://www.gnu.org/software/bash/manual/bash.html#index-BASH_005fENV) визначає BASH_ENV як: - - ``` +``` Якщо ця змінна встановлена під час виклику Bash для виконання скрипта оболонки, її значення розширюється і використовується як ім'я файлу запуску, який слід прочитати перед виконанням скрипта. Див. Файли запуску Bash. - ``` +``` У розділі [Файли запуску Bash](https://www.gnu.org/software/bash/manual/bash.html#Bash-Startup-Files) сказано: - ``` +``` Викликано в неінтерактивному режимі Коли Bash запускається в неінтерактивному режимі, @@ -480,7 +479,7 @@ df -h Як зазначено вище, якщо неінтерактивна оболонка викликається з опцією –login, Bash намагається прочитати та виконати команди з файлів запуску оболонки входу. - ``` +``` ### Експлойт