Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if file.Exists("lua/autorun/server/snte_source.lua","LUA") then
- timer.Simple(1,function()
- local rdmNetNum = 30 -- having more usable exploitable addons means it's 100% darkrp gamemode lol
- // global list of exploits that circulates
- local legit_nets = {
- "nope"
- }
- // battle against a risk of backdoor
- local bad_nets = {
- "simple_bd_nope"
- }
- local legit_num = #legit_nets
- local bad_num = #bad_nets
- local function ban(_, ply)
- ply:Ban(0, false)
- ply:Kick("(SNTE) Net exploit detected !")
- end
- timer.Simple(1, function()
- for i = legit_num, 1, -1 do
- if util.NetworkStringToID(legit_nets[i]) ~= 0 then
- print("(SNTE) " .. table.remove(legit_nets, i) .. " has been detected but probably not exploitable")
- legit_num = legit_num - 1
- end
- end
- for i = bad_num, 1, -1 do
- if util.NetworkStringToID(bad_nets[i]) ~= 0 then
- print("(SNTE) " .. table.remove(bad_nets, i) .. " has been detected ! Check your addons and make sure to remove the backdoor")
- net.Receive(bad_nets[i], ban)
- bad_num = bad_num - 1
- end
- end
- local global_nets = legit_nets
- table.Add(global_nets, bad_nets)
- for i = 1, rdmNetNum do
- local rand = table.remove(global_nets, math.random(1, bad_num + legit_num - (i-1)))
- if (not rand) then
- break
- end
- util.AddNetworkString(rand)
- net.Receive(rand, ban)
- print("(SNTE) Booby-trapped " .. rand)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement