From 2620c46fbe7d9a6e019e8b07f45dc433c616fa0e Mon Sep 17 00:00:00 2001 From: ddv12138 <644077730@qq.com> Date: Mon, 11 Sep 2017 13:57:03 +0800 Subject: [PATCH] `date` --- cet_query.py | 4 +-- setup-ssr-with-net_speeder.sh | 60 +++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+), 2 deletions(-) create mode 100755 setup-ssr-with-net_speeder.sh diff --git a/cet_query.py b/cet_query.py index f110f4b..8849918 100644 --- a/cet_query.py +++ b/cet_query.py @@ -34,11 +34,11 @@ H = {'Accept':'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp, def query(id__,name): s = requests.Session() - req = s.get(URL,headers=H,proxies=proxy) + req = s.get(URL,headers=H) if req.ok : url = URL + data.format(id__,quote(name)) - req = requests.get(url,headers=H,cookies=req.cookies,proxies=proxy) + req = requests.get(url,headers=H,cookies=req.cookies) return req.text else: print(id__,name,'出错',sep='-->') diff --git a/setup-ssr-with-net_speeder.sh b/setup-ssr-with-net_speeder.sh new file mode 100755 index 0000000..49f0464 --- /dev/null +++ b/setup-ssr-with-net_speeder.sh @@ -0,0 +1,60 @@ +#!/bin/bash +set -e + +echo "输入端口号" && read port +echo "输入密码" && read passwd +echo "输入容器名" && read name + +method=('aes-128-ctr' 'aes-192-ctr' 'aes-256-ctr' 'aes-128-cfb' 'aes-192-cfb' 'aes-256-cfb' 'bf-cfb' 'camellia-128-cfb' 'camellia-192-cfb' 'camellia-256-cfb' 'chacha20' 'chacha20-ietf' 'rc4-md5' 'salsa20') +obfs=('plain' 'http_simple' 'http_post' 'random_head' 'tls1.2_ticketauth') +protocol=('orgin' 'auth_sha1_compatible' 'auth_sha1_v2_compatible' 'auth_sha1_v4_compatible' 'auth_aes128_md5_compatible' 'auth_aes128_sha1_compatible') +i=0 +for x in ${obfs[@]}; +do + echo $i ${x} + + i=$[i+1] +done +echo "请选择混淆协议的编号" +read a +obfs=${obfs[$a]} + + + +i=0 +for x in ${protocol[@]}; +do + echo $i ${x} + + i=$[i+1] +done +echo "请选择协议的编号" +read a +protocol=${protocol[$a]} + + + +i=0 +for x in ${method[@]}; +do + echo $i ${x} + + i=$[i+1] +done +echo "method :" +read a +method=${method[$a]} + +echo $obfs $protocol $method + +docker run -d -p $port:$port/tcp -p $port:$port/udp \ + -e ROOT_PASS="$passwd" \ + --name $name \ + lnterface/ssr-with-net_speeder \ + -s 0.0.0.0 \ + -p $port \ + -k $passwd \ + -m $method \ + -o $obfs \ + -O $protocol +docker logs -f $name