Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- getSettings().luajava = getSettings().luajava or {}
- getSettings().luajava.allowPrivateAccess = true
- getSettings().save()
- local function getHiddenMethod( class, name )
- log("&dArg:")
- log(class)
- local methods = class:getClass():getMethods()
- for i,m in pairs(methods) do
- if m:getName() == name then
- m:setAccessible(true)
- return m
- end
- end
- return nil
- end
- local Secure = luajava.bindClass("technicianlp.reauth.Secure")
- if not Secure then log("Unable to bind &b&BReAuth&f class for login. &7Is it installed?") return end
- --log("Reauth: "..tostring(Secure))
- --log("SessionValid: "..tostring(Secure:SessionValid()))
- --log("Login: "..tostring(Secure.login))
- local function login(user, pass)
- Secure:login(user, {string.byte(pass, 1, #pass)})
- return Secure:SessionValid()
- end
- if login(
- "", --username/email
- "", --password, consider using prompt in game, or some other method, plaintext is the least secure
- ) then
- log("Login Good")
- else
- log"Login fail'd"
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement