Take a list of domains and output the hostname and ip.
For now the only way to install is to use go get.
go get github.com/QSoloX/whoisyou
The basic usuage to save it the output to a file.
▶ cat domains.txt|whoisyou > output.txt
Output without directing the output
▶ cat domains.txt|whoisyou
https://site.com 127.0.0.1
https://example.com 127.1.1.1
The output can be used with a python script like below
with open(f"output.txt") as file:
for line in file:
# Strip newline chars and split at space, then assign split to vars
hostname,ip = line.strip()line.split(" ")
# Do anything with the output
print(f"{hostname} has the ip of {ip}")
▶ python main.py
https://site.com has the ip of 127.0.0.1
https://example.com has the ip of 127.1.1.1
- The idea behind this tool would be to first run a tool like https://github.com/tomnomnom/httprobe from tomnomnom and then use its output with whoisyou
- There seems to be a output issue when used on windows that makes the file become a utf-16 file.