Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tranzystorekk/roulette
https://github.com/tranzystorekk/roulette
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/tranzystorekk/roulette
- Owner: tranzystorekk
- Created: 2019-11-19T08:34:25.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-16T11:57:34.000Z (about 3 years ago)
- Last Synced: 2023-10-28T06:24:52.081Z (about 1 year ago)
- Language: Shell
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fake Linux Russian Roulette
Do you have a gullible/overly confident friend you want to prank?
Look no further!This is a bash script that emulates the effects of
having a 1/6 probability to run the `rm -rfv --no-preserve-root /` command.
Not for the faint of heart!### Prerequisites
You need only the most obvious and widely available
Linux tools:* bash
* GNU Findutils### Execution
Source the script in your victim's shell, then run the `roulette` function.
It will ask for root permissions via the `sudo` command.### How it works
Obviously running the `rm` command on the root dir is production unsafe,
so this script uses GNU find to simulate the output of the `rm -rfv`
as accurately as possible. *No files are ever removed.*### Killing the program
This script is designed to be fairly difficult to silence
(requires root permissions, ignores SIGINT and SIGQUIT).
Therefore the best way to shut it down once it goes BANG
is to kill the `find` process:`sudo pkill find`