python -m http.server build a simple web server download

A problem when playing vulnhub range of experience


table of Contents

One proceeds to the installation package directory needs to be sent

Second, open the http service

Third, access to the server


One proceeds to the installation package directory needs to be sent

Such as setting a special transmission, the file transfer folder, which can open command cmd

Second, open the http service  

python2
python -m SimpleHTTPServer 9000

python3
python -m http.server 9000
(这里要注意了,python2跟python3的命令是不一样的,我之前就是上网搜搭建方法,大都是搜到了python3的方法,结果自己的环境是python2,很纳闷一直不成功)

-m module-name

http.server python module - HTTP server

9000 port, you can specify a different port is not in use

Third, access to the server

(Here about theft of someone else's picture, right)

Machine Access: Enter http://172.22.213.64:3000/ browser or http: // localhost: 3000 /Here Insert Picture Description

After testing, all together with a WiFi (the same local area network), whether it is a mobile phone with the computer, can have access to

During operation of the installation package, etc. frequently send large files to a colleague, pro-test copy shared folders, QQ, micro-channel chat tools, high speed file transfer is not efficient.

However, the use python to build simple LAN server download faster, Fast Ethernet download speeds easily reach 10MB / s or more, Gigabit Ethernet Needless to say, therefore, I hope, help you work

Guess you like

Origin www.cnblogs.com/simon7s/p/12406958.html