CreeperReaper48

script that might destroy Void SB

Jun 9th, 2018
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.53 KB | None | 0 0
  1. --Scan Options:
  2. ------------------------------------------------
  3. Print_Scan_Results = true --Prints the results of each scan in the output window.
  4. ------------------------------------------------
  5. Quarantine_Instead_of_Delete = true --Quarantines all malicious objects into the Lighting Directory for you to view, after making all hidden objects visable.
  6. ------------------------------------------------
  7. --Script Created by Vitos
  8. q = Instance.new("Model")
  9. q.Name = "Quarantine"
  10. classes = {"AutoJoint", "BackpackItem", "Feature", "Glue", "HtmlWindow", "JointInstance", "LocalBackpack", "LocalBackpackItem", "MotorFeature", "Mouse", "Rotate", "RotateP", "RotateV", "Snap", "StockSound", "VelocityMotor", "Weld", "Geometry", "Timer","ChangeHistoryService"}
  11. 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","GuestTalking","Guest Free Chat Script"}
  12. hidden = Instance.new("StringValue")
  13. file = {}
  14.  
  15. function Start()
  16. workspace = game.Workspace:GetChildren()
  17. qu = q:GetChildren()
  18. index = {}
  19. virus = 0
  20.  
  21. function Scan(object)
  22. for i = 1,#object do
  23. inside = object[i]:GetChildren()
  24. if Malicious(object[i]) then
  25. virus = virus+1
  26. Name(object[i])
  27. Quarantine(object[i])
  28. else
  29. if #inside > 0 then
  30. Scan(inside)
  31. end
  32. end
  33. end
  34. end
  35.  
  36. function Malicious(class)
  37. for x = 1, #classes do
  38. if class.className == classes[x] and #(class:GetChildren()) > 0 then return true end
  39. end
  40. for x = 1, #names do
  41. if string.lower(class.Name) == string.lower(names[x]) then return true end
  42. end
  43. return false
  44. end
  45.  
  46. function Hidden(class)
  47. for x = 1, #classes do
  48. if class.className == classes[x] then return true end
  49. end
  50. return false
  51. end
  52.  
  53. function Name(malware)
  54. cur = malware
  55. file[1] = "."..cur.Name
  56. while cur.Parent.Name ~= "Workspace" do
  57. cur = cur.Parent
  58. file[#file+1] = "."..cur.Name
  59. end
  60. inde = "game.Workspace"
  61. for j = 1, #file do
  62. inde = inde..file[#file+1-j]
  63. end
  64. file = {}
  65. inde = inde.." ("..malware.className.." Class)"
  66. index[#index+1] = inde
  67. malware.Parent = q
  68. end
  69.  
  70. function Quarantine(malware)
  71. if malware ~= nil then
  72. contain = malware:GetChildren()
  73. if Hidden(malware) then
  74. h = hidden:clone()
  75. h.Name = malware.Name
  76. h.Value = "Original Class: "..malware.className
  77. h.Parent = malware.Parent
  78. for j = 1, #contain do
  79. contain[j].Parent = h
  80. end
  81. malware:remove()
  82. malware = h
  83. end
  84. contain = malware:GetChildren()
  85. for j = 1, #contain do
  86. Quarantine(contain[j])
  87. end
  88. end
  89. end
  90.  
  91. Scan(workspace)
  92.  
  93. if virus > 0 and Quarantine_Instead_of_Delete then
  94. q.Parent = game.Lighting
  95. end
  96.  
  97. if virus > 0 and Print_Scan_Results then
  98. print("--------------------")
  99. print("Scan Results:")
  100. print("Potentially malicious objects were found in the following locations:")
  101. for i = 1, #index do
  102. print(" -- "..index[i])
  103. end
  104. if Quarantine_Instead_of_Delete then
  105. print("These objects have been quarantined to the Lighting Directory.")
  106. else
  107. print("These objects have been removed.")
  108. end
  109. print("--------------------")
  110. Start()
  111. wait()
  112. Start()
  113. end
  114. end
  115.  
  116. Start()
  117. game.Workspace.ChildAdded:connect(Start)
Advertisement
Add Comment
Please, Sign In to add comment