robiot / rustcat

Rustcat(rcat) - The modern Port listener and Reverse shell
https://git.io/rustcat
GNU General Public License v3.0
675 stars 61 forks source link

Windows Reverse Shell Support #21

Closed robiot closed 1 month ago

robiot commented 2 years ago

It will be almost the same as unixshell.rs except you need to replace as_raw_fd and from_raw_fd with https://doc.rust-lang.org/std/os/windows/io/

It will be different than unix since windows doesn't have unified fds.

ramenhost commented 1 month ago

I am interested in adding support for windows. One approach would be to create a subprocess with pipe, while parent actively copies between network socket and child pipes. Let me know your thoughts.

robiot commented 1 month ago

Yeah that sounds good @ramenhost if you can make it work! Good luck!