mirror of
https://github.com/The-Art-of-Hacking/h4cker.git
synced 2024-12-19 03:16:08 +00:00
27 lines
766 B
Bash
27 lines
766 B
Bash
#!/bin/bash
|
|
# A simple script to install Chef inspec and the CIS Docker Benchmark InSpec Profile
|
|
# Runs on Ubuntu, Debian, Parrot, and Kali Linux
|
|
# Author: Omar Santos @santosomar
|
|
# version 0.1
|
|
|
|
red=$(tput setaf 1)
|
|
green=$(tput setaf 2)
|
|
reset=$(tput sgr0)
|
|
|
|
echo "${green}Installing InSpec"
|
|
echo "${reset}========================="
|
|
|
|
curl https://omnitruck.chef.io/install.sh | sudo bash -s -- -P inspec
|
|
|
|
echo "${red} Running CIS Docker Benchmark ${reset} locally on $(hostname)"
|
|
inspec exec https://github.com/dev-sec/cis-docker-benchmark > cis_benchmark_results.txt
|
|
|
|
|
|
|
|
printf -- '\n';
|
|
echo "${red}REPORT SUMMARY:"
|
|
tail -n 2 cis_benchmark_results.txt
|
|
|
|
printf -- '\n';
|
|
echo "${reset}The complete results have been stored at:
|
|
${green}$(pwd)/cis_benchmark_results.txt " |