Added -N <shodan_api_key> support for extra7102

This commit is contained in:
Toni de la Fuente
2020-12-15 12:25:47 +01:00
parent 9ed576b09d
commit 7f1df739c4
2 changed files with 7 additions and 5 deletions

View File

@@ -22,15 +22,13 @@ CHECK_ALTERNATE_check7102="extra7102"
# your IP will be banned by Shodan
# This is the right way to do so
# curl -ks https://api.shodan.io/shodan/host/{ip}?key={YOUR_API_KEY}
# curl -ks https://api.shodan.io/shodan/host/{ip}?key={YOUR_API_KEY}
# Each finding will be saved in prowler/output folder for further review.
SHODAN_API_KEY=""
extra7102(){
if [[ ! $SHODAN_API_KEY ]]; then
textInfo "[extra7102] Requires a Shodan API key to work. Edit checks/check_extra7102 first"
textInfo "[extra7102] Requires a Shodan API key to work. Use -N <shodan_api_key>"
else
for regx in $REGIONS; do
LIST_OF_EIP=$($AWSCLI $PROFILE_OPT --region $regx ec2 describe-addresses --query 'Addresses[*].PublicIp' --output text)