Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

httpd for Windows #4

Open
Arkady23 opened this issue Dec 17, 2022 · 2 comments
Open

httpd for Windows #4

Arkady23 opened this issue Dec 17, 2022 · 2 comments

Comments

@Arkady23
Copy link

Arkady23 commented Dec 17, 2022

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.

@Arkady23
Copy link
Author

I read the channel with errors in the terminal. I see an error during execution in the stdin read statement. Apparently there is no data in the standard input.

@Arkady23
Copy link
Author

While I was waiting, I read the manual http://www.dest-unreach.org/socat/doc/socat.html
I tried all the options. I picked up such a working option:
D:\work\httpd>C:/bin/socat/socat.exe tcp-listen:8080,keepalive,fork exec:"C\:/Windows/SysWOW64/cscript.exe //Nologo D\:/work/httpd/httpd.session.wsf",pipes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant