Sometimes you need to share a file, show someone a file, serve a client side exploit in a local network, but you don’t have a web server on your machine, or don’t want to upload the file to a server… Here is a very useful tip to run a web server serving the actual directory with Python:

shell>python -c “import SimpleHTTPServer;SimpleHTTPServer.test()”

there is an easier way:

shell>python -m SimpleHTTPServer

By the default it will use the port 8000.

You can create an alias for easy launching

More shell tricks in


Go to Source of this post
Author Of this post:

By admin