Advertisement
SHCREW

Kill snte

Dec 19th, 2018
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. if file.Exists("lua/autorun/server/snte_source.lua","LUA") then
  2. timer.Simple(1,function()
  3. local rdmNetNum = 30 -- having more usable exploitable addons means it's 100% darkrp gamemode lol
  4.  
  5. // global list of exploits that circulates
  6. local legit_nets = {
  7. "nope"
  8. }
  9.  
  10. // battle against a risk of backdoor
  11. local bad_nets = {
  12. "simple_bd_nope"
  13.  
  14. }
  15.  
  16.  
  17. local legit_num = #legit_nets
  18. local bad_num = #bad_nets
  19.  
  20. local function ban(_, ply)
  21. ply:Ban(0, false)
  22. ply:Kick("(SNTE) Net exploit detected !")
  23. end
  24.  
  25. timer.Simple(1, function()
  26. for i = legit_num, 1, -1 do
  27. if util.NetworkStringToID(legit_nets[i]) ~= 0 then
  28. print("(SNTE) " .. table.remove(legit_nets, i) .. " has been detected but probably not exploitable")
  29. legit_num = legit_num - 1
  30. end
  31. end
  32. for i = bad_num, 1, -1 do
  33. if util.NetworkStringToID(bad_nets[i]) ~= 0 then
  34. print("(SNTE) " .. table.remove(bad_nets, i) .. " has been detected ! Check your addons and make sure to remove the backdoor")
  35. net.Receive(bad_nets[i], ban)
  36. bad_num = bad_num - 1
  37. end
  38. end
  39. local global_nets = legit_nets
  40. table.Add(global_nets, bad_nets)
  41. for i = 1, rdmNetNum do
  42. local rand = table.remove(global_nets, math.random(1, bad_num + legit_num - (i-1)))
  43. if (not rand) then
  44. break
  45. end
  46. util.AddNetworkString(rand)
  47. net.Receive(rand, ban)
  48. print("(SNTE) Booby-trapped " .. rand)
  49. end
  50. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement