搭建Xray_and_crwlergo_in_server小記

項(xiàng)目地址

https://github.com/ox01024/Xray_and_crwlergo_in_server

搭建過程

首先查看啟動(dòng)腳本:


啟動(dòng)腳本

我這里以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為你需要掃描的地址。

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容