News for hackers. Stuff that matters.
Re:Battleship by onionisafruit on Saturday April 02, 2022 @06:11PM (#30892117)
I worked on something like that for a while that I never finished. One of the stumbling blocks was executing untrusted code. I settled on having players either connect via websocket or receiving webhooks and having to respond in a given time frame.
Re:Battleship by tomcam on Saturday April 02, 2022 @08:19PM (#30892907)
I don’t understand the executing of entrusted code part. If the instructions are plain text, how could it even be a problem? The instruction FIRE(5,7) isn’t going to turn into a zero day exploit, right?
Re:Battleship by flir on Saturday April 02, 2022 @08:46PM (#30893106)
How did you decide to fire at 5,7 though?
Re:Battleship by tomcam on Sunday April 03, 2022 @07:46PM (#30901931)
In a game of battleship it’s a human player who would write down the text, correct? But that doesn’t matter at all. It seems to me it could be a very simple text protocol with literally zero chance of binary execution exploits