Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Ultimate quarantine! | [v.1.1] (maybe update in the future)
- --Remake by l3uz.
- --Changelog ||| v1.0 ||| Created script.
- -- ||| v1.1 ||| Added 4 viruses to remove.
- ------------------------------------------------
- Print_Scan_Results = true --Prints the results of each scan in the output window.
- ------------------------------------------------
- Quarantine_Instead_of_Delete = true --Quarantines all malicious objects into the Lighting Directory for you to view, after making all hidden objects visable.
- ------------------------------------------------
- --that's script
- --i added 17 viruses to remove.
- q = Instance.new("Model")
- q.Name = "Quarantine"
- classes = {"Fire", "AutoJoint", "BackpackItem", "Feature", "Script", "Glue", "HtmlWindow", "JointInstance", "LocalBackpack", "LocalBackpackItem", "MotorFeature", "Mouse", "Rotate", "RotateP", "RotateV", "Snap", "StockSound", "VelocityMotor", "Weld", "Geometry", "Timer","ChangeHistoryService"}
- names = {"inFECtion", "LOLWUT? LOLHOO? LOLYOU! Got hacked", "Vaccine", "SnapReducer", "Snap-Reducer", "Anti-Lag", "Anti Lag", "AntiLag", "Wildfire", "AntiVirus", "Anti-Virus", "Anti Virus", "4D Being", "No samurai plzzz", "OHAI", "VIRUS", "Vaccine", "Infected","LOLNO", "Script.. or is it", "Script... or is it", "d���������������������������������", "virus script", "virUs", "viRUS", "VirUs", "virus... virus... LEET VIRUS!!!", "Instant Crash Script", "instant crash script", "The Ultimate Script by 4nothing4", "Deadly Pingu Virus", "MLGify [virus]", "FREE VIRUS", "a virus", "��", "DO NOT PUT THIS IN YOUR PLACE - IT IS DANGEROUS", "1", "11", "111"} --Add the name of the infection you have here.
- hidden = Instance.new("StringValue")
- file = {}
- function Start()
- workspace = game.Workspace:GetChildren()
- qu = q:GetChildren()
- index = {}
- virus = 0
- function Scan(object)
- for i = 1,#object do
- inside = object[i]:GetChildren()
- if Malicious(object[i]) then
- virus = virus+1
- Name(object[i])
- Quarantine(object[i])
- else
- if #inside > 0 then
- Scan(inside)
- end
- end
- end
- end
- function Malicious(class)
- for x = 1, #classes do
- if class.className == classes[x] and #(class:GetChildren()) > 0 then return true end
- end
- for x = 1, #names do
- if string.lower(class.Name) == string.lower(names[x]) then return true end
- end
- return false
- end
- function Hidden(class)
- for x = 1, #classes do
- if class.className == classes[x] then return true end
- end
- return false
- end
- function Name(malware)
- cur = malware
- file[1] = "."..cur.Name
- while cur.Parent.Name ~= "Workspace" do
- cur = cur.Parent
- file[#file+1] = "."..cur.Name
- end
- inde = "game.Workspace"
- for j = 1, #file do
- inde = inde..file[#file+1-j]
- end
- file = {}
- inde = inde.." ("..malware.className.." Class)"
- index[#index+1] = inde
- malware.Parent = q
- end
- function Quarantine(malware)
- if malware ~= nil then
- contain = malware:GetChildren()
- if Hidden(malware) then
- h = hidden:clone()
- h.Name = malware.Name
- h.Value = "Original Class: "..malware.className
- h.Parent = malware.Parent
- for j = 1, #contain do
- contain[j].Parent = h
- end
- malware:remove()
- malware = h
- end
- contain = malware:GetChildren()
- for j = 1, #contain do
- Quarantine(contain[j])
- end
- end
- end
- Scan(workspace)
- if virus > 0 and Quarantine_Instead_of_Delete then
- q.Parent = game.Lighting
- end
- if virus > 0 and Print_Scan_Results then
- print("--------------------")
- print("Scan Results:")
- print("Potentially malicious objects were found in the following locations:")
- for i = 1, #index do
- print(" -- "..index[i])
- end
- if Quarantine_Instead_of_Delete then
- print("These objects have been quarantined to the Lighting Directory.")
- else
- print("These objects have been removed.")
- end
- print("--------------------")
- Start()
- wait()
- Start()
- end
- end
- Start()
- game.Workspace.ChildAdded:connect(Start)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement