misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
evilsocket 2019-04-22 11:47:36 +02:00
commit 30d9415d8c
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
5 changed files with 25 additions and 24 deletions

View file

@ -2,15 +2,17 @@ package syn_scan
import (
"fmt"
"github.com/bettercap/bettercap/network"
"time"
"github.com/evilsocket/islazy/async"
)
const bannerGrabTimeout = time.Duration(5) * time.Second
type bannerGrabberFn func(mod *SynScanner, ip string, port int) string
type grabberJob struct {
Host *network.Endpoint
IP string
Port *OpenPort
}
@ -20,7 +22,7 @@ func (mod *SynScanner) bannerGrabber(arg async.Job) {
return
}
ip := job.Host.IpAddress
ip := job.IP
port := job.Port.Port
sport := fmt.Sprintf("%d", port)