Wednesday, December 2, 2020

Running a python3 http and ftp-server

When working in a all MSwindows environment, you will find sometime you need to upload or download config file via ftp or http to the device. If you have python3 installed, these 2 examples will show you how to run a local server for http and ftp on your window host.

1st you need to install the module pyftpdlib




Once you have install it, you can run the ftpserver in anonymous 




Or set a user+password  if you want to enable passwords




For the http.server, you have a module name http.server and upon http.requests, you will have a simple log output to standard screen and with status.codes



In this example it's python version 2.x


https://socpuppet.blogspot.com/2017/01/python-http-server.html



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

        /  \


No comments:

Post a Comment