Error executing cmd with gs-netcat v1.4.42dev2
mrbluecoat opened this issue · 0 comments
mrbluecoat commented
I'm using the binary https://github.com/hackerschoice/gsocket/releases/download/v1.4.42dev2/gs-netcat_linux-aarch64 on my server and running it via your systemd service. I'm then using the binary https://github.com/hackerschoice/gsocket/releases/download/v1.4.42dev2/gs-netcat_linux-x86_64 on my Ubuntu 22.04 client and can connect just fine via interactive TTY. However, -e <cmd>
attempts throw this error:
$ gs-netcat -s redactedpassword -e "id"
4_gs-netcat.c:1579:my_getopt() ASSERT(gopt.port != 0) Client listening port is 0 but wants multiple peers.
Exiting...
Same behavior if I remove the double-quotes from the command. Is my argument format wrong?