Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local getService = game.GetService
- local playersService = getService(game, "Players")
- local localPlayer = playersService.LocalPlayer
- local httpGet = game.HttpGet or game.HttpGetAsync
- local function decodeJson(json)
- local jsonTable = {}
- pcall(function ()
- jsonTable = getService(game, "HttpService"):JSONDecode(json)
- end)
- return jsonTable
- end;
- local scriptDirectory = "N4U"
- local function newAuthUser()
- local NEW_CODE = tonumber(tostring(os.time(os.date("!*t"))):sub(0, tostring(os.time(os.date("!*t"))):len() - 3))
- local NEW_TOKEN = NEW_CODE + localPlayer.UserId;
- local RETURN_BOOL, RETURN_STRING = ypcall(httpGet, game, "https://nebot.us/hash/sha256.php?code=asd")
- if not RETURN_BOOL or RETURN_STRING ~= "688787d8ff144c502c7f5cffaafe2cc588d86079f9de88304c26b0cb99ce91c6" then
- return false;
- end
- local DIRECT_JSON = httpGet(game, "https://nebot.us/Whitelisting/"..scriptDirectory.."?getWhitelisted="..localPlayer.UserId)
- local SHA1_JSON = httpGet(game, "https://nebot.us/Whitelisting/sha12.php?sha="..NEW_TOKEN)
- if (DIRECT_JSON == true) then return false end
- local DIRECT_DECODED = decodeJson(DIRECT_JSON);
- if (DIRECT_DECODED == true) then return false end
- if (DIRECT_DECODED["verify"] == nil) then return false end;
- if (DIRECT_DECODED["verify"] ~= NEW_TOKEN*4) then return false end;
- if (SHA1_JSON == true) then return false end
- local SHA1_DECODED = decodeJson(SHA1_JSON);
- if (SHA1_DECODED == true) then return false end
- if (SHA1_DECODED["recieved"] == nil) then return false end;
- if (SHA1_DECODED["recieved"] ~= tostring(NEW_TOKEN)) then return false end;
- if (DIRECT_DECODED["token"] ~= SHA1_DECODED["return"]) then return false end
- return true
- end
- if newAuthUser() then
- //source here
- else
- game:Shutdown()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement