mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
a909d81765
commit
eabd8c9c0f
3 changed files with 78 additions and 4 deletions
39
modules/packet_proxy_darwin.go
Normal file
39
modules/packet_proxy_darwin.go
Normal file
|
@ -0,0 +1,39 @@
|
|||
package modules
|
||||
|
||||
import (
|
||||
"github.com/bettercap/bettercap/session"
|
||||
)
|
||||
|
||||
type PacketProxy struct {
|
||||
session.SessionModule
|
||||
}
|
||||
|
||||
func NewPacketProxy(s *session.Session) *PacketProxy {
|
||||
return &PacketProxy{
|
||||
SessionModule: session.NewSessionModule("packet.proxy", s),
|
||||
}
|
||||
}
|
||||
|
||||
func (pp PacketProxy) Name() string {
|
||||
return "packet.proxy"
|
||||
}
|
||||
|
||||
func (pp PacketProxy) Description() string {
|
||||
return "Not supported on this OS"
|
||||
}
|
||||
|
||||
func (pp PacketProxy) Author() string {
|
||||
return "Simone Margaritelli <evilsocket@protonmail.com>"
|
||||
}
|
||||
|
||||
func (pp *PacketProxy) Configure() (err error) {
|
||||
return session.ErrNotSupported
|
||||
}
|
||||
|
||||
func (pp *PacketProxy) Start() error {
|
||||
return session.ErrNotSupported
|
||||
}
|
||||
|
||||
func (pp *PacketProxy) Stop() error {
|
||||
return session.ErrNotSupported
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue