mirror of
https://github.com/bettercap/bettercap.git
synced 2024-11-08 06:30:13 -08:00
40 lines
755 B
Go
40 lines
755 B
Go
package packet_proxy
|
|
|
|
import (
|
|
"github.com/bettercap/bettercap/v2/session"
|
|
)
|
|
|
|
type PacketProxy struct {
|
|
session.SessionModule
|
|
}
|
|
|
|
func NewPacketProxy(s *session.Session) *PacketProxy {
|
|
return &PacketProxy{
|
|
SessionModule: session.NewSessionModule("packet.proxy", s),
|
|
}
|
|
}
|
|
|
|
func (mod PacketProxy) Name() string {
|
|
return "packet.proxy"
|
|
}
|
|
|
|
func (mod PacketProxy) Description() string {
|
|
return "Not supported on this OS"
|
|
}
|
|
|
|
func (mod PacketProxy) Author() string {
|
|
return "Simone Margaritelli <evilsocket@gmail.com>"
|
|
}
|
|
|
|
func (mod *PacketProxy) Configure() (err error) {
|
|
return session.ErrNotSupported
|
|
}
|
|
|
|
func (mod *PacketProxy) Start() error {
|
|
return session.ErrNotSupported
|
|
}
|
|
|
|
func (mod *PacketProxy) Stop() error {
|
|
return session.ErrNotSupported
|
|
}
|