Posted 16 January 2013 - 08:39 AM
I was trying to create a security program (with a username and password) and I just came up with this:
———————————————————————————————————————
term.clear()
term.setCursorPos(1,1)
print ("Windows 95 Operating System")
sleep(2)
print (" HXSv2 Smart Security is now running…..")
sleep(2)
write ("Login: ")
logAns = read()
('now comes the IF statements, which I know only a little about)
if logAns == "someone" then
write ("Password")
else
os.reboot()
pasAns = read()
if pasAns == "onetwothree" then
sleep(2)
print ("INITIALIZING")
sleep(3)
term.clear()
term.setCursorPos(1,1)
print ("Welcome Admin")
else
os.reboot
———————————————————————————————————————-
Just to let you know, a little part of this is from a tutorial, and obviously combined with some codes that I have learned in other tutorials, ( like term.clear() ).
The program worked fine without any problems/bugs, however you could TERMINATE the program and it would take you to the main menu (root). So i have researched a bit more and I found a solution, which was (the event raw), which I put at the start of my code os.pullEvent = os.pullEventRaw.
However, if you would make a floppy, with a random code like (print ("blah blah, whatever") in the startup. And insert into the disk drive, then CTRL + R to reboot the computer, the code that I wrote in the main computer startup would then be bypassed, and then you could just do (edit startup), and view or modify the code in the main computer.
So what I'm basically asking for is,,,,, is there any way to make the computer not read the disk, when rebooted????
Or is there another more secure way to design a security (username & password) program, that can not be bypassed by a floppy.
And also I have tried writing:
disk.eject("bottom")
disk.eject("top")
disk.eject("back")
disk.eject("front")
disk.eject("left")
disk.eject("right")
on the startup of the main computer, and it worked with a blank floppy, but it didn't work with the bypass floppy.
=============================================================
I hope that someone will understand what i'm asking and trying to achieve.
I tried to be as descriptive as possible.
And sorry if you encounter any spelling mistakes. (English = my third language)
THANKS A LOT for your help and time. :P/>
———————————————————————————————————————
term.clear()
term.setCursorPos(1,1)
print ("Windows 95 Operating System")
sleep(2)
print (" HXSv2 Smart Security is now running…..")
sleep(2)
write ("Login: ")
logAns = read()
('now comes the IF statements, which I know only a little about)
if logAns == "someone" then
write ("Password")
else
os.reboot()
pasAns = read()
if pasAns == "onetwothree" then
sleep(2)
print ("INITIALIZING")
sleep(3)
term.clear()
term.setCursorPos(1,1)
print ("Welcome Admin")
else
os.reboot
———————————————————————————————————————-
Just to let you know, a little part of this is from a tutorial, and obviously combined with some codes that I have learned in other tutorials, ( like term.clear() ).
The program worked fine without any problems/bugs, however you could TERMINATE the program and it would take you to the main menu (root). So i have researched a bit more and I found a solution, which was (the event raw), which I put at the start of my code os.pullEvent = os.pullEventRaw.
However, if you would make a floppy, with a random code like (print ("blah blah, whatever") in the startup. And insert into the disk drive, then CTRL + R to reboot the computer, the code that I wrote in the main computer startup would then be bypassed, and then you could just do (edit startup), and view or modify the code in the main computer.
So what I'm basically asking for is,,,,, is there any way to make the computer not read the disk, when rebooted????
Or is there another more secure way to design a security (username & password) program, that can not be bypassed by a floppy.
And also I have tried writing:
disk.eject("bottom")
disk.eject("top")
disk.eject("back")
disk.eject("front")
disk.eject("left")
disk.eject("right")
on the startup of the main computer, and it worked with a blank floppy, but it didn't work with the bypass floppy.
=============================================================
I hope that someone will understand what i'm asking and trying to achieve.
I tried to be as descriptive as possible.
And sorry if you encounter any spelling mistakes. (English = my third language)
THANKS A LOT for your help and time. :P/>