Very cute. It would have been cooler as a shell alias for ssh.
Using node seems like cheating; plus you have to call it explicitly, you know you really want to use this to prank your colleague who left their laptop unlocked.
Using node seems like cheating; plus you have to call it explicitly, you know you really want to use this to prank your colleague who left their laptop unlocked.
Well, you can easily turn it into an executable (e.g., using `pkg` [1]) so that the target computer doesn’t even need Node.js installed.
This can be done purely in shell, no extra tools!