If you have a solution please send me a message.
This is a read-only snapshot of the ComputerCraft forums,
taken in April 2020.
hardcoding
Started by PrinzJuliano, 02 June 2012 - 07:56 PMPosted 02 June 2012 - 09:56 PM
Hi guys i want to know how i could the hardcode events, like ctrl + S or ctrl + R, turn off.
If you have a solution please send me a message.
If you have a solution please send me a message.
Posted 02 June 2012 - 10:05 PM
The name says everything: Harcoded, they are included in the code of computercraft, no config or in#game changes can change them.
If you wanted to change it though, you would need the decompiled code which you can't get easy/legally.
If you wanted to change it though, you would need the decompiled code which you can't get easy/legally.
Posted 02 June 2012 - 10:38 PM
Well on a server one of my computers is hacked with a password which i can't terminate. I want to know how that works, for my security programs
Posted 02 June 2012 - 11:04 PM
The program is probably written into startup and has a CTRL + T prevention.
You should put a disk drive with a modified startup file into a disk drive next to the computer and reboot it.
Put something like this on the disk drive:
Putting a modified and not terminable startup file on someone else's computer …. are you sure I haven't been on that server before?
You should put a disk drive with a modified startup file into a disk drive next to the computer and reboot it.
Put something like this on the disk drive:
print("This overrides the startup file on the computer")
Now you can edit the startup file on the computer.Putting a modified and not terminable startup file on someone else's computer …. are you sure I haven't been on that server before?
Posted 03 June 2012 - 02:05 PM
The computer just has in the top of the code this: os.pullEvent = os.pullEventRaw or something like that.
Posted 03 June 2012 - 06:52 PM
Leo it doesn't made anything
The computer started the startupfile of the computer, not of the disk :)/>/> :D/>/>
The computer started the startupfile of the computer, not of the disk :)/>/> :D/>/>
Posted 04 June 2012 - 06:22 AM
You could try to catch the events, I'm not sure if they through out an event type like terminate does but here is an example of how I catch terminate..
Try replacing terminate with shutdown and see what it does. Just add it at the top of your code. You will want to restore the default os.pullEvent() if you want them to function properly in other programs on this computer.
local function os.pullEvent()
local event, p1, p2, p3, p4, p5 = os.pullEventRaw()
if event == "terminate" then
term.clear()
term.setCursorPos(1,7)
print ("Hmmmm.. I dont think so...")
sleep (2)
end
return event, p1, p2, p3, p4, p5
end
Try replacing terminate with shutdown and see what it does. Just add it at the top of your code. You will want to restore the default os.pullEvent() if you want them to function properly in other programs on this computer.
Edited on 04 June 2012 - 04:25 AM
Posted 04 June 2012 - 11:28 AM
Terminate is caught in the bios.lua code, the other 2 are not
Terminate function is from the bios.lua code, the other 2 not
Thus i doubt you can "catch" em
Terminate function is from the bios.lua code, the other 2 not
Thus i doubt you can "catch" em
Posted 04 June 2012 - 04:05 PM
She's rightTerminate is caught in the bios.lua code, the other 2 are not
Terminate function is from the bios.lua code, the other 2 not
Thus i doubt you can "catch" em
Posted 21 June 2012 - 03:30 PM
can i be member? and there is nobody ? :s
Posted 21 June 2012 - 03:55 PM
By passing start up
step one place a disk drive above the computer.
step two place a disk in the drive with a file named startup this program should contain only[ print("open") ] with out the [] around it.
step three hold Ctrl + R for a few seconds the computer will restart and show the word open on the screen.
from here you can delete the startup file rename or edit it your choice
step one place a disk drive above the computer.
step two place a disk in the drive with a file named startup this program should contain only[ print("open") ] with out the [] around it.
step three hold Ctrl + R for a few seconds the computer will restart and show the word open on the screen.
from here you can delete the startup file rename or edit it your choice
Posted 22 June 2012 - 11:10 AM
By passing start up
step one place a disk drive above the computer.
step two place a disk in the drive with a file named startup this program should contain only[ print("open") ] with out the [] around it.
step three hold Ctrl + R for a few seconds the computer will restart and show the word open on the screen.
from here you can delete the startup file rename or edit it your choice
step 0.5: hold ctrl+s on computer so it doesn't overwrite your startup :P/>/>
Posted 30 August 2012 - 05:50 AM
Are you sure it's your computer? Or are we helping you break into someone else's? :)/>/>
Wrong section. Topic Closed.
Wrong section. Topic Closed.