Python shared files,

Source: Internet
Author: User
Big boys, are you still in the transfer of files with the use of USB plug-and-unplug, but also in order to set up file sharing and distressed? Do not fret, teach you backhand will be able to achieve file sharing.

首先我们都要有python环境,这个肯定有。下面就是这一反手,在你要传的文件的目录下输入命令:

Python-m Simplehttpserver (can be done between backhand)

你想将文件传给谁,直接让他在浏览器上输入:Ip:8000

这样即节省了自己的时间,也节省了小伙伴的等待时间。美滋滋!作为一个学习安全的不能只知道操作是不是,来一丢丢原理。

This is actually a built-in Python download server, the service side executes the above command, will open a download server in the current directory, and then open 8000 port by default.

From the working principle, this is a python launched a Web server, if the current directory has a home page (index.html), will display the first page content, no, it will show the current directory of folders and files, that is, you see the download server.

有兴趣的大佬试一试,特别是真机系统是linux的,贼方便,贼6。

Python shared files,

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.