Shell-lock - A shell emulator, but also a lock screen

Started by Fatboychummy, Nov 16, 2018, 07:06 AM

Previous topic - Next topic

Fatboychummy

Welcome to another installment of fatboychummy makes crappy things.

Today's object of affection is Shell-Lock.  It's a program that is designed to look, and act, like the shell... except it's also a lock program.

How it works:

It passes all inputs through a filter (whitelist or blacklist), then checks if you can do it.
(It's really that simple, except it's not, but lets not get into the fine details as you can look through my code yourself :) )

Examples:

The look of it, customized, when you start it up.


The look of it when you try to do something.


Look, you can run other programs and terminate them (Used the program "lua" just as an example, you can use whatever... like cowsay)


And of course, YOU CAN LOG IN YEEEEEEEEEEEEEEEEEEEAAAAAAAAAHHHHHHHH


Logging in, as with most locks, will take you to the normal shell.

And that's it folks, please pick through the code and ree at it until it works :)
I make unfinished programs

Fatboychummy

Found bug:

type <anyprogramname> login and it'll run <anyprogramname>

10/10 I've failed miserably.  Will fix soon.
I make unfinished programs

pjals

can't you just make a new user and login. then you just logged in into the system without bruteforcing?
hi i am T79, bye

QuickMuffin8782

#3
Quote from: Fatboychummy on Nov 16, 2018, 07:06 AM-snip-
What is helpful so the shell isn't emulated is to run this in your code once they signed on (Customize it if you'd like, just copy from "rom/programs/shell.lua"), and it is possible to make a vm off of it or something else.): shell.run("rom/programs/shell.lua")
"The Blue Blur" - Working on Net Star OS, a new frontier for Red Star OS 3.0
linktr.ee/quickmuffin8782