Simple barely functional php native reverse shell for windows.
The only thing that makes this shell windows is the cmd.exe execution, change as needed.
Because of the minimal logic in this shell, the reads and writes step on each other, so you might need to give it some extra characters on input to trigger more output.
Do what you want, if you improve it and what to contribute back, that's cool. If you find a bug, report it to help us all.