SHARE
TWEET

autorun.lua

a guest Nov 22nd, 2019 101 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local c = require("component")
  2. local fs = require("filesystem")
  3. local proxy
  4. local tab = {}
  5.  
  6. for k, v in c.list("file", false) do
  7.   table.insert(tab, k)
  8. end
  9.  
  10. local results = 0
  11. for k, v in ipairs(tab) do
  12.   if fs.exists("/mnt/"..v:match("...").."/nuke") then
  13.     proxy = v
  14.     results = results + 1
  15.   end
  16. end
  17.  
  18. if results == 0 then
  19.   c.computer.beep(1000,0.1)
  20. elseif results > 1 then
  21.   c.computer.beep(1750,0.1)
  22. end
  23.  
  24. fs.mount(proxy , "/rip")
  25. fs.copy("/rip/nuke","/autorun.lua")
  26. fs.copy("/rip/password","/bin/password.txt")
  27. fs.umount("/rip")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top