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

Daanos (SecureOs)

Started by daantechcomputercraft, 02 January 2019 - 06:45 AM
daantechcomputercraft #1
Posted 02 January 2019 - 07:45 AM
Daanos is back!
DaanOS Is Fixed!
Daanos (SecureOs) is back! With New Functions!
Functions:
Login Screen With Custom Users!
Updater!
System Fixer
Information:
Information:
This os is created in computercraft 1.8.9! there can be bugs in newer versions!
Login:
To Create an account
go to the create account section
Key: 5TbAqUiNhhOmNDOS1AhXx
WARNING!
After the creation of the account
go to the shell
type "edit login"
it looks like this:

– Preventing CTRL + T –
os.pullEvent = os.pullEventRaw



local admin = {
name = "admin",
pass = "5TbAqUiNhhOmNDOS1AhXx", <— CHANGE THE KEY
}

etc…
EDIT THE KEY! ELSE ANYONE CAN USE THE DEFAULT KEY TO CREATE AN ACCOUNT!
Story
In the systems back in the day,
i got comments on my os…
Its not a real os!
i Forgot whole os creating… But i came back!
This is a theme for CraftOs,
and now its just a menu
With a login screen!
(Fixed) Bugs:
Weird selection Screen Selector Bug (FIXED)
Please Reply to help!
you can download the files or by the pro section, you can download only the startup file(the startup file downloads all (newest) files at every startup)
Download
Stable:
Disk Installer:
pastebin run JSbuSUm2
Normal Installer:
User Friendly Installer:
Direct: pastebin run Mapwdm1b
For later use: pastebin get Mapwdm1b Daanos Then, if you need it, just type "Daanos"
Not User Friendly Installer:
Direct: pastebin run yNKmYYp3
For later use: pastebin get yNKmYYp3 Daanos Then, if you need it, just type "Daanos"
Beta:
To install the beta:
install DaanOs Normally (pastebin run yNKmYYp3)
Follow the on-screen instructions
log in to DaanOs (login details are listed above)
Navigate to update
click enter
wait… done! you have now installed the beta version of daanos!
WARNING:
ALWAYS PRESS JUST-BOOT ON STARTUP!
ELSE IT WILL INSTALL THE BETA VERSION BACK!


For Computercraft Pros.
startup file(Needed!)
pastebin id 5sZSKwDj
And Thats All!
Hope You Will enjoy!
please give a reply for bugs or just if you think its amazing!







Or not:)
Bye!
Daan (Daantech)
Edited on 08 November 2019 - 12:56 PM
Konlab #2
Posted 19 July 2019 - 04:29 PM
Constructive feedback to improve security:

You can break into the system by holding CTRL+T (terminate). To disable this, you can add the following code at the beginning of the startup file:

oldOsPullEvent = os.pullEvent
os.pullEvent = os.pullEventRaw
The idea is that when you hold CTRL+T for a longer time, the event "terminate" will fire, and os.pullEvent will create an error to end the program currently running. os.pullEventRaw does not do this, that's why you are replacing the global reference to os.pullEvent with it.

Another tip: to stop people from breaking into the computer by crashing the OS, you could also enclose the whole startup program like this:

startup file:

local function main()

<startup file normally>

end

local success, message = pcall(main)

if not success then
  --you can print the crash error message here if you want, to let users send feedback

  os.reboot()
end


This will make sure that if the OS breaks, it reboots instead of letting users have full access to the CraftOS shell.

Also, security wise it is not a good idea to have the password hardcoded into the code. What you could do, is to save the password to a file during installation. It is pretty easy to do so, the function you can read/write files with is fs.open or use one of the config libraries from APIs and utilities on this forum

edit: grammar
Edited on 19 July 2019 - 02:31 PM
daantechcomputercraft #3
Posted 22 August 2019 - 05:56 PM
Constructive feedback to improve security:

You can break into the system by holding CTRL+T (terminate). To disable this, you can add the following code at the beginning of the startup file:

oldOsPullEvent = os.pullEvent
os.pullEvent = os.pullEventRaw
The idea is that when you hold CTRL+T for a longer time, the event "terminate" will fire, and os.pullEvent will create an error to end the program currently running. os.pullEventRaw does not do this, that's why you are replacing the global reference to os.pullEvent with it.

Another tip: to stop people from breaking into the computer by crashing the OS, you could also enclose the whole startup program like this:

startup file:

local function main()

<startup file normally>

end

local success, message = pcall(main)

if not success then
  --you can print the crash error message here if you want, to let users send feedback

  os.reboot()
end


This will make sure that if the OS breaks, it reboots instead of letting users have full access to the CraftOS shell.

Also, security wise it is not a good idea to have the password hardcoded into the code. What you could do, is to save the password to a file during installation. It is pretty easy to do so, the function you can read/write files with is fs.open or use one of the config libraries from APIs and utilities on this forum

edit: grammar

Thanks! I Will implement it as fast as possible in the next beta
daantechcomputercraft #4
Posted 22 August 2019 - 06:13 PM
I just found a new bug
Look at this:
https://github.com/daantje1/daantje1.github.io/blob/master/FE00623D-AF63-488B-ADF7-96929EBC1A26.MP4?raw=true
Edited on 22 August 2019 - 04:15 PM