Save the secrets found to the account folder for analysis

This commit is contained in:
Nimrod Kor
2019-11-04 23:32:28 +02:00
parent a8e8d66d0c
commit 8a4362e2e0
3 changed files with 7 additions and 4 deletions
+3 -2
View File
@@ -56,11 +56,12 @@ extra741(){
fi
else
textPass "$regx: No secrets found in $instance User Data or it is empty" "$regx"
fi
rm -f $EC2_USERDATA_FILE
fi
done
else
textInfo "$regx: No EC2 instances found" "$regx"
fi
done
rm -rf $SECRETS_TEMP_FOLDER
# rm -rf $SECRETS_TEMP_FOLDER
}
+2 -1
View File
@@ -44,11 +44,12 @@ extra742(){
fi
else
textInfo "$regx: CloudFormation stack $stack has not Outputs" "$regx"
rm -f $CFN_OUTPUTS_FILE
fi
done
else
textInfo "$regx: No CloudFormation stacks found" "$regx"
fi
done
rm -rf $SECRETS_TEMP_FOLDER
# rm -rf $SECRETS_TEMP_FOLDER
}
+2 -1
View File
@@ -42,11 +42,12 @@ extra759(){
fi
else
textInfo "$regx: Lambda function $stalambdafunction has not variables" "$regx"
rm -f $LAMBDA_FUNCTION_VARIABLES_FILE
fi
done
else
textInfo "$regx: No Lambda functions found" "$regx"
fi
done
rm -rf $SECRETS_TEMP_FOLDER
# rm -rf $SECRETS_TEMP_FOLDER
}