您好,登錄后才能下訂單哦!
這篇文章主要介紹網絡安全中代碼防泄露工具怎么用,文中介紹的非常詳細,具有一定的參考價值,感興趣的小伙伴們一定要看完!
docker安裝
#dockerfile FROM ubuntu:14.04 ENV GOAPTH /opt/go RUN apt update -y RUN apt install -y wget golang mysql-server git RUN cd /opt && git clone https://github.com/MiSecurity/x-patrol.git && cd x-patrol && wget https://github.com/MiSecurity/x-patrol/releases/download/0.3/x-patrol_linux_amd64 RUN service mysql start && mysql -e "create database xsec;GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION;use mysql;UPDATE user SET Password=PASSWORD('123456') WHERE User='root' AND Host='localhost';flush privileges;" RUN mv /opt/x-patrol /opt/x && mv /opt/x/x-patrol_linux_amd64 /opt/x/run && chmod +x /opt/x/run COPY app.ini /opt/x/conf/app.ini ENTRYPOINT service mysql start && cd /opt/x/ && ./run web #app.ini HTTP_HOST = 0.0.0.0 HTTP_PORT = 8000 MAX_INDEXERS = 2 DEBUG_MODE = true REPO_PATH = repos MAX_Concurrency_REPOS = 1 [database] ;support sqlite3, mysql, postgres DB_TYPE = mysql HOST = 127.0.0.1 PORT = 3306 NAME = xsec USER = root PASSWD =123456 SSL_MODE = disable PATH = data
按照別人的教程,無法檢測。
docker啟動
docker run -ti -p 80:80 -e MONGODB_URI=mongodb://ip:27017 -it hawkeye
啟動成功
添加監控項
以上是“網絡安全中代碼防泄露工具怎么用”這篇文章的所有內容,感謝各位的閱讀!希望分享的內容對大家有幫助,更多相關知識,歡迎關注億速云行業資訊頻道!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。