←  APIs and Utilities

ComputerCraft | Programmable Computers for Minecraft

»

Computer Hacker (Also works with Turtles)

Locked

EmTeaKay's Photo EmTeaKay 17 Apr 2012

Here is the code to my "hacker."

shell.run("clear")
textulis.slowPrint("Hacking!")
sleep(2)
shell.run("clear")
shell.run("a")
shell.run("clear")
print("Hacked!")
As you can see, this is quite simple and easy to put into a floppy.
Quote

Wolvan's Photo Wolvan 17 Apr 2012

why shell.run("a")
Quote

EmTeaKay's Photo EmTeaKay 17 Apr 2012

Because it's not a program and then it doesn't go back to startup.
Quote

MysticT's Photo MysticT 17 Apr 2012

View PostEmTeaKay, on 17 April 2012 - 08:11 PM, said:

Because it's not a program and then it doesn't go back to startup.
???
Doing that would just print "No such program" on the screen, so you are not hacking anything with that code, it just prints text.
Quote

Wolvan's Photo Wolvan 17 Apr 2012

as he said. I would delete that line and write os.shutdown() at the end
Quote

EmTeaKay's Photo EmTeaKay 18 Apr 2012

I'm not trying to hack per se, just trying to get around the passwords.
Quote

Mendax's Photo Mendax 18 Apr 2012

Lol, why not just have it blank? :)/>
Quote

EmTeaKay's Photo EmTeaKay 18 Apr 2012

Why not not? This is how I want it, so this is how I'll keep it. I don't mean to go on a rampage like I did last time, but I like it this way.
Quote

Wolvan's Photo Wolvan 18 Apr 2012

If it is only to avoid passwords than it is good
Quote

svennp's Photo svennp 01 Jun 2012

the code i use is

print "bypassed startup :)/>/>"

its a bit shorter and works fine for me
Quote

Cloudy's Photo Cloudy 01 Jun 2012

The code I would use is:
 Even a blank file works.
Quote

my_hat_stinks's Photo my_hat_stinks 01 Jun 2012

I use
if true then return end

Redundant, but you can never be too careful :)/>
Quote

Dirkus7's Photo Dirkus7 03 Jun 2012

Just make a startup file on the disk, and save the empty file. Put in a disk drive and it works. sometimes, when people are being really stupid, i just press ctrl+t.
Quote

Hexicube's Photo Hexicube 10 Jun 2012

*modifies shell to prioritise computer PC "forcedstartup" file over floppy "startup" file, uses pullEventRaw() to prevent ctrl+t bypass*
I should give my server IP, I am fairly decent with lua and would like people to crack open my protection! :(/>

But yeah, it only happens because floppy startups are prioritised over PC startups, so when you stick a floppy in with a file named "startup" the usual booting of a PC startup file is ditched.

Oh, also, if you own a server, you could always edit the rom startup file...although changing the boot order in shell probably works better...
Quote

Mtdj2's Photo Mtdj2 15 Jul 2012

You can totally protect your computer with your password startup program be on a floppy at the top of the computer. (Top is highest priority, tested in my singleplayer world.)
Oh yea, btw, the startup for your computer should have a termination block at all times.
Quote

lewisholcombe's Photo lewisholcombe 31 Mar 2013

What happens when theres no Disk Drive on it?
+ People add os.pullEvent = os.pullEventRaw on the top of the password program so people cant ctrl+t it
Quote

Mailmanq!'s Photo Mailmanq! 31 Mar 2013

View Postmy_hat_stinks, on 01 June 2012 - 04:38 PM, said:

Off topic:
How do you have a signature that long?
Quote

lewisholcombe's Photo lewisholcombe 31 Mar 2013

View Postmailmanq, on 31 March 2013 - 05:28 AM, said:

View Postmy_hat_stinks, on 01 June 2012 - 04:38 PM, said:

Off topic:
How do you have a signature that long?
Yeah how do you?
Quote

Cruor's Photo Cruor 31 Mar 2013

Locked to keep the foul arts of necromancy from spreading.
Quote
Locked