Skip to content

Instantly share code, notes, and snippets.

@AyrA
AyrA / http.ps1
Last active April 13, 2024 14:21
Powershell HTTP Server
# Portable HTTP file server
# Should be somewhat safe but please don't actually use it.
# You can't exit this with CTRL+C directly and need to use the shutdown command below a directory listing,
# or you can kill the powershell process of course, but this causes the port to stay used sometimes.
# Features
# - Directory Browser
# - Can handle UTF8 URLs
# - Delivers unknown file types
# - /../ attack prevention