Added group11 keys and improved 741 and 742

This commit is contained in:
Toni de la Fuente
2019-03-12 23:14:50 -04:00
parent bde9482928
commit 9d526ff098
3 changed files with 24 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ extra741(){
# This finds ftp or http URLs with credentials and common keywords
FINDINGS=$(egrep -i '[[:alpha:]]*://[[:alnum:]]*:[[:alnum:]]*@.*/|key|secret|token|pass' $USERDATA_FILE |wc -l|tr -d '\ ')
if [[ $FILE_FORMAT_ASCII ]]; then
if [[ $FINDINGS -eq 0 ]]; then
if [[ $FINDINGS -eq "0" ]]; then
textPass "$regx: No keys found in $instance" "$regx"
# delete file if nothing interesting is there
rm -f $USERDATA_FILE

View File

@@ -29,7 +29,7 @@ extra742(){
#FINDINGS=$(grep -i -e key -e secret -e token -e pass $USERDATA_FILE |wc -l|tr -d '\ ')
# This finds ftp or http URLs with credentials and common keywords
FINDINGS=$(egrep -i '[[:alpha:]]*://[[:alnum:]]*:[[:alnum:]]*@.*/|key|secret|token|pass' $OUTPUTS_FILE |wc -l|tr -d '\ ')
if [[ $FINDINGS -eq 0 ]]; then
if [[ $FINDINGS -eq "0" ]]; then
textPass "$regx: No keys found in Stack $stack" "$regx"
# delete file if nothing interesting is there
rm -f $OUTPUTS_FILE