clong / DetectionLab

Automate the creation of a lab environment complete with security tooling and logging best practices
MIT License
4.64k stars 987 forks source link

Duplicated install of Velociraptor in /ESXi/ansible/roles/logger/tasks/main.yml #802

Closed certrik closed 2 years ago

certrik commented 2 years ago
   cd /opt/velociraptor || exit 1
    mv velociraptor-*-linux-amd64 velociraptor
    chmod +x velociraptor
    cp /vagrant/resources/velociraptor/server.config.yaml /opt/velociraptor
    echo "[$(date +%H:%M:%S)]: Creating Velociraptor dpkg..."
    ./velociraptor --config /opt/velociraptor/server.config.yaml debian server
    echo "[$(date +%H:%M:%S)]: Installing the dpkg..."
    if dpkg -i velociraptor_*_server.deb >/dev/null; then
      echo "[$(date +%H:%M:%S)]: Installation complete!"
    else
      echo "[$(date +%H:%M:%S)]: Failed to install the dpkg"
    fi

is done twice in /ESXi/ansible/roles/logger/tasks/main.yml

clong commented 2 years ago

This was fixed a long time ago: https://github.com/clong/DetectionLab/commit/d1922d03b7eb26b8be3ec7cf58aabc708e7789bc