Configure v2ray with cloudflare with docker and docker-compose
- caddy-*: http server related files
- v2ray-*: v2ray related files
- forword-*: files to relay requests
The MTProto
is easy to block; shadowsocks
is hard to identify but cannot work without a client.
You can deylop this docker image to run a relay inside the firewall (China/Russia etc.), it provide a MTProto and all the packets will be sent through shadowsocks protocol.
package main | |
import ( | |
"flag" | |
"io" | |
"log" | |
"net" | |
"os" | |
"time" | |
) |
import requests | |
import time | |
proxies_original = { | |
'http': 'socks5://127.0.0.1:18081', | |
'https': 'socks5://127.0.0.1:18081' | |
} | |
proxies_my = { | |
'http': 'socks5://127.0.0.1:18080', | |
'https': 'socks5://127.0.0.1:18080' | |
} |
新入了一个小米路由器,记录一下折腾过程。
首先自动分流科学上网是必须的。
因为小米的ROM本身就是基于openwrt的,所以第一步只需要先走官方途径拿到root权限。
有了权限就只需要找一个别人造的轮子部署一下即可。
下载官方SDK后,修改脚本中的WORKDIR
,chmod +x shadowsocks-build.sh
后执行即可。
我编译的版本(10/07/2018) https://drive.google.com/drive/folders/1kTR73hkzAeMW-gXE2EacNa4Yte8o7JWU
var SMS = global('SMSRB'); | |
var SENDER = global('SMSRF'); | |
var SMSCONTENT = SMS + "\nSender: " + SENDER + "\nFrom Mobile" | |
var url = "https://xxxxxxxx/sendMessage?chat_id=0000000"; | |
var xhttp = new XMLHttpRequest(); | |
xhttp.open("POST", url, false); | |
xhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded"); | |
xhttp.send("text="+encodeURIComponent(SMSCONTENT)); |
To help users in China mainland access telegram api stably and conveniently with low cost, this script maybe the one you need.
The server-less means you don't have to run a server to proxy the requests, just pay as you go.
Edit key_prefix
, set it to the prefix of you bot address(like /bot563441998:
) can avoid abusing.
import requests | |
import time | |
import json | |
import random | |
headers = { | |
"User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 11_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15G77 MicroMessenger/6.7.1", | |
"Referer": "https://servicewechat.com/wx89db226245a4cdc4/18/page-frame.html", | |
"Content-Type": "application/json", | |
"Accept-Encoding": "gzip, deflate" |
# -*- coding: utf-8 -*- | |
import requests | |
import time | |
def login(): | |
username = "" | |
password = "" | |
url = "http://10.108.255.249/include/auth_action.php" | |
data = {"username": username, |