搭建Xray_and_crwlergo_in_server小记

项目地址

https://github.com/ox01024/Xray_and_crwlergo_in_server

搭建过程

首先查看启动脚本:


启动脚本

我这里以Centos 7为例,我所有操作都在/opt/目录下

cd /opt/

yum install -y git wget python36

python3 -m pip config set global.index-url https://mirrors.163.com/pypi/simple/

git clone https://github.com/ox01024/Xray_and_crwlergo_in_server

cd Xray_and_crwlergo_in_server/

wget https://github.com/0Kee-Team/crawlergo/releases/download/v0.2.1/crawlergo_linux_amd64.zip

wget https://github.com/chaitin/xray/releases/download/0.21.0/xray_linux_amd64.zip

unzip crawlergo_linux_amd64.zip

unzip xray_linux_amd64.zip

rm -rf xray_linux_amd64.zip

rm -rf crawlergo_linux_amd64.zip

mkdir logs

touch logs/serverjiang.log

touch logs/xray.log

touch launcher.log


server酱

安装python3的依赖库

pip install flask

pip install requests

pip install datetime

修改serverjiang.py第十行:


修改server酱的key

key的获取地址:http://sc.ftqq.com/


sckey

launcher.py


所需依赖库

安装依赖库

pip3 install simplejson

删除37-40行的代码

proxies={

'http':'http://127.0.0.1:7777',

'https':'http://127.0.0.1:7777',

}

修改47和50行的代码,删除proxies=proxies。

修改58行: /root/chrome-linux/chrome 为/opt/chrome-linux/chrome

修改targets.txt为你需要扫描的地址。

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容