bear 月与灯依旧 2022-12-02 The easiest way to build a http/ftp server with Python Build a HTTP Server # Python2 python -m SimpleHTTPServer PORT # Python 3 python -m http.server PORT python -m http.server PORT --bind example.com Build a FTP Server pip install pyftpdlib python -m pyftpdlib -p 21 # notice: it's ftpd, not ftp # if you want a username and password python -m pyftpdlib -u USERNAME -P PASSWORD A powershell script could run in Windows place a file named “ftp.ps1” with the following content: Set-ExecutionPolicy RemoteSigned -Scope CurrentUser Set-Location -Pat #Linux运维 #Linux #python
bear 月与灯依旧 2022-10-25 pproxy简单介绍 pproxy是一个简单的小工具, 顾名思议它是一个临时的代理小工具. 下面介绍其使用方法. 安装 服务端和客户端都可以使用如下方式进行安装 pip3 install pproxy 服务端运行 pproxy -l ss://aes-128-gcm:MyPassword@:3389 客户端运行 客户端简单运行 pproxy -r ss://aes-128-gcm:MyPassword@ServerIP:3389 -vv 然后客户端会提示”Serving on :8080 by http,socks4,socks5″. 客户端建立http代理 sudo pproxy -l http://127.0.0.1:8080 -r ss://aes-128-gcm:MyPassword@ServerIP:3389 -vv 然后客户端会提示”Serving on 127.0.0.1:8080 by http”. 客户端建立DNS tunnel 由于ss(AEAD)协议不支持udp, 因此我们只能换用socks5或者tunnel (raw socket)协议来支持udp. 服 #电脑网络 #Linux #python