This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Gorzoid's profile picture

Command computers should have their own reserved ID range

Started by Gorzoid, 25 April 2016 - 02:16 PM
Gorzoid #1
Posted 25 April 2016 - 04:16 PM
Not sure if this should be a suggestion or a bug report.

A while ago I found that by using the /give command one could spawn a computer with any computer ID, I then realized you could use this to give yourself a computer with the same ID as a command computer (you use peripheral api to turn it on and get the id) you could modify the startup file and then you basically have full access to the command computer.
Now obviously most servers will not be allowing untrusted users to use /give so it is not a very vulnerable on it's own. But as some of you may know, creative mode has full access to spawn items with nbt tags. Using a simple forgemod one could computers with the command computers ID, which could ruin all creative computercraft servers(/op cant be used in command computer, but most plugin commands can e.g. /manuadd).

For a while I was thinking what would be a good idea to fix this, blocking the spawning of them would be a very messy fix. So I thought instead let command computers have their own range of IDs so that when a normal computer has that ID you can just halt it. And vice versa when a command computer tries to use a normal computer ID

I can provide a screenshot but I believe the devs will immediately understand this. Of course there is still the issue of creatives being able to basically hack any computer using this method, but I think that is a less severe problem.
Luca_S #2
Posted 25 April 2016 - 08:52 PM
Well even if you have an own ID for Command Computers, if users have access to /give they could just go with that id
Lupus590 #3
Posted 25 April 2016 - 09:51 PM
Well even if you have an own ID for Command Computers, if users have access to /give they could just go with that id

yes but then you have the already implemented "non-ops can't open the GUI" defence
Luca_S #4
Posted 27 April 2016 - 05:30 AM
Well even if you have an own ID for Command Computers, if users have access to /give they could just go with that id

yes but then you have the already implemented "non-ops can't open the GUI" defence

Oh right.