
Herramienta pequeña y rápida para realizar búsquedas DNS inversas en masa.
Herramienta pequeña, rápida y sencilla para realizar búsquedas DNS inversas de forma masiva.
Le proporcionas direcciones IP y devuelve nombres de host.
Esta puede ser una forma útil de encontrar dominios y subdominios pertenecientes a una empresa a partir de sus direcciones IP.
go install github.com/hakluke/hakrevdns@latest
El uso más básico consiste simplemente en pasar una lista de direcciones IP a la herramienta mediante un pipe, por ejemplo:
hakluke~$ prips 173.0.84.0/24 | hakrevdns
173.0.84.110 he.paypal.com.
173.0.84.109 twofasapi.paypal.com.
173.0.84.114 www-carrier.paypal.com.
173.0.84.77 twofasapi.paypal.com.
173.0.84.102 pointofsale.paypal.com.
173.0.84.104 slc-a-origin-pointofsale.paypal.com.
173.0.84.111 smsapi.paypal.com.
173.0.84.203 m.paypal.com.
173.0.84.105 prm.paypal.com.
173.0.84.113 mpltapi.paypal.com.
173.0.84.8 ipnpb.paypal.com.
173.0.84.2 active-www.paypal.com.
173.0.84.4 securepayments.paypal.com.
...
hakluke~$ hakrevdns -h
Usage:
main [OPTIONS]
Application Options:
-t, --threads= How many threads should be used (default: 8)
-r, --resolver= IP of the DNS resolver to use for lookups
-R, --resolvers-file= File containing list of DNS resolvers to use for lookups
-U, --use-default Use default resolvers for lookups
-P, --protocol=[tcp|udp] Protocol to use for lookups (default: udp)
-p, --port= Port to bother the specified DNS resolver on (default: 53)
-d, --domain Output only domains
-h, --help Show help message
Help Options:
-h, --help Show this help message
-U, --use-default:
When specified, this flag tells the program to use a predefined list of default DNS resolvers for lookups. This is useful for ensuring consistent DNS resolution across various environments, especially if no custom resolvers are provided.
-R, --resolvers-file:
This flag allows you to specify a file containing a list of custom DNS resolvers. Each line in the file should contain a single resolver IP address. If both -R and -r are provided, the resolver specified by -r is added to the list of resolvers from the file.
Si quieres usar un resolver no especificado por tu sistema operativo, por ejemplo: 1.1.1.1, prueba esto:
hakluke~$ echo "173.0.84.110" | hakrevdns -r 1.1.1.1
173.0.84.110 he.paypal.com.
Si deseas obtener solo una lista de dominios sin direcciones IP, puedes usar -d:
$ echo "173.0.84.110" | hakrevdns -d
Esta herramienta está diseñada para poder conectarse fácilmente mediante pipes con otras herramientas, por ejemplo:
$ echo "173.0.84.110" | hakrevdns -d | httprobe
Construida por hakluke (Luke Stephens), fundador y CEO de Haksec, un grupo de empresas de ciberseguridad:
Escribo sobre hacking y la industria de la seguridad en hakluke.com.