SHARE
TWEET

Untitled

Vzurxy Sep 22nd, 2018 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local key = "Anime"
  2. local hashlevel = 10
  3.  
  4. local url = "Whitelist link here/raw pastebin"
  5.  
  6. function SHA256(mes)
  7.   local con = 4294967296
  8.   local ch = {0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19}
  9.   local k = {0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5,
  10.   0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174,
  11.   0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da,
  12.   0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7, 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967,
  13.   0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13, 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85,
  14.   0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3, 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070,
  15.   0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5, 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3,
  16.   0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2}
  17.  
  18.   local function bit(obj, bit)
  19.     return obj%(bit*2)>=bit
  20.   end
  21.  
  22.   local function Or(ca, cb)
  23.     local new = 0
  24.     for i = 0, 32 do
  25.       new = new+((bit(ca,2^i)or bit(cb,2^i))and 2^i or 0)
  26.     end
  27.     return new
  28.   end
  29.  
  30.   local function rshift(obj, times)
  31.     times = times or 1
  32.     return math.floor(obj*.5^times)%con
  33.   end
  34.  
  35.   local function lshift(obj, times)
  36.     times = times or 1
  37.     return math.floor(obj*2^times)%con
  38.   end
  39.  
  40.   local function rrotate(obj,times)
  41.     times = times or 1
  42.     return Or(rshift(obj,times),lshift(obj,32-times))
  43.   end
  44.  
  45.   local function And(ca, cb)
  46.     local new = 0
  47.     for i = 0, 32 do
  48.       new = new+((bit(ca,2^i)and bit(cb,2^i))and 2^i or 0)
  49.     end
  50.     return new % 2^32
  51.   end
  52.  
  53.   local function append(cur)
  54.     local new = ""
  55.     for i = 1, 8 do
  56.       local r = cur%256
  57.       new = string.char(r)..new
  58.       cur = (cur-r)/256
  59.     end
  60.     return new
  61.   end
  62.  
  63.   local function Not(ca)
  64.     return (2^32-1)-ca
  65.   end
  66.  
  67.   local function xor(ca, cb)
  68.     local new = 0
  69.     for i = 0, 32 do
  70.       new = new+(bit(ca,2^i)~=bit(cb,2^i)and 2^i or 0)
  71.     end
  72.     return new%con
  73.   end
  74.  
  75.   mes = mes.."\128"..("\0"):rep(64-((#mes+9)%64))..append(#mes*8)
  76.  
  77.   local Chunks = {}
  78.   for i = 1, #mes, 64 do
  79.     table.insert(Chunks,mes:sub(i,i+63))
  80.   end
  81.   for _,Chunk in next,Chunks do
  82.     local w = {}
  83.     for i = 0, 15 do
  84.       w[i] = (function()local n=0 for q=1,4 do n=n*256+Chunk:byte(i*4+q) end return n end)()
  85.     end
  86.     for i = 16, 63 do
  87.       local s0 = xor(xor(rrotate(w[i-15],7),rrotate(w[i-15],18)),rshift(w[i-15],3))
  88.       local s1 = xor(xor(rrotate(w[i-2],17),rrotate(w[i-2],19)),rshift(w[i-2],10))
  89.       w[i] = (w[i-16] + s0 + w[i-7] + s1)%con
  90.     end
  91.     local a,b,c,d,e,f,g,h=unpack(ch)
  92.     for i = 0, 63 do
  93.       local s0 = xor(xor(rrotate(a,2),rrotate(a,13)),rrotate(a,22))
  94.       local s1 = xor(xor(rrotate(e,6),rrotate(e,11)),rrotate(e,25))
  95.       local t0 = h+s1+xor(And(e,f),And(Not(e),g))+k[i+1]+w[i]
  96.       local t1 = s0+xor(xor(And(a,b),And(a,c)),And(b,c))
  97.       h = g
  98.       g = f
  99.       f = e
  100.       e = (d+t0)%con
  101.       d = c
  102.       c = b
  103.       b = a
  104.       a = (t0+t1)%con
  105.     end
  106.     ch[1]=(ch[1]+a)%con
  107.     ch[2]=(ch[2]+b)%con
  108.     ch[3]=(ch[3]+c)%con
  109.     ch[4]=(ch[4]+d)%con
  110.     ch[5]=(ch[5]+e)%con
  111.     ch[6]=(ch[6]+f)%con
  112.     ch[7]=(ch[7]+g)%con
  113.     ch[8]=(ch[8]+h)%con
  114.   end
  115.   return ("%08x%08x%08x%08x%08x%08x%08x%08x"):format(unpack(ch))
  116. end
  117.  
  118. function levels(vault)
  119.     local num = hashlevel
  120.     local whitelistkey = SHA256(vault)
  121.     local times = 0
  122.     for i=1, num do
  123.         if times >= 0 then
  124.             whitelistkey = SHA256(whitelistkey)
  125.             times = times + 1
  126.         elseif times <= 0 then
  127.             whitelistkey = vault
  128.             return
  129.         end
  130.     end
  131.     return whitelistkey
  132. end
  133. local urlcheck = url
  134. local ip = game:HttpGet("https://api.ipify.org")
  135. local ipcheck = ip
  136. local webkeys = game:HttpGet(url, true)
  137. local vault = SHA256(ip .. key .. "eon_tranquility")
  138. local whitelistkey = levels(vault)
  139.  
  140. if ip ~= ipcheck then
  141.     game.Players.LocalPlayer:Kick("IP Spoofing Detected! User kicked.")
  142.     return
  143. end
  144.  
  145. if url ~= urlcheck then
  146.     game.Players.LocalPlayer:Kick("URL Spoofing Detected! User kicked.")
  147.     return
  148. end
  149.  
  150. if string.find(webkeys,whitelistkey) then
  151.     print("Whitelist verified!")
  152.     loadstring(game:HttpGet(('https://pastebin.com/raw/i0cJHL7L'),true))()
  153. else
  154.     print("Whitelist rejected!")
  155.     game.Players.LocalPlayer:Kick("You are not whitelisted!")
  156.     return
  157. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top