登陆你的vps.
wget https://github.com/ls0f/cracker/releases/download/v2.0/linux_amd64_server
mv linux_amd64_server cracker-2.0
chmod 755 cracker-2.0
wget https://raw.githubusercontent.com/ls0f/cracker/master/gen_key_cert.sh
chmod 755 gen_key_cert.sh
./gen_key_cert.sh
(会提示Enter your ip or domain: ,请输入你的域名.回车,在当前目录下,就会生成cert.pem和key.pem)
wget https://github.com/ls0f/cracker/releases/download/v2.0/linux_amd64_server
mv linux_amd64_server cracker-2.0
chmod 755 cracker-2.0
wget https://raw.githubusercontent.com/ls0f/cracker/master/gen_key_cert.sh
chmod 755 gen_key_cert.sh
./gen_key_cert.sh
(会提示Enter your ip or domain: ,请输入你的域名.回车,在当前目录下,就会生成cert.pem和key.pem)
./cracker-2.0 -addr :2443 -secret my-password -https
(不过这条命令是运行在前台的,容易退出。这里,我用systemd把该命令运行为service,最后未成功。好在可以安装daemonize- http://briteming.blogspot.com/2016/08/daemonize-daemon.html ,然后运行:
daemonize -c . /root/cracker-2.0 -addr :2443 -secret my-password -https
这样,cracker-2.0就运行在后台了。)
在客户机器mac上,
wget https://github.com/ls0f/cracker/releases/download/v2.0/darwin_amd64_local
mv darwin_amd64_local cracker-2.0
chmod 755 cracker-2.0
daemonize -c . /root/cracker-2.0 -addr :2443 -secret my-password -https
这样,cracker-2.0就运行在后台了。)
在客户机器mac上,
wget https://github.com/ls0f/cracker/releases/download/v2.0/darwin_amd64_local
mv darwin_amd64_local cracker-2.0
chmod 755 cracker-2.0
./cracker-2.0 -raddr https://mydomain.com:2443 -secret my-password -laddr 127.0.0.1:2233
(注意:你本地机器的时间跟北京时间的误差不能超过10秒。如果运行该命令后,遇错:
ERRO @socks5.go:51 proxy connect err:status code is 500, body is:timestamp expire ,请调整你本地机器的时间,你本地机器的时间跟北京时间的误差不要超过10秒,即可解决此错误)
保持运行该命令的terminal窗口不要关闭,设置浏览器的socks5代理服务器为127.0.0.1:2233 ,浏览器即可翻墙。不过如果设置firefox浏览器的socks5代理服务器为127.0.0.1:2233,firefox浏览器虽然可以翻墙,但速度不快,所以最好还是用chrome+switchyomega的方式来翻墙,这样翻墙的速度大大提高。
项目地址:https://github.com/ls0f/cracker
https://github.com/ls0f/cracker/releases
https://github.com/ls0f/cracker/issues/17
本帖就是用此翻墙术翻墙后发表的。
本帖就是用此翻墙术翻墙后发表的。