Wednesday, January 11, 2017

python http server

I was in a datacenter a few days ago and had a host of issues with access to my SSH server for upgrade a cisco appliance.

How I got around this issues was by setting up a simple HTTP server using python and hosting the file that I want to  download on that server.


Here's a quick http server if you ever are being  blocked or filter by a local firewall rule for  scp/ssh/ftp but you have  HTTP open

you need sudo for  binding to port 80 or any port under 1024




















the directroy that you start the server under is your "webRootDirectory" make sure the file(s) you want to host are in that path







Ken Felix

 

NSE ( network security expert) and Route/Switching Engineer
kfelix  -----a----t---- socpuppets ---dot---com
     ^      ^
=(  @  @ )=
         o 
        /  \

No comments:

Post a Comment