This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Zecradox's profile picture

Secure Access Server (SAS) - My first actual program

Started by Zecradox, 18 November 2017 - 07:32 PM
Zecradox #1
Posted 18 November 2017 - 08:32 PM
SASBeta


What is SAS?
SAS is a program which has a client,
and a server. The user (on the client)
inputs the password, and the server
checks if it's the same as the one it has
stored. If it is correct, the server tells the client that it is
correct. Then, you can put any code in the access allowed
(e.g. open doors, or just simply allow access to the computer.)
Read me before downloading
DO NOT! put any confidential information in passwords. There
is only Ctrl+T
protection on the client. This means if someone can get to
your server, they can see the password.
Download
Server:
pastebin get q52DWUgN sas-server
Client:
pastebin get 3C37zJ8s sas-client
How to get it up and running
I'm assuming by now you have downloaded the client and server,
and put them on different computers, each with a modem. Well,
here's how to get it up and running.
On the client computer, edit the file
sas-client and add the line rednet.open() at the start.
On the client computer, edit the file
sas-client and change the server ID to the ID of the
server computer.
On the server computer, edit the file
sas-server and change the pass to your desired password. DO NOT use any of
your real passwords.
On the client computer, run
sas-client.
On the server computer, run
sas-server.
And that's it! If you have any problems or suggestions, please tell me.
Edited on 19 November 2017 - 05:12 AM
KingofGamesYami #2
Posted 18 November 2017 - 11:25 PM
May I suggest using some form of encryption so that it is not possible for me to listen for all rednet messages and extract the password from the conversation between client and server?
CLNinja #3
Posted 19 November 2017 - 12:20 AM
May I suggest using some form of encryption so that it is not possible for me to listen for all rednet messages and extract the password from the conversation between client and server?
At least make it not plaintext lol.
Zecradox #4
Posted 19 November 2017 - 12:50 AM
May I suggest using some form of encryption so that it is not possible for me to listen for all rednet messages and extract the password from the conversation between client and server?
This is my first actual program. I know that this isn't the most secure thing ever.
Saldor010 #5
Posted 19 November 2017 - 01:46 AM
So long as it isn't in plain text, any information sent back and forth is (pretty much) secure. Only the most determined people would actually attempt to break encryption on a CC program.

This does NOT mean you're safe to use your actual passwords though. That's just a bad idea waiting to happen.
Dave-ee Jones #6
Posted 23 November 2017 - 03:12 AM
May I suggest using some form of encryption so that it is not possible for me to listen for all rednet messages and extract the password from the conversation between client and server?

Doesn't help anything when you can just copy the hash and send it to the server..
So long as it isn't in plain text, any information sent back and forth is (pretty much) secure. Only the most determined people would actually attempt to break encryption on a CC program.

This does NOT mean you're safe to use your actual passwords though. That's just a bad idea waiting to happen.

You guys forget that he's probably the only one on his MC world (unless it's a server, which would be very unideal to create a program in - you guys know how laggy it is, I'm sure). There's not that much point adding encryption. You might say there's not much point having a login system. I know I find them fun to make, but can you PLEASE, just for goodness' sake, stop saying "uhh, doode, it's not encrypted. get that rubbish out of here" and be positive about what others have created? Seriously. First 3 posts (leaving out the reply on your guys' rude posts) on a newly created program is complaining about lack of encryption. What kind of community are you guys part of?

Anyway, back on topic..

I think it's pretty good. Maybe screenshots though, so others don't have to download it to see what it's like. Also, it's not quite user-friendly for others to have to make a few changes to the program before they can actually use it. Maybe you can make use of the peripheral API to search for a modem and open it? That would be pretty neat!
KingofGamesYami #7
Posted 23 November 2017 - 03:41 AM
Yeah ok, that wasn't exactly my best post. I just have a thing against false claims - the "Secure" in the title, in this case. Sure, I don't expect him to actually have encryption for this, at least not for a while, but it doesn't seem right to claim something is secure when it clearly is not. I would be quite happy if that was simply removed from the name instead of the program being made secure.

I apologize for my earlier response, I certainly didn't mean for it to be interpreted that way.
CLNinja #8
Posted 23 November 2017 - 03:55 AM
You guys forget that he's probably the only one on his MC world (unless it's a server, which would be very unideal to create a program in - you guys know how laggy it is, I'm sure). There's not that much point adding encryption. You might say there's not much point having a login system. I know I find them fun to make, but can you PLEASE, just for goodness' sake, stop saying "uhh, doode, it's not encrypted. get that rubbish out of here" and be positive about what others have created? Seriously. First 3 posts (leaving out the reply on your guys' rude posts) on a newly created program is complaining about lack of encryption. What kind of community are you guys part of?
Alright, I personally found nothing wrong with A) What I said and B)/> What anyone else said. Its good practice whether or not HE is on a server to include security in programs, seeing as when most people are going to use a SERVER is when MULTIPLE people will be accessing it, which means multiplayer. I know whenever i make programs, i make it practical for multiplayer use usually.

Also, no one said anything like "uhh, doode, it's not encrypted. get that rubbish out of here" we said it should probably be a little more secure, which is constructive criticism.