Last active
January 23, 2025 08:32
-
-
Save dadevel/a5ca7b489ae0533dddc33ff3db5f6a81 to your computer and use it in GitHub Desktop.
Shodan InternetDB Reverse DNS Lookup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euo pipefail | |
# usage: cat ./subnets.txt | mapcidr | inetdb-rdns | |
xargs -I {} -n 1 -P 16 -r -- curl -sS https://internetdb.shodan.io/{} | \ | |
jq -r 'select(.hostnames!=null)|.hostnames[]' | \ | |
sort -Vu |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment