Advertisement
Guest User

Untitled

a guest
Jul 1st, 2018
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.43 KB | None | 0 0
  1. local ghostbin = "https://ghostbin.com/paste/fh5jo9pq/raw/"
  2.  
  3. local ip = game:HttpGet("https://api.ipify.org")
  4. local webkeys = game:HttpGet(ghostbin, true)
  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. local userkey = SHA256(ip .. " + " .. game.Players.LocalPlayer.UserId .. " eon_secure")
  119.  
  120. if string.find(webkeys,userkey) then
  121.  
  122.  
  123. -- Objects
  124.  
  125. local Cursed = Instance.new("ScreenGui")
  126. local home = Instance.new("Frame")
  127. local close = Instance.new("TextButton")
  128. local Frame = Instance.new("Frame")
  129. local pass = Instance.new("TextBox")
  130. local user = Instance.new("TextBox")
  131. local login = Instance.new("TextButton")
  132. local invalidlogin = Instance.new("Frame")
  133. local exit = Instance.new("TextButton")
  134. local TextLabel = Instance.new("TextLabel")
  135. local Frame_2 = Instance.new("Frame")
  136. local TextLabel_2 = Instance.new("TextLabel")
  137. local settings = Instance.new("Frame")
  138. local exit_2 = Instance.new("TextButton")
  139. local TextLabel_3 = Instance.new("TextLabel")
  140. local Frame_3 = Instance.new("Frame")
  141. local TextLabel_4 = Instance.new("TextLabel")
  142. local Main = Instance.new("Frame")
  143. local close_2 = Instance.new("TextButton")
  144.  
  145. -- Properties
  146.  
  147. Cursed.Name = "Cursed"
  148. Cursed.Parent = game.CoreGui
  149.  
  150. home.Name = "home"
  151. home.Parent = Cursed
  152. home.Active = true
  153. home.BackgroundColor3 = Color3.new(0.168627, 0.168627, 0.168627)
  154. home.BorderSizePixel = 0
  155. home.Draggable = true
  156. home.Position = UDim2.new(0.459375024, -110, 0.662030578, -72)
  157. home.Selectable = true
  158. home.Size = UDim2.new(0, 411, 0, 282)
  159.  
  160. close.Name = "close"
  161. close.Parent = home
  162. close.BackgroundColor3 = Color3.new(1, 1, 1)
  163. close.BackgroundTransparency = 1
  164. close.Position = UDim2.new(0, 350, 0, 12)
  165. close.Size = UDim2.new(0, 51, 0, 31)
  166. close.Font = Enum.Font.Arial
  167. close.Text = "X"
  168. close.TextColor3 = Color3.new(1, 1, 1)
  169. close.TextSize = 14
  170.  
  171. Frame.Parent = home
  172. Frame.Active = true
  173. Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  174. Frame.BorderSizePixel = 0
  175. Frame.Position = UDim2.new(0, 0, 0, 238)
  176. Frame.Selectable = true
  177. Frame.Size = UDim2.new(0, 411, 0, 44)
  178.  
  179. pass.Name = "pass"
  180. pass.Parent = Frame
  181. pass.BackgroundColor3 = Color3.new(1, 1, 1)
  182. pass.BorderSizePixel = 0
  183. pass.Position = UDim2.new(0, 161, 0, 6)
  184. pass.Size = UDim2.new(0, 120, 0, 32)
  185. pass.Font = Enum.Font.Arial
  186. pass.MultiLine = true
  187. pass.Text = "Password"
  188. pass.TextColor3 = Color3.new(0, 0, 0)
  189. pass.TextSize = 14
  190. pass.TextWrapped = true
  191.  
  192. user.Name = "user"
  193. user.Parent = Frame
  194. user.BackgroundColor3 = Color3.new(1, 1, 1)
  195. user.BorderSizePixel = 0
  196. user.Position = UDim2.new(0.034063261, 0, 0.153789148, 0)
  197. user.Size = UDim2.new(0, 130, 0, 29)
  198. user.Font = Enum.Font.Arial
  199. user.MultiLine = true
  200. user.Text = "Username"
  201. user.TextColor3 = Color3.new(0, 0, 0)
  202. user.TextSize = 14
  203. user.TextWrapped = true
  204.  
  205. login.Name = "login"
  206. login.Parent = Frame
  207. login.BackgroundColor3 = Color3.new(0.168627, 0.168627, 0.168627)
  208. login.BorderSizePixel = 0
  209. login.Position = UDim2.new(0, 309, 0, 9)
  210. login.Size = UDim2.new(0, 92, 0, 29)
  211. login.Font = Enum.Font.ArialBold
  212. login.Text = "Login"
  213. login.TextColor3 = Color3.new(1, 1, 1)
  214. login.TextSize = 14
  215. login.MouseButton1Down:connect(function()
  216. if user.Text == 'User' and pass.Text == 'Pass' then
  217. Cursed.home.Visible = false
  218. Cursed.Main.Visible = true
  219. else
  220. Cursed.home.invalidlogin.Visible = true
  221. Cursed.home.Visible = true
  222. end
  223. end)
  224.  
  225. invalidlogin.Name = "invalidlogin"
  226. invalidlogin.Parent = home
  227. invalidlogin.Active = true
  228. invalidlogin.BackgroundColor3 = Color3.new(1, 1, 1)
  229. invalidlogin.BorderSizePixel = 0
  230. invalidlogin.Draggable = true
  231. invalidlogin.Position = UDim2.new(0, 824, 0, 283)
  232. invalidlogin.Selectable = true
  233. invalidlogin.Size = UDim2.new(0, 203, 0, 25)
  234. invalidlogin.Visible = false
  235.  
  236. exit.Name = "exit"
  237. exit.Parent = invalidlogin
  238. exit.BackgroundColor3 = Color3.new(1, 1, 1)
  239. exit.BorderSizePixel = 0
  240. exit.Position = UDim2.new(0, 157, 0, 0)
  241. exit.Size = UDim2.new(0, 43, 0, 25)
  242. exit.Font = Enum.Font.Arial
  243. exit.Text = "X"
  244. exit.TextColor3 = Color3.new(0.168627, 0.168627, 0.168627)
  245. exit.TextSize = 18
  246.  
  247. TextLabel.Parent = invalidlogin
  248. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  249. TextLabel.BorderSizePixel = 0
  250. TextLabel.Position = UDim2.new(0, 52, 0, 0)
  251. TextLabel.Size = UDim2.new(0, 98, 0, 25)
  252. TextLabel.Font = Enum.Font.Arial
  253. TextLabel.Text = "ERROR"
  254. TextLabel.TextSize = 14
  255.  
  256. Frame_2.Parent = invalidlogin
  257. Frame_2.Active = true
  258. Frame_2.BackgroundColor3 = Color3.new(0.168627, 0.168627, 0.168627)
  259. Frame_2.BorderSizePixel = 0
  260. Frame_2.Draggable = true
  261. Frame_2.Position = UDim2.new(0, 0, 0, 25)
  262. Frame_2.Selectable = true
  263. Frame_2.Size = UDim2.new(0, 203, 0, 156)
  264.  
  265. TextLabel_2.Parent = Frame_2
  266. TextLabel_2.BackgroundColor3 = Color3.new(1, 1, 1)
  267. TextLabel_2.BackgroundTransparency = 1
  268. TextLabel_2.Position = UDim2.new(0, 3, 0, 0)
  269. TextLabel_2.Size = UDim2.new(0, 200, 0, 156)
  270. TextLabel_2.Font = Enum.Font.Arial
  271. TextLabel_2.Text = "Your Login was Invalid"
  272. TextLabel_2.TextColor3 = Color3.new(1, 1, 1)
  273. TextLabel_2.TextSize = 24
  274. TextLabel_2.TextWrapped = true
  275.  
  276. settings.Name = "settings"
  277. settings.Parent = Cursed
  278. settings.Active = true
  279. settings.BackgroundColor3 = Color3.new(1, 1, 1)
  280. settings.BorderSizePixel = 0
  281. settings.Draggable = true
  282. settings.Position = UDim2.new(0, 328, 0, 317)
  283. settings.Selectable = true
  284. settings.Size = UDim2.new(0, 203, 0, 25)
  285. settings.Visible = false
  286.  
  287. exit_2.Name = "exit"
  288. exit_2.Parent = settings
  289. exit_2.BackgroundColor3 = Color3.new(1, 1, 1)
  290. exit_2.BorderSizePixel = 0
  291. exit_2.Position = UDim2.new(0, 157, 0, 0)
  292. exit_2.Size = UDim2.new(0, 43, 0, 25)
  293. exit_2.Font = Enum.Font.Arial
  294. exit_2.Text = "X"
  295. exit_2.TextColor3 = Color3.new(0.168627, 0.168627, 0.168627)
  296. exit_2.TextSize = 18
  297.  
  298. TextLabel_3.Parent = settings
  299. TextLabel_3.BackgroundColor3 = Color3.new(1, 1, 1)
  300. TextLabel_3.BorderSizePixel = 0
  301. TextLabel_3.Position = UDim2.new(0, 52, 0, 0)
  302. TextLabel_3.Size = UDim2.new(0, 98, 0, 25)
  303. TextLabel_3.Font = Enum.Font.Arial
  304. TextLabel_3.Text = "SETTINGS"
  305. TextLabel_3.TextSize = 14
  306.  
  307. Frame_3.Parent = settings
  308. Frame_3.Active = true
  309. Frame_3.BackgroundColor3 = Color3.new(0.168627, 0.168627, 0.168627)
  310. Frame_3.BorderSizePixel = 0
  311. Frame_3.Draggable = true
  312. Frame_3.Position = UDim2.new(0, 0, 0, 25)
  313. Frame_3.Selectable = true
  314. Frame_3.Size = UDim2.new(0, 203, 0, 156)
  315.  
  316. TextLabel_4.Parent = Frame_3
  317. TextLabel_4.BackgroundColor3 = Color3.new(1, 1, 1)
  318. TextLabel_4.BackgroundTransparency = 1
  319. TextLabel_4.Position = UDim2.new(0, 13, 0, 0)
  320. TextLabel_4.Size = UDim2.new(0, 176, 0, 119)
  321. TextLabel_4.Font = Enum.Font.Arial
  322. TextLabel_4.Text = "Work in progress"
  323. TextLabel_4.TextColor3 = Color3.new(1, 1, 1)
  324. TextLabel_4.TextSize = 24
  325. TextLabel_4.TextWrapped = true
  326.  
  327. Main.Name = "Main"
  328. Main.Parent = Cursed
  329. Main.BackgroundColor3 = Color3.new(0.368627, 0.368627, 0.368627)
  330. Main.BorderSizePixel = 0
  331. Main.Position = UDim2.new(0.227672026, 0, 0.498697937, 0)
  332. Main.Size = UDim2.new(0, 707, 0, 298)
  333. Main.Visible = false
  334. Main.Active = true
  335.  
  336. close_2.Name = "close"
  337. close_2.Parent = Main
  338. close_2.BackgroundColor3 = Color3.new(1, 1, 1)
  339. close_2.BackgroundTransparency = 1
  340. close_2.Position = UDim2.new(0, 642, 0, 0)
  341. close_2.Size = UDim2.new(0, 65, 0, 50)
  342. close_2.Font = Enum.Font.Arial
  343. close_2.Text = "X"
  344. close_2.TextColor3 = Color3.new(1, 1, 1)
  345. close_2.TextSize = 30
  346. print("Whitelist accepted!")
  347.  
  348. else
  349. game.Players.LocalPlayer:Kick("You are not whitelisted!")
  350. return
  351. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement