Hex
New Member
Posts: 19
|
Post by Hex on Jun 7, 2017 21:25:16 GMT
(Check out SQL Injection #1 for context)
DIFFICULTY: Hard LANGUAGE: Lua
After being hacked, the website has upped their login security. The password is now an 8 digit integer. The password is multiplied by a verification key to ensure correct data entry. Your objective is to have the verify function return true.
It does not matter how you accomplish this, just do not physically edit below the said line in the source code.
local password = 12345678
--you may only edit above this line
function verify(password)
local verification_key = 2
local valid_passwords = {[true]=true}
if valid_passwords[password*verification_key] then
return true
end
end
verify(password)
|
|
|
Post by Bit on Jun 7, 2017 21:32:58 GMT
50lv3d :]
|
|
|
Post by cntkillme on Jun 12, 2017 10:36:59 GMT
local password = setmetatable({ }, { __mul = function() return true end })
|
|