Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/secure-77/powershell-http-server
simple python like http server
https://github.com/secure-77/powershell-http-server
Last synced: 30 days ago
JSON representation
simple python like http server
- Host: GitHub
- URL: https://github.com/secure-77/powershell-http-server
- Owner: secure-77
- Created: 2022-12-02T17:32:11.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-16T16:49:14.000Z (5 months ago)
- Last Synced: 2024-08-13T07:05:58.367Z (3 months ago)
- Language: PowerShell
- Size: 10.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - secure-77/powershell-http-server - simple python like http server (PowerShell)
README
# powershell-http-server
simple powershell http serverstart with
```powershell
# using defaults
.\webserver.ps1# start on port 8080
.\webserver.ps1 8080# start on port 80 and /Temporary_Listen_Addresses path if you are non priviliged
.\webserver.ps1 80 /Temporary_Listen_Addresses# start privileged in the current directory
start-process powershell -argumentList "-ep bypass -NoExit -c cd $($PWD); .\webserver.ps1" -verb runas
```if you are not admin and get access denied, check with `netsh http show urlacl` to find allowed ports and urls
for example
```powershell
Reserved URL : https://*:5358/
User: BUILTIN\Users
Listen: Yes
Delegate: No```
- server listen on all interfaces so you need admin permissions to run the script
- listen per default on port 8088 if you are admin
- listen per default on port 10246 and path /MDEServer if you are not admin (access the server via http://:10246/MDEServer/)
- directory listing and navigation
- directory traversal
- file download
- browser view (for utf-8 readable files)![image](https://user-images.githubusercontent.com/31564517/205432495-c8999711-e9b4-48c9-b3a8-d36e586cdb9e.png)