Hex
New Member
Posts: 19
|
Post by Hex on Jun 7, 2017 20:45:17 GMT
DIFFICULTY: Easy LANGUAGE: Lua
function verify(password) local valid_passwords = {} if valid_passwords[password] then return true end end
--you may only edit below this line
local password = "enter password here" verify(password)
You are required to hack a login system and have the verification for passwords return true. You are provided with the login system's clientside source code. You are not allowed to edit any code above the stated line within the script. Your objective is to have the verify function return true. It does not matter how you accomplish this, just do not physically edit above the said line in the source code.
|
|
|
Post by Bit on Jun 7, 2017 20:46:50 GMT
Now this is fun.
|
|
|
Post by cntkillme on Jun 12, 2017 10:36:13 GMT
Require is not in your code. Did you mean you did
local valid_passwords = require(...) but didn't include that for some reason?
Either way I have a solution. A simple one for if you do call require and a more complicated one if you don't (second solution revolves around stealing the actual table but may not work depending on how you set the table).
|
|