localsocket=require("socket")localserver=assert(socket.bind("127.0.0.1",50001))functionhash(password)prog=io.popen("echo "..password.." | sha1sum","r")data=prog:read("*all")prog:close()data=string.sub(data,1,40)returndataendwhile1dolocalclient=server:accept()client:send("Password: ")client:settimeout(60)localline,err=client:receive()ifnoterrthenprint("trying "..line)-- log from where ;\localh=hash(line)ifh~="4754a4f4bd5787accd33de887b9250a0691dd198"thenclient:send("Better luck next time\n");elseclient:send("Congrats, your token is 413**CARRIER LOST**\n")endendclient:close()end