misc: refactored modules.findMAC to session.FindMAC

This commit is contained in:
evilsocket 2019-01-18 20:13:41 +01:00
commit 31895569f7
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
4 changed files with 36 additions and 50 deletions

View file

@ -223,7 +223,7 @@ func (s *SynScanner) synScan() error {
if !s.Running() {
break
}
mac, err := findMAC(s.Session, address, true)
mac, err := s.Session.FindMAC(address, true)
if err != nil {
atomic.AddUint64(&s.stats.doneProbes, s.stats.numPorts)
log.Debug("Could not get MAC for %s: %s", address.String(), err)