cat ip.txt | \
while read host; do \
for path in /admin/config.json /config.js /config.json /app/config.json /app/config.js /settings.json /database.json /firebase.json /.env /.env.production /api_keys.json /credentials.json /secrets.json /google-services.json /package.json /package-lock.json /composer.json /pom.xml /docker-compose.yml /service-worker.js /Trace.axd; do \
echo "$host$path"; \
done; \
done | httpx -mc 200 -sc -cl -title
while read -r host; do
echo "Querying: $host"
ip=$(nslookup "$host" | awk '/^Address: / {print $2}' | tail -n1)
if [[ -n "$ip" ]]; then
echo "$host $ip"
else
echo "No IP found for $host" >&2
fi
done < sub.txt