mirror of
https://github.com/bettercap/bettercap
synced 2025-08-21 05:53:20 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
b8d9179def
commit
30d9415d8c
5 changed files with 25 additions and 24 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue