Fix stream discovery on non-standard ports by using service info mode in nmap scan
This commit is contained in:
committed by
Brendan Le Glaunec
parent
9f05634531
commit
78eda6672e
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user