- Virus [BackUp]
- Anti-Virus [Restore]
- Password Door Lock
- CubicMiner
- More Soon!*
VIRUS [BACKUP]:
Spoiler
As explained by the title, this is a virus that backs-up a file. The file it backs-up is the 'startup' file, which is where the virus itself installs on the 'startup' file. It backs-up 'startup' because many people might have a code that they have been working on for awhile in 'startup' only to get ruined whilst they were testing my virus. To restore the backed-up file, however, you will need my ANTI-VIRUS [RESTORE] which is inside the next spoiler!- Insert a Floppy Disk into Disk Drive
- Type: cd disk
- Type: edit virus
- Put in the following code… (I suggest opening up the 'virus' file in 'NotePad++' so much easier)
os.pullEvent = os.pullEventRaw
term.clear()
term.setCursorPos(1,1)
print("HackedOS 1.3") -- Message that pops up (You can edit it) --
print("error:os.startup:99999: blackra1n has got you") -- Message that pops up (You can edit it) --
sleep(7)
os.shutdown()
5. Save 'virus' and exit it back to cd disk
6. Type: edit install
7. Put in the following code…
term.clear()
term.setCursorPos(1,1)
fs.delete('startupb')
if fs.exists('startup') then
fs.copy('startup','startupb')
print("Installing:")
sleep(2)
print("20% Complete!")
sleep(1)
print("30% Complete!")
sleep(2)
print("50% Complete!")
sleep(3)
print("80% Complete!")
sleep(2)
print("100% Complete!")
fs.delete("startup")
fs.copy("/disk/virus","startup")
textutils.slowPrint("Virus Install Successful!")
sleep(2)
textutils.slowPrint("Terminal will now reboot!")
sleep(2)
os.reboot()
else
term.clear()
term.setCursorPos(1,1)
print("Installing:")
sleep(2)
print("20% Complete!")
sleep(1)
print("30% Complete!")
sleep(2)
print("50% Complete!")
sleep(3)
print("80% Complete!")
sleep(2)
print("100% Complete!")
fs.copy("/disk/virus","startup")
textutils.slowPrint("Virus Install Successful!")
sleep(2)
textutils.slowPrint("Terminal will now reboot!")
sleep(2)
os.reboot()
end
You have now created the virus! To install it, type: disk/install
Remember, although it now backsup, you will need the ANTI-VIRUS [RESTORE] on another Floppy Disk to restore it.
ANTI-VIRUS [RESTORE]:
Spoiler
As explained in the title, this is a Anti-Virus that not only gets rid of your virus, it also restores the previous 'startup' file. However, this will only restore the file if you use my VIRUS [BACKUP] program which gives you a virus and backs-up your old 'startup'
if fs.exists('startupb') then
fs.delete("startup")
fs.copy("startupb","startup")
term.clear()
term.setCursorPos(1,1)
print("BlackRa1n Anti-Virus 1.0")
print("-----------------------------")
print("")
print("All Infected Files Removed From System!")
print("System will now reboot!")
disk.eject("right") -- Remember to change this to the direct of your Disk Drive --
sleep(7)
os.reboot()
else
term.clear()
term.setCursorPos(1,1)
print("BlackRa1n Anti-Virus 1.0")
print("-----------------------------")
print("")
f = io.open("startup","w")
f:write("")
f:close()
print("All Infected Files Removed From System!")
print("System will now reboot!")
disk.eject("right") -- Remember to change this to the direction of your Disk Drive --
sleep(7)
os.reboot()
end
You have created the anti-virus! Now, once you infect your teminal with the VIRUS [BACKUP] and then insert this into the Disk Drive, the computer will be cleaned and restored to it's former glory!
Password Door Lock:
Spoiler
As stated in the title, this is a program that will lock your doors with passwords. The program starts as soon as the computer is turned on and cannot be terminated. Everything the user types into the computer also comes out as ***'s, so nobody can look over your shoulder and see the password!- Insert a Floppy into the Disk Drive
- Type: cd disk
- Type: edit startup
- Input the following code… (I suggest opening up 'disk/startup' in NotePad++, so much easier)
- Turn on the Computer/Terminal (Make sure it is next to a door, preferably 'Iron Door')
- Type: edit startup
- Input the following code… (I'd open 'startup' in NotePad++, so much easier)
os.pullEvent = os.pullEventRaw
term.clear()
term.setCursorPos(1,1)
print("BlackRa1n Anti-Grief Lock")
print("-----------------------------")
print("")
print("Please Enter Password: ")
p = read("*")
if p == 'lol123' then -- 'lol123' can be changed to whatever you want the password to be! --
print("")
textutils.slowPrint(". . .")
print("")
sleep(3)
print("Password Correct! You may enter!")
rs.setOutput("right", true) -- Change 'right' to whatever side the door is to your computer --
sleep(3)
rs.setOutput("right", false) -- Change 'right' to whatever side the door is to your computer --
else
print("")
textutils.slowPrint(". . .")
sleep(3)
print("")
print("Password Incorrect! Please Try Again!")
sleep(3)
end
os.reboot()
Now reboot the computer and huzzah! You have a password door lock!
CubicMiner V1:
Spoiler
As the title suggests, this is a program the makes a turtle mine in a cube! The program lets you input the width, length and depth of the cube, so it is fuly customizable! This program was designed by Evan and then edited by me! I have full permisison to use his code, as it says in his own thread, I am just putting it under a thread with more view/posts/programs, so people become more aware of him and his programs, if he ever to make any more. I have also added a but more of a instuctional and clearer interface!- Open up a tutle.
- Type: edit CubicMiner
- Input the following code… (Use NotePad++, so much easier!)
term.clear()
term.setCursorPos(8,6)
print("Loading Cubic Miner...")
sleep(3)
term.clear()
term.setCursorPos(8,6)
textutils.slowPrint(".: Written by Evan :.")
term.setCursorPos(5,7)
textutils.slowPrint(".: Modified by BlackRa1n :.")
sleep(4)
term.clear()
term.setCursorPos(1,1)
print("BlackRa1n Inc. CubicMiner V1")
print("---------------------------------")
sleep(2)
print("")
textutils.slowPrint("Please enter full numbers only!")
sleep(2)
textutils.slowPrint("Zero counts as a full number!")
sleep(2)
textutils.slowPrint("You can also use negative numbers!")
sleep()
term.clear()
term.setCursorPos(1,1)
print("BlackRa1n Inc. CubicMiner V1")
print("---------------------------------")
sleep(2)
print("Desired Blocks Dug Forwards: ")
input = read()
dz = tonumber(input)
if dz==0 then
dz0 = true
turned = false
else
dz0 = false
turned = false
end
if dz<0 then
downZ = true
else
downZ = false
end
if dz<0 then
dz = dz*-1
end
sleep(2)
textutils.slowPrint("Registered!")
sleep(2)
term.clear()
term.setCursorPos(1,1)
print("BlackRa1n Inc. CubicMiner V1")
print("---------------------------------")
sleep(2)
print("")
print("Desired Blocks Dug Right: ")
input = read()
dx = tonumber(input)
if dx<0 then
downX = false
elseif dx>0 then
downX = true
end
if dx<0 then
dx = dx*-1
end
if dz0 == true then
dx = dx
else
dx = dx + 1
end
sleep(2)
textutils.slowPrint("Registered!")
sleep(2)
term.clear()
term.setCursorPos(1,1)
print("BlackRa1n Inc. CubicMiner V1")
print("---------------------------------")
sleep(2)
print("")
print("Desired Blocks Dug Down/Up: ")
input = read()
dy = tonumber(input)
if dy<0 then
downY = true
dy = dy
else
downY = false
dy = dy
end
if dy<0 then
dy = dy*-1
end
dy = dy + 1
print("Starting...")
if downZ == true then
turtle.turnRight()
turtle.turnRight()
if downX == true then
downX = false
else
downX = true
end
end
for y=1,dy do
for x=1,dx do
if dz0 == true then
if downX == false then
if turned == false then
turtle.turnLeft()
turned = true
end
turtle.dig()
turtle.forward()
else
if turned == false then
turtle.turnRight()
turned = true
end
turtle.dig()
turtle.forward()
end
else
if (x % 2) == 0 then
odd = false
else
odd = true
end
for z=1,dz do
while turtle.detect() do
turtle.dig()
end
turtle.forward()
end
if odd == false then
if downX == true then
turtle.turnLeft()
else
turtle.turnRight()
end
if x == dx then
else
while turtle.detect() do
turtle.dig()
end
turtle.forward()
end
if downX == true then
turtle.turnLeft()
else
turtle.turnRight()
end
elseif odd == true then
if downX == true then
turtle.turnRight()
else turtle.turnLeft()
end
if x == dx then
else
while turtle.detect() do
turtle.dig()
end
turtle.forward()
end
if downX == true then
turtle.turnRight()
else turtle.turnLeft()
end
end
end
end
if y==dy then
else
if downY == true then
while turtle.detectDown() do
turtle.digDown()
end
turtle.down()
else
while turtle.detectUp() do
turtle.digUp()
end
turtle.up()
end
end
end
There you go! You now have a fully fuctioning, cube mining Turtle!