bettercap/modules/syn_scan/syn_scan_event.go
2024-08-09 18:19:21 +02:00

26 lines
459 B
Go

package syn_scan
import (
"github.com/bettercap/bettercap/v2/network"
"github.com/bettercap/bettercap/v2/session"
)
type SynScanEvent struct {
Address string
Host *network.Endpoint
Port int
}
func NewSynScanEvent(address string, h *network.Endpoint, port int) SynScanEvent {
return SynScanEvent{
Address: address,
Host: h,
Port: port,
}
}
func (e SynScanEvent) Push() {
session.I.Events.Add("syn.scan", e)
session.I.Refresh()
}