socat
socat copied to clipboard
httpd for Windows
I have debugged the http-server for netcat. Running in WSH did this:
ncat.exe -klp 8080 -e "C:/Windows/SysWOW64/cscript.exe //Nologo httpd.session.wsf"
I wanted to try socat instead of netcat and I can't figure out how to run it. I tried this, but I don't get an answer:
socat.exe tcp-listen:8080,keepalive exec:"C\:/Windows/SysWOW64/cscript.exe //Nologo httpd.session.wsf"
Probably something is missing. httpd.session.wsf script outputs headers and html-document to stdout.