msoap / shell2http

Executing shell commands via HTTP server
MIT License
1.32k stars 129 forks source link

can execute powershell on Windows ? #71

Closed hyunil-shin closed 3 years ago

hyunil-shin commented 3 years ago

On windows, shell2http -shell="powershell" /shell 'something' returns "loading managed windows powershell failed with error 8009001d" for http request.

hyunil-shin commented 3 years ago

I found to use powershell. -export-all-vars is required.

shell2http.exe -port=xxx -export-all-vars    /shell 'powershell -executionpolicy bypass -file yyy.ps1'