Mitko1223tm

the private weapon

Oct 20th, 2018
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.84 KB | None | 0 0
  1. --This is created by Umbreonteam
  2. --It removes ALL viruses! Also removes Vaccine (which also makes lag)
  3. --If you find another virus thats not in the "names", add it!
  4. --Please give credit, or at least leave my name in
  5. --the script.
  6. --Thank you!
  7.  
  8. ------------------------------------------------
  9. Print_Scan_Results = true --Prints the results of each scan in the output window.
  10. ------------------------------------------------
  11. Quarantine_Instead_of_Delete = false --Quarantines all malicious objects into the Lighting Directory for you to view, after making all hidden objects visable.
  12. ------------------------------------------------
  13. --Script Created by Vitos
  14. q = Instance.new("Model")
  15. q.Name = "Quarantine"
  16. classes = {"Script", "LocalScript", "BackpackItem", "Feature", "Glue", "HtmlWindow", "JointInstance", "LocalBackpack", "LocalBackpackItem", "MotorFeature", "Mouse", "Rotate", "RotateP", "RotateV", "Snap", "StockSound", "VelocityMotor", "Weld", "Geometry", "Timer","ChangeHistoryService","Script","Fire"}
  17. names = {"Infected", "ROFL", "Snap Reducer", "SnapReducer", "Snap-Reducer", "Anti-Lag", "Anti Lag", "AntiLag", "Wildfire", "AntiVirus", "Anti-Virus", "Anti Virus", "4D Being", "No samurai plzzz", "OHAI", "VIRUS", "Guest_Talking_Script", "Guest Free Chat Script", "lol", "LOL", "bob", "BOB", "Snap Remover", "SnapRemover","Vaccine","Fire"}
  18. hidden = Instance.new("StringValue")
  19. file = {}
  20.  
  21. function Start()
  22. workspace = game.Workspace:GetChildren()
  23. qu = q:GetChildren()
  24. index = {}
  25. virus = 0
  26.  
  27. function Scan(object)
  28. for i = 1,#object do
  29. inside = object[i]:GetChildren()
  30. if Malicious(object[i]) then
  31. virus = virus+1
  32. Name(object[i])
  33. Quarantine(object[i])
  34. else
  35. if #inside > 0 then
  36. Scan(inside)
  37. end
  38. end
  39. end
  40. end
  41.  
  42. function Malicious(class)
  43. for x = 1, #classes do
  44. if class.className == classes[x] and #(class:GetChildren()) > 0 then return true end
  45. end
  46. for x = 1, #names do
  47. if string.lower(class.Name) == string.lower(names[x]) then return true end
  48. end
  49. return false
  50. end
  51.  
  52. function Hidden(class)
  53. for x = 1, #classes do
  54. if class.className == classes[x] then return true end
  55. end
  56. return false
  57. end
  58.  
  59. function Name(malware)
  60. cur = malware
  61. file[1] = "."..cur.Name
  62. while cur.Parent.Name ~= "Workspace" do
  63. cur = cur.Parent
  64. file[#file+1] = "."..cur.Name
  65. end
  66. inde = "game.Workspace"
  67. for j = 1, #file do
  68. inde = inde..file[#file+1-j]
  69. end
  70. file = {}
  71. inde = inde.." ("..malware.className.." Class)"
  72. index[#index+1] = inde
  73. malware.Parent = q
  74. end
  75.  
  76. function Quarantine(malware)
  77. if malware ~= nil then
  78. contain = malware:GetChildren()
  79. if Hidden(malware) then
  80. h = hidden:clone()
  81. h.Name = malware.Name
  82. h.Value = "Original Class: "..malware.className
  83. h.Parent = malware.Parent
  84. for j = 1, #contain do
  85. contain[j].Parent = h
  86. end
  87. malware:remove()
  88. malware = h
  89. end
  90. contain = malware:GetChildren()
  91. for j = 1, #contain do
  92. Quarantine(contain[j])
  93. end
  94. end
  95. end
  96.  
  97. Scan(workspace)
  98.  
  99. if virus > 0 and Quarantine_Instead_of_Delete then
  100. q.Parent = game.Lighting
  101. end
  102.  
  103. if virus > 0 and Print_Scan_Results then
  104. print("--------------------")
  105. print("Scan Results:")
  106. print("Potentially malicious objects were found in the following locations:")
  107. for i = 1, #index do
  108. print(" -- "..index[i])
  109. end
  110. if Quarantine_Instead_of_Delete then
  111. print("These objects have been quarantined to the Lighting Directory.")
  112. else
  113. print("These objects have been removed.")
  114. end
  115. print("--------------------")
  116. Start()
  117. wait()
  118. Start()
  119. end
  120. end
  121.  
  122. Start()
  123. game.Workspace.ChildAdded:connect(Start)
Add Comment
Please, Sign In to add comment