From c2554aa25f927f1b3683cf43d18a5445d51adafc Mon Sep 17 00:00:00 2001 From: yuhan6665 <1588741+yuhan6665@users.noreply.github.com> Date: Sun, 5 Mar 2023 23:17:11 -0500 Subject: [PATCH] Add example --- README.md | 13 ++++++++++++- main.go | 4 ++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0dd9b34..a825805 100644 --- a/README.md +++ b/README.md @@ -10,5 +10,16 @@ Usage Recommend to run this tool locally. It may cause VPS to be flagged if you run scanner in the cloud. ``` ./RealiTLScanner -addr www.microsoft.com -./RealiTLScanner -addr 20.81.111.85 -thread 10 +./RealiTLScanner -addr 20.53.203.50 -thread 10 +``` + +Example +``` +Reality TLS Scanner running: 20.53.203.50 : 443 + 20.53.203.50:443 ----- Found TLS v 1.3 ALPN h2 CN=*.oneroute.microsoft.com,O=Microsoft Corporation,L=Redmond,ST=WA,C=US + 20.53.203.48:443 ----- TLS handshake failed: read tcp 192.168.211.138:37858->20.53.203.48:443: read: connection reset by peer + 20.53.203.46:443 ----- Found TLS v 1.3 ALPN h2 CN=apiserver + 20.53.203.45:443 ----- Found TLS v 1.2 ALPN http/1.1 CN=*.canon.com.au,O=Canon Australia Pty. Ltd.,L=Macquarie Park,ST=New South Wales,C=AU + 20.53.203.43:443 ----- Found TLS v 1.2 ALPN CN=bst-c0a0be99-3539-4442-8884-161054d9aba3.bastion.azure.com,O=Microsoft Corporation,L=Redmond,ST=WA,C=US +Dial failed: dial tcp 20.53.203.52:443: i/o timeout ``` diff --git a/main.go b/main.go index 51b6fcf..a401620 100644 --- a/main.go +++ b/main.go @@ -32,8 +32,8 @@ type Scanner struct { timeout time.Duration numberOfThread int mu *sync.Mutex - high net.IP - low net.IP + high net.IP + low net.IP } func (s *Scanner) Run() {