- ComputerCraft | Programmable Computers for Minecraft
- → oasis9's Content
oasis9's Content
There have been 11 items by oasis9 (Search limited from 29-March 23)
#55079 Prevent Program Termination (Ctrl+T)
Posted by oasis9 on 28 November 2012 - 08:58 PM in Tutorials
I have a lockdown program that can be bypassed and my logging system will be run again when the computer is restarted, so you can skip the holdup, that is supposed to deter you from finding the code, all you have to do is ctrl+r or ctrl+s.
#45725 password app code
Posted by oasis9 on 30 October 2012 - 07:48 AM in Programs
This didn't work out.
In the forum.
The PC works great!
Code:
os.pullEvent = os.pullEventRaw
term.clear()
term.setCursorPos(1, 3)
print " OASIS9'S"
print " CINEMA"
print " SYSTEMS"
term.setCursorPos(10, 10)
print "******************************"
term.setCursorPos(10, 11)
print "* WARNING! *"
term.setCursorPos(10, 12)
print "* ---------- *"
term.setCursorPos(10, 13)
print "* HACKING THIS SYSTEM IS *"
term.setCursorPos(10, 14)
print "* PUNISHABLE BY DEATH AND *"
term.setCursorPos(10, 15)
print "* LOSS OF YOUR VALUABLES! *"
term.setCursorPos(10, 16)
print "******************************"
term.setCursorPos(15, 18)
write "Enter Password: "
local password = "kittens"
local input = read"*"
if input == password then
term.clear()
term.setCursorPos(1, 1)
print "Access Granted"
sleep(3)
term.clear()
term.setCursorPos(1, 1)
else
term.clear()
term.setCursorPos(1, 1)
print "Access Denied"
sleep(3)
print "Restarting..."
sleep(3)
os.reboot()
end
Output will be:
OASIS9'S
CINEMA
SYSTEMS
*******************************************************************
* WARNING! *
* --------------- *
* HACKING THIS SYSTEM IS *
* PUNISHABLE BY DEATH *
* AND LOSS OF YOUR *
* VALUABLES! *
********************************************************************
ENTER PASSWORD: _
***************************************
IF INPUT IS CORRECT THEN
***************************************
Access Granted
***************************************
WAITS THREE SECONDS THEN
***************************************
> _
***************************************
IF INPUT IS INCORRECT THEN
***************************************
Access Denied
***************************************
WAITS THREE SECONDS THEN
***************************************
Access Denied
Restarting...
***************************************
WAITS THREE SECONDS THEN
***************************************
*PC IS RESTARTED*
In the forum.
The PC works great!
Code:
os.pullEvent = os.pullEventRaw
term.clear()
term.setCursorPos(1, 3)
print " OASIS9'S"
print " CINEMA"
print " SYSTEMS"
term.setCursorPos(10, 10)
print "******************************"
term.setCursorPos(10, 11)
print "* WARNING! *"
term.setCursorPos(10, 12)
print "* ---------- *"
term.setCursorPos(10, 13)
print "* HACKING THIS SYSTEM IS *"
term.setCursorPos(10, 14)
print "* PUNISHABLE BY DEATH AND *"
term.setCursorPos(10, 15)
print "* LOSS OF YOUR VALUABLES! *"
term.setCursorPos(10, 16)
print "******************************"
term.setCursorPos(15, 18)
write "Enter Password: "
local password = "kittens"
local input = read"*"
if input == password then
term.clear()
term.setCursorPos(1, 1)
print "Access Granted"
sleep(3)
term.clear()
term.setCursorPos(1, 1)
else
term.clear()
term.setCursorPos(1, 1)
print "Access Denied"
sleep(3)
print "Restarting..."
sleep(3)
os.reboot()
end
Output will be:
OASIS9'S
CINEMA
SYSTEMS
*******************************************************************
* WARNING! *
* --------------- *
* HACKING THIS SYSTEM IS *
* PUNISHABLE BY DEATH *
* AND LOSS OF YOUR *
* VALUABLES! *
********************************************************************
ENTER PASSWORD: _
***************************************
IF INPUT IS CORRECT THEN
***************************************
Access Granted
***************************************
WAITS THREE SECONDS THEN
***************************************
> _
***************************************
IF INPUT IS INCORRECT THEN
***************************************
Access Denied
***************************************
WAITS THREE SECONDS THEN
***************************************
Access Denied
Restarting...
***************************************
WAITS THREE SECONDS THEN
***************************************
*PC IS RESTARTED*
- ComputerCraft | Programmable Computers for Minecraft
- → oasis9's Content