in ctf

How to start a simple HTTP Server to quickly transfer files

Browse to the directory of the files you wish to transfer

python -m SimpleHTTPServer 8000

or


import SimpleHTTPServer
import SocketServer

PORT = 8000

Handler = SimpleHTTPServer.SimpleHTTPRequestHandler

httpd = SocketServer.TCPServer(("", PORT), Handler)

print "serving at port", PORT
httpd.serve_forever()