Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/QSoloX/whoisyou
- Owner: QSoloX
- License: mit
- Created: 2020-05-07T20:03:23.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-05-07T20:29:50.000Z (over 4 years ago)
- Last Synced: 2024-08-05T17:25:33.801Z (4 months ago)
- Topics: bugbounty, golang, hacking, hacking-tools, infosec
- Language: Go
- Size: 1.95 KB
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-hacking-lists - QSoloX/whoisyou - Take a list of domains and output the hostname and ip. (Go)
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/)