From 78eda6672e5268aeaf2b7f2667cc760f9f74c51a Mon Sep 17 00:00:00 2001 From: Ullaakut Date: Mon, 4 May 2020 07:59:22 +0200 Subject: [PATCH] Fix stream discovery on non-standard ports by using service info mode in nmap scan --- scan.go | 1 + 1 file changed, 1 insertion(+) diff --git a/scan.go b/scan.go index 7ed407c..c5cf15f 100644 --- a/scan.go +++ b/scan.go @@ -25,6 +25,7 @@ func (s *Scanner) Scan() ([]Stream, error) { nmapScanner, err := nmap.NewScanner( nmap.WithTargets(s.targets...), nmap.WithPorts(s.ports...), + nmap.WithServiceInfo(), nmap.WithTimingTemplate(nmap.Timing(s.scanSpeed)), ) if err != nil {