RokutheBasiliskTamer 2 Posted November 9, 2017 Share Posted November 9, 2017 This is a simple door opening script that requires a password to be entered. That being said it took me a ridiculously long time to work out all the bugs. It works by taking an input from one computer and sending it to another to check if the password is correct. This makes it much harder to simply look at the file to check what the password is. It also now has the ability to automatically encrypt your password if you have a T1 data card along with the server asking you to input a password on the first run. These ideas came from the user RandomRedMage Requirements: At least 2 computers with basic parts 2 Network cards or Wireless Network cards Redstone T1 card Data card T1 (optional) The pastebin id for the server version is 8Y2y9xH3 The pastebin id for the client version is F5P5V05P Source code for both here Currently it needs to be placed into /home/bin and named door.lua to work but editing the 4 spots where os.execute is called will let you place it wherever with any name Also you need to enter the password twice the first time it is booted in order to have both computers recognize each other this can be circumvented via hard coding the address of the modem of each system into the other or adding a file into each /home/bin called MAC.psd with the modem address of the other. It is currently set up for only one computer but it could easily made to work for multiple by making the address var into a table and having a loop check thru them though that may slowdown the process. Uipobpf and webbster64 2 Quote Link to post Share on other sites
RandomRedMage 5 Posted November 9, 2017 Share Posted November 9, 2017 Really simple, but a great start. I would at the minimum change this so that the server program when booted for the first time, asks for the password you want, encrypts it. and stores the encrypted password in a file. Quote Link to post Share on other sites
RokutheBasiliskTamer 2 Posted November 10, 2017 Author Share Posted November 10, 2017 8 hours ago, RandomRedMage said: Really simple, but a great start. I would at the minimum change this so that the server program when booted for the first time, asks for the password you want, encrypts it. and stores the encrypted password in a file Thanks for the input I implemented both of those ideas Quote Link to post Share on other sites
Xlaits 1 Posted May 9, 2018 Share Posted May 9, 2018 Why not set it up using an coroutine to check for any computers listed in the MAC file once every so-and-so cycles? Quote Link to post Share on other sites
webbster64 0 Posted July 20, 2018 Share Posted July 20, 2018 what you also and do is add multi user register as well as access limiting like level 1 to level 3 door access and also user logging eg. (door name, door access level, player name) if i may all take a look and see what i can do to add this, but its still a cool program thanks for sharing Quote Link to post Share on other sites
Florens 0 Posted July 23, 2018 Share Posted July 23, 2018 On 11/9/2017 at 11:17 AM, RokutheBasiliskTamer said: This makes it much harder to simply look at the file to check what the password is. That's what hashes are for. Quote Link to post Share on other sites