r/ComputerCraft • u/fisk1234ost • Jul 23 '21
I created some evil code :)
just run : pastebin jrauM127 startup
and reboot then enjoy :)
how to calculate password :ComputerID * 1253
you may also get around it in this way LINK
0
Upvotes
2
u/9551-eletronics Computercraft graphics research Jul 23 '21
localize your functions !
also you can easily bypass by putting disk drive with startup onto it :)
this is insanely easy to bypass
1
u/fisk1234ost Jul 30 '21 edited Jul 30 '21
by "localize your functions " do you mean put "local" in front of "function somthing()..."
also yes that what is stated in the link
5
u/fatboychummy Jul 23 '21
If
startupexists,copy xyz startupwill fail and a reboot will fix it.You only check for 6 disks, some people may have more than that (not to mention you don't look for
startup.luaas well). You can do the following instead:local drives = {peripheral.find("drive")} for i = 1, #drives do local drive = drives[i] local mountPath = drive.getMountPath() if mountPath then fs.delete(fs.combine(mountPath, "startup")) fs.delete(fs.combine(mountPath, "startup.lua") end end
os.pullEvent = os.pullEventRawbooringUse
pcallinstead and when people try to terminate it print a message saying "haha screw you"4. You only check for disks once, use
diskevent to listen for disk insertions.You may wish to use
parallelapi to help with this....
It is 4am, why am I randomly helping make "evil code" aaaaghh