看得透又看得远者prevail. ppt.cc/flUmLx ppt.cc/fqtgqx ppt.cc/fZsXUx ppt.cc/fhWnZx ppt.cc/fnrkVx ppt.cc/f2CBVx
ppt.cc/fKlBax ppt.cc/fwlgFx ppt.cc/fVjECx ppt.cc/fEnHsx ppt.cc/fRZTnx ppt.cc/fSZ3cx ppt.cc/fLOuCx ppt.cc/fE9Nux ppt.cc/fL5Kyx ppt.cc/f71Yqx tecmint.com linuxcool.com linux.die.net linux.it.net.cn ostechnix.com unix.com ubuntugeek.com runoob.com man.linuxde.net ppt.cc/fwpCex ppt.cc/fxcLIx ppt.cc/foX6Ux linuxprobe.com linuxtechi.com howtoforge.com linuxstory.org systutorials.com ghacks.net linuxopsys.com ppt.cc/ffAGfx ppt.cc/fJbezx ppt.cc/fNIQDx ppt.cc/fCSllx ppt.cc/fybDVx ppt.cc/fIMQxx
Total Pageviews
Tuesday, 3 March 2020
利用socks代理程序-aproxy翻墙
在linux vps上。首先安装go1.13环境:
mkdir go1.13
cd go1.13
wget https://dl.google.com/go/go1.13.linux-amd64.tar.gz
tar zxvf go1.13.linux-amd64.tar.gz
echo 'export PATH=$PATH:/root/go1.13/go/bin' >> /etc/profile
cd go
mkdir gopath
echo 'export GOROOT=/root/go1.13/go' >> /etc/profile
echo 'export GOPATH=/root/go1.13/go/gopath' >> /etc/profile
echo 'export PATH=$PATH:/root/go1.13/go/gopath/bin' >> /etc/profile
. /etc/profile
这样,go环境就搭建好了。
cd $GOPATH
go get -u -v github.com/treant5612/aproxy/
cd ~
aproxy -s
(会在~/下,生成配置文件config.txt)
nano config.txt
cat config.txt
go get -u -v github.com/treant5612/aproxy/
cd ~
aproxy -c
(会在~/下,生成配置文件config.txt)
nano config.txt
cat config.txt
mkdir go1.13
cd go1.13
wget https://dl.google.com/go/go1.13.linux-amd64.tar.gz
tar zxvf go1.13.linux-amd64.tar.gz
echo 'export PATH=$PATH:/root/go1.13/go/bin' >> /etc/profile
cd go
mkdir gopath
echo 'export GOROOT=/root/go1.13/go' >> /etc/profile
echo 'export GOPATH=/root/go1.13/go/gopath' >> /etc/profile
echo 'export PATH=$PATH:/root/go1.13/go/gopath/bin' >> /etc/profile
. /etc/profile
这样,go环境就搭建好了。
cd $GOPATH
go get -u -v github.com/treant5612/aproxy/
cd ~
aproxy -s
(会在~/下,生成配置文件config.txt)
nano config.txt
cat config.txt
##以下为服务端设置
[Server]
Key =mykey
Port =10808
[WebsocketServer]
Key=mykey
Port=82
#[Forward]
# Address=localhost:9050
然后,
aproxy -key mykey &
(建议用systemd把aproxy运行为service:
killall aproxy
cd /etc/systemd/system
nano aproxy.service
cat aproxy.service
[Unit]
After=network.target
[Service]
WorkingDirectory=/root/
ExecStart=/root/go1.13/go/gopath/bin/aproxy -key mykey
Restart=always
[Install]
WantedBy=multi-user.target
然后,
systemctl enable aproxy
systemctl start aproxy
服务器端搭建完成。
在客户端机器mac上。
首先安装go1.13环境。
cd $GOPATHgo get -u -v github.com/treant5612/aproxy/
cd ~
aproxy -c
(会在~/下,生成配置文件config.txt)
nano config.txt
[Proxy]
AutoProxy=false
Filter=gfwlist.txt
SocksLocal=true
SocksPort=10819
[Tunnel]
Type =tcp
Key =mykey
Address =my-vps-ip
Port =10808
然后,
aproxy -key mykey
不要关闭此terminal窗口。
设置浏览器的socks5代理为127.0.0.1 ,端口为10819 ,浏览器即可翻墙。
不过,过一段时间后,aproxy -key mykey会自动退出运行,所以这时就只好重新运行aproxy -key mykey了。
不过,过一段时间后,aproxy -key mykey会自动退出运行,所以这时就只好重新运行aproxy -key mykey了。
Labels:
翻墙术
Monday, 2 March 2020
SimpleHTTPServer的替代品Updog
Updog is a replacement for Python's
SimpleHTTPServer. It allows uploading and downloading via HTTP/S, can set ad hoc SSL certificates and use HTTP basic auth.Installation
Install using pip:
pip3 install updogUsage
updog [-d DIRECTORY] [-p PORT] [--password PASSWORD] [--ssl]| Argument | Description |
|---|---|
| -d DIRECTORY, --directory DIRECTORY | Root directory [Default=.] |
| -p PORT, --port PORT | Port to serve [Default=9090] |
| --password PASSWORD | Use a password to access the page. (No username) |
| --ssl | Enable transport encryption via SSL |
| --version | Show version |
| -h, --help | Show help |
Examples
Serve from your current directory:
updog
Serve from another directory:
updog -d /another/directory
Serve from port 1234:
updog -p 1234
Password protect the page:
updog --password examplePassword123!
Please note: updog uses HTTP basic authentication. To login, you should leave the username blank and just enter the password in the password field.
Use an SSL connection:
updog --ssl
Labels:
python
Sunday, 1 March 2020
万物滋养
https://v.youku.com/v_show/id_XMzM2MjcwMTQwOA==.html
https://v.youku.com/v_show/id_XMzM2NzE1NDg1Mg==.html
https://v.youku.com/v_show/id_XMzM2NzE4Mzk0MA==.html
https://v.youku.com/v_show/id_XMzM3MjI5NTczMg==.html
https://v.youku.com/v_show/id_XMzM3MjU3MDUxNg==.html
https://v.youku.com/v_show/id_XMzM3NjY5ODg1Ng==.html
这个系列的纪录片拍得不错,难得见到国内的精品。
看了这个系列的纪录片,应该更加热爱生命,不要白来人世间走一遭。
https://v.youku.com/v_show/id_XMzM2NzE1NDg1Mg==.html
https://v.youku.com/v_show/id_XMzM2NzE4Mzk0MA==.html
https://v.youku.com/v_show/id_XMzM3MjI5NTczMg==.html
https://v.youku.com/v_show/id_XMzM3MjU3MDUxNg==.html
https://v.youku.com/v_show/id_XMzM3NjY5ODg1Ng==.html
这个系列的纪录片拍得不错,难得见到国内的精品。
看了这个系列的纪录片,应该更加热爱生命,不要白来人世间走一遭。
Labels:
resources
Subscribe to:
Posts (Atom)
