mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 14:55:00 +00:00
Add clarifying text to pass/fail messages
This commit is contained in:
@@ -41,11 +41,11 @@ extra741(){
|
|||||||
fi
|
fi
|
||||||
FINDINGS=$(secretsDetector file "$EC2_USERDATA_FILE")
|
FINDINGS=$(secretsDetector file "$EC2_USERDATA_FILE")
|
||||||
if [[ $FINDINGS -eq 0 ]]; then
|
if [[ $FINDINGS -eq 0 ]]; then
|
||||||
textPass "$regx: No secrets found in $instance" "$regx"
|
textPass "$regx: No secrets found in $instance User Data" "$regx"
|
||||||
# delete file if nothing interesting is there
|
# delete file if nothing interesting is there
|
||||||
rm -f "$EC2_USERDATA_FILE"
|
rm -f "$EC2_USERDATA_FILE"
|
||||||
else
|
else
|
||||||
textFail "$regx: Potential secret found in $instance" "$regx"
|
textFail "$regx: Potential secret found in $instance User Data" "$regx"
|
||||||
# delete file to not leave trace, user must look at the instance User Data
|
# delete file to not leave trace, user must look at the instance User Data
|
||||||
rm -f "$EC2_USERDATA_FILE"
|
rm -f "$EC2_USERDATA_FILE"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user