Jump to content




[Question] Make a program permanently un-editable?


  • You cannot reply to this topic
44 replies to this topic

#1 Zalerinian

  • New Members
  • 68 posts
  • LocationThe Internet

Posted 30 June 2012 - 05:30 PM

Hello,

I'm making a program and i need it to be as secure as possible. If disk boot was not a factor, is there a way to make a file permanently un-editable? I managed to make it un-editable for a little, as in you try to edit ti and it throws an error, but then it will open to be edited if you input the edit command again. Is there any way to fix this to make it so it will still won't be editable after the first time?



EDIT: I fixed it myself, nevermind.

Edited by Zalerinian, 30 June 2012 - 07:11 PM.


#2 Klausar

  • Members
  • 110 posts

Posted 01 July 2012 - 03:26 PM

Can you tell us how you fixed it? Would be helpful for people having the same issue.

#3 tfoote

  • New Members
  • 134 posts
  • LocationSalt Lake, UT

Posted 02 July 2012 - 01:33 AM

View PostKlausar, on 01 July 2012 - 03:26 PM, said:

Can you tell us how you fixed it? Would be helpful for people having the same issue.

Yes!!! Please do

#4 Deathknight0897

  • New Members
  • 95 posts

Posted 04 July 2012 - 10:11 AM

The best and easiest way to make a file un editable is to delete the edit program from the rom as simple as typing "delete edit" but as stated in post it is almost impossible to make it un editable anyways once u have removed edit you then want to block any external device's forcing a shutdown yeh that should do it

#5 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

Posted 04 July 2012 - 11:54 AM

Except you can't delete files form the rom.

#6 Pinkishu

  • Members
  • 484 posts

Posted 04 July 2012 - 02:05 PM

You could compile the lua code and loadstring() it :3

#7 Deathknight0897

  • New Members
  • 95 posts

Posted 05 July 2012 - 04:31 AM

View PostCloudy, on 04 July 2012 - 11:54 AM, said:

Except you can't delete files form the rom.
I am able to on my server in game maybe a setting

#8 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 05 July 2012 - 04:45 AM

There are no settings that would enable you to do such a thing.

#9 Deathknight0897

  • New Members
  • 95 posts

Posted 05 July 2012 - 04:56 AM

View PostLyqyd, on 05 July 2012 - 04:45 AM, said:

There are no settings that would enable you to do such a thing.
Thats really weird on my server i can just type Delete edit for example and it delete's it of that pc i promise im not doing anything special

#10 Deathknight0897

  • New Members
  • 95 posts

Posted 05 July 2012 - 05:37 AM

Ok so i was talking to my mate the server host and apperently he bugged computercraft on are server its now fixed however i just found a really easy way to stop edit from working type the following

edit edit
os.shutdown()

or if u dont want it to kill everything
os.reboot()

That will 100% lock the edit guaranteed even on server that havent been buggered by ur mate :P/>
:)/> send diamonds to me any time :D/>

#11 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 05 July 2012 - 05:39 AM

Nope, you're just making a file at /edit. You could still execute the normal edit by running /rom/programs/edit.

#12 Deathknight0897

  • New Members
  • 95 posts

Posted 05 July 2012 - 05:43 AM

1 sec going to test you has destroyed my plans i think

#13 Deathknight0897

  • New Members
  • 95 posts

Posted 05 July 2012 - 05:49 AM

Ok that's a small problem i found the way around that its simple but requires you to have access to the server or the rom folder go into it and cut edit from the rom now you need to place edit on every id of all the pcs and then just remove it from the pc's you down t want editable it requires alot of work but should work cant test as i don't own server and have no single players

#14 Deathknight0897

  • New Members
  • 95 posts

Posted 05 July 2012 - 08:27 AM

So did it work anyone going to tell me :P/>

#15 Pinkishu

  • Members
  • 484 posts

Posted 05 July 2012 - 09:27 AM

you can still run the lua console and re-write edit :P/>

#16 Deathknight0897

  • New Members
  • 95 posts

Posted 05 July 2012 - 10:22 AM

View PostPinkishu, on 05 July 2012 - 09:27 AM, said:

you can still run the lua console and re-write edit :P/>
Explain more and i will get around it most liklely

if its just another rom program then just do the same as before

#17 Pinkishu

  • Members
  • 484 posts

Posted 05 July 2012 - 11:04 AM

in console:
lua


then you use the fs api for writing files :P/>

#18 KaoS

    Diabolical Coder

  • Members
  • 1,510 posts
  • LocationThat dark shadow under your bed...

Posted 05 July 2012 - 11:07 AM

either way you can just open a new file, write whatever and then delete your existing file and then rename your new one to that name, has anyone tried making the server-side file read-only?

#19 Pinkishu

  • Members
  • 484 posts

Posted 05 July 2012 - 11:08 AM

Unless you edit ROM its impossible, if you edit ROM its easy

#20 Deathknight0897

  • New Members
  • 95 posts

Posted 05 July 2012 - 11:19 AM

that's why its called read only memory





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users