From f4747c076f61e20a26d1a1cf0dde80c811178ce4 Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Fri, 14 Jul 2017 00:03:16 +1000 Subject: [PATCH] added a version of luash that requires you to enter _G.pass before letting you do anything. --- modules/applications/luash-login.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 modules/applications/luash-login.lua diff --git a/modules/applications/luash-login.lua b/modules/applications/luash-login.lua new file mode 100644 index 0000000..ae4025a --- /dev/null +++ b/modules/applications/luash-login.lua @@ -0,0 +1,18 @@ +function luash(si) +s("lua shell",function() + local np = "" + while np ~= pass do + write("Password: ") + np=readln("*") + end + if _OSVERSION and _BD then + write(_OSVERSION.." on "..nID.." (built at ".._BD..")\t") + end + print(tostring(computer.freeMemory()/1024).."K free.",_G.motd) + print(_VERSION) + while true do + write("> ") + print(pcall(load(readln()))) + end +end,si) +end