Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/QSoloX/whoisyou

Take a list of domains and output the hostname and ip.
https://github.com/QSoloX/whoisyou

bugbounty golang hacking hacking-tools infosec

Last synced: 21 days ago
JSON representation

Take a list of domains and output the hostname and ip.

Awesome Lists containing this project

README

        

# whoisyou

Take a list of domains and output the hostname and ip.

## Installation

For now the only way to install is to use go get.

```bash
go get github.com/QSoloX/whoisyou
```

## Usage
The basic usuage to save it the output to a file.
```bash
▶ cat domains.txt|whoisyou > output.txt
```
Output without directing the output
```bash
▶ cat domains.txt|whoisyou
https://site.com 127.0.0.1
https://example.com 127.1.1.1
```

## Additional Usage
The output can be used with a python script like below
```python
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}")
```
```bash
▶ 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
```

## Tips
* 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

## Known Issues
* There seems to be a output issue when used on windows that makes the file become a utf-16 file.
## License
[MIT](https://choosealicense.com/licenses/mit/)