Skip to content

secure-77/powershell-http-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

powershell-http-server

simple powershell http server

start with

# 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

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

About

simple python like http server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published