这篇文章主要介绍网络安全中代码防泄露工具怎么用,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!
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进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。