Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amine7536/reverse-scan
Perform reverse DNS lookups on huge network ranges
https://github.com/amine7536/reverse-scan
dispatch dns golang huge-network-ranges reverse-dns-lookups workers
Last synced: 11 days ago
JSON representation
Perform reverse DNS lookups on huge network ranges
- Host: GitHub
- URL: https://github.com/amine7536/reverse-scan
- Owner: amine7536
- Created: 2017-06-30T13:01:25.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-21T13:17:22.000Z (over 5 years ago)
- Last Synced: 2024-06-20T06:22:23.793Z (5 months ago)
- Topics: dispatch, dns, golang, huge-network-ranges, reverse-dns-lookups, workers
- Language: Go
- Homepage:
- Size: 3.21 MB
- Stars: 23
- Watchers: 5
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Reverse-Scan
Perform reverse DNS lookups on huge network ranges
This utility uses the "Dispatcher/Workers" pattern discribed here :
- https://gobyexample.com/worker-pools
- https://nesv.github.io/golang/2014/02/25/worker-queues-in-go.html
- http://marcio.io/2015/07/handling-1-million-requests-per-minute-with-golang/# Getting Started
Download the binary :
```bash
wget https://github.com/amine7536/reverse-scan/releases/download/v0.2.1/reverse-scan
chmod +x reverse-scan
```Usage :
```bash
./reverse-scan --help
Reverse ScanUsage:
reverse-scan [flags]
reverse-scan [command]Available Commands:
help Help about any command
version Print the version numberFlags:
-e, --end string ip range end
-h, --help help for reverse-scan
-o, --output string csv output file
-s, --start string ip range start
-w, --workers int number of workers (default 8)Use "reverse-scan [command] --help" for more information about a command
```Run :
```bash
./reverse-scan --start 37.160.0.0 --end 37.175.255.255 --output /tmp/out.csv -w 1024
2017/06/30 15:01:29 Resolving from 37.160.0.0 to 37.175.255.255
2017/06/30 15:01:29 Caluculated CIDR is 37.160.0.0/12
2017/06/30 15:01:29 Number of IPs to scan: 1048576
2017/06/30 15:01:29 Starting 1024 Workers
9s [======================================================>-------------] 81%
```You specify the number of workers with the option `-w`, by default the utility start with 8 workers.
You must also specify an output CSV file.