Would it be possible to connect a Nintendo game console to a computer in the following manner? Could this be used by hackers to make illegal?
Do you even have any understanding of what is what? It's only the display hardware and you somehow connect them to codes and programming, I don't even understand how your understanding can go so far out to nonsensical position.
Do you even know what you're talking about?
AV and HDMI carry video and audio only. They would carry the information need for a hacker to take control of our computer. They can not use the AV connection as a game control. While a set up like this might let them see what you are doing on the screen, that would be all they could do. And they would have to be with 50 feet of you doing it, since that is the limit of an HDMI cable. They would have be sitting in your house to do this hack. Also the HDMI port on a laptop or a computer is only designed to send a signal OUT of the laptop. You can not send a signal IN to an HDMI port. That is why you can not hook up a laptop to use as a monitor for your PC. And the AV port of a game system only send a signal OUT. You could not send anything into the game console via the AV/HDMI port. So no, you idea would not working as a way to hack into a game console and take control of it.
All that goes over HDMI or other connections is the video and/or audio signal. Not the game's code itself.