samk1 / IISPowershellModule

IIS Handler for *.ps1 files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IISPowershellModule

IIS Handler for *.ps1 files

This is a really basic IIS handler for *.ps1 files.

All of the output of the powershell script becomes the response body. The http context is available in any script executed by this handler as $HTTP_CONTEXT, which means you can add headers, cookies, or write directly into the response object.

(in)security

Think very carefully about running this module on a public IIS server.

eg:

Invoke-Expression $HTTP_CONTEXT.Request.QueryString.AllKeys.Single

About

IIS Handler for *.ps1 files


Languages

Language:C# 99.4%Language:PowerShell 0.6%