Fix stream discovery on non-standard ports by using service info mode in nmap scan

This commit is contained in:
Ullaakut
2020-05-04 07:59:22 +02:00
committed by Brendan Le Glaunec
parent 9f05634531
commit 78eda6672e
+1
View File
@@ -25,6 +25,7 @@ func (s *Scanner) Scan() ([]Stream, error) {
nmapScanner, err := nmap.NewScanner( nmapScanner, err := nmap.NewScanner(
nmap.WithTargets(s.targets...), nmap.WithTargets(s.targets...),
nmap.WithPorts(s.ports...), nmap.WithPorts(s.ports...),
nmap.WithServiceInfo(),
nmap.WithTimingTemplate(nmap.Timing(s.scanSpeed)), nmap.WithTimingTemplate(nmap.Timing(s.scanSpeed)),
) )
if err != nil { if err != nil {