Code Monkey home page Code Monkey logo

ansible_vuls's Introduction

ansible install vuls

1.在ansible服务器侧添加准备安装vuls服务器的hosts

$ cat /etc/ansible/hosts

[vuls]
172.26.37.140 ansible_ssh_user=root ansible_ssh_pass='123456'

2.下载ansible安装的playbook等文件

$ git clone [email protected]:arrow003/ansible_vuls.git

$ cd ansible_vuls

3.执行playbook(执行之前可以通过[vars]修改准备部署的目录

$ ansible-playbook ansible_vuls_install.yaml

说明:网络原因,CN可能一次无法成功

vuls 更新cve等sqlite3库文件

执行tags fetch为仅更新sqlite3库文件

$ ansible-playbook ansible_vuls_install.yaml --tags "fetch" --list-tasks

$ ansible-playbook ansible_vuls_install.yaml --tags "fetch"

vuls 添加扫描对象

1.配置与扫描对象连接

创建证书

$ ssh-keygen -t rsa

拷贝证书到扫描对象服务器

$ for i in localhost 172.26.37.140 172.26.37.204 ;do ssh-copy-id -i .ssh/id_rsa.pub $i;done

2.参考localhost.toml文件修改扫描参数

3.扫描

$ vuls scan -config=./localhost.toml

4.查看扫描报告

$ vuls report -config=./localhost.toml -format-json

ansible_vuls's People

Contributors

arrow003 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.