mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
Refactoring modules
This commit is contained in:
parent
c0d3c314fc
commit
ed652622e2
89 changed files with 186 additions and 138 deletions
25
modules/syn_scan/syn_scan_event.go
Normal file
25
modules/syn_scan/syn_scan_event.go
Normal file
|
@ -0,0 +1,25 @@
|
|||
package syn_scan
|
||||
|
||||
import (
|
||||
"github.com/bettercap/bettercap/network"
|
||||
"github.com/bettercap/bettercap/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()
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue