Merge pull request #97 from hemedga/date

removed printCurrentDate() and added current date to banner
This commit is contained in:
Toni de la Fuente
2017-08-22 10:34:14 +02:00
committed by GitHub

View File

@@ -335,6 +335,7 @@ prowlerBanner() {
echo -e " | |_) | | | (_) \ V V /| | __/ |" echo -e " | |_) | | | (_) \ V V /| | __/ |"
echo -e " | .__/|_| \___/ \_/\_/ |_|\___|_|" echo -e " | .__/|_| \___/ \_/\_/ |_|\___|_|"
echo -e " |_|$NORMAL$BLUE CIS based AWS Account Hardening Tool$NORMAL\n" echo -e " |_|$NORMAL$BLUE CIS based AWS Account Hardening Tool$NORMAL\n"
echo -e "$YELLOW Date: $(date)"
} }
# Get whoami in AWS, who is the user running this shell script # Get whoami in AWS, who is the user running this shell script
@@ -381,10 +382,6 @@ getWhoami(){
fi fi
} }
printCurrentDate(){
textNotice "Date: $(date)"
}
printColorsCode(){ printColorsCode(){
if [[ $MONOCHROME -eq 0 ]]; then if [[ $MONOCHROME -eq 0 ]]; then
echo -e "\nColors Code for results: $NOTICE INFORMATIVE$NORMAL,$OK OK (RECOMMENDED VALUE)$NORMAL, $BAD WARNING (FIX REQUIRED)$NORMAL \n" echo -e "\nColors Code for results: $NOTICE INFORMATIVE$NORMAL,$OK OK (RECOMMENDED VALUE)$NORMAL, $BAD WARNING (FIX REQUIRED)$NORMAL \n"
@@ -1581,7 +1578,6 @@ callCheck(){
if [[ $MODE != "csv" ]]; then if [[ $MODE != "csv" ]]; then
prowlerBanner prowlerBanner
printCurrentDate
printColorsCode printColorsCode
fi fi
getWhoami getWhoami