mirror of
https://github.com/bettercap/bettercap
synced 2025-07-16 10:03:39 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
fc54ff6bd4
commit
29f8173e17
1 changed files with 41 additions and 0 deletions
41
modules/packet_proxy_linux.go
Normal file
41
modules/packet_proxy_linux.go
Normal file
|
@ -0,0 +1,41 @@
|
|||
// +build !amd64
|
||||
|
||||
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