mirror of
https://github.com/bettercap/bettercap.git
synced 2024-11-08 06:30:13 -08:00
26 lines
459 B
Go
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()
|
|
}
|