Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wargio/sni-discover
Quickly discover multiple Server Name Indication (SNI) within the same Autonomous System (AS).
https://github.com/wargio/sni-discover
Last synced: about 1 month ago
JSON representation
Quickly discover multiple Server Name Indication (SNI) within the same Autonomous System (AS).
- Host: GitHub
- URL: https://github.com/wargio/sni-discover
- Owner: wargio
- License: mit
- Created: 2024-05-06T10:38:50.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-05-06T11:06:05.000Z (9 months ago)
- Last Synced: 2024-05-07T11:53:24.476Z (9 months ago)
- Language: Go
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SNI Discovery
Quickly discover multiple Server Name Indication (SNI) within the same Autonomous System (AS).
The domains selected by this tool meet the following criteria:
* They are under the same AS as the target IP address, ensuring IP similarity.
* They support TLS version 1.3.
* They support HTTP/2 protocol (optional).## How to Use
To use this tool, follow these steps:
1. Go to the release page and download the executable file.
2. Execute the tool as follows```
$ ./sni-discover -target 1.1.1.1 -best 5 -h2only -debug
2024/05/06 19:04:45 Resolving 1000 SNIs.
2024/05/06 19:04:45 Waiting for resolvers.
2024/05/06 19:04:56 Sorting 1000 SNIs.
+---+---------------------+---------+----------+--------------+-------+
| # | SNI | TLS | PROTO | DURATION | EXTRA |
+---+---------------------+---------+----------+--------------+-------+
| 0 | 020806.xyz | TLSv1.3 | HTTP/2.0 | 486.304852ms | |
| 1 | 111984.xyz | TLSv1.3 | HTTP/2.0 | 622.392936ms | |
| 2 | 111331.xyz | TLSv1.3 | HTTP/2.0 | 654.457576ms | |
| 3 | 0061681.xyz | TLSv1.3 | HTTP/2.0 | 765.647363ms | |
| 4 | 101homebusiness.com | TLSv1.3 | HTTP/2.0 | 838.300103ms | |
+---+---------------------+---------+----------+--------------+-------+
```Optional parameters include:
```
Usage of ./sni-discover:
-best int
Shows the best N results only when non-zero.
-debug
When enabled, shows additional information.
-file string
File where to write the SNIs.
-h2only
When enabled only shows HTTP2 only results.
-routines int
Maximum number of routines. (default 64)
-target string
Target IPv4 address to use for discovering SNIs.
-timeout int
Connection timeout in seconds. (default 10)```
## More
This tool uses [BGP.he.net](https://bgp.he.net) for DNS discovery
## License
This tool is licensed under the MIT license.