Documentation
¶
Index ¶
- Constants
- Variables
- func DisableBettercapMonitor(ctx context.Context) error
- func DisableClient(ctx context.Context) error
- func DisableDNSPortal() error
- func DisableHotspot(ctx context.Context) error
- func GetBettercapAP(ctx context.Context, bssid string) (gjson.Result, error)
- func GetBettercapAPs(ctx context.Context) ([]gjson.Result, error)
- func GetInterfaceBSSID(ctx context.Context, iface string) (string, error)
- func InitBettercap()
- func InitGPS()
- func InitHotspot(ctx context.Context, iface string, item map[string]interface{}) (map[string]interface{}, map[string]interface{}, error)
- func SetBettercap(ctx context.Context, cmd string, bypass bool) error
- func SetBettercapMonitor(ctx context.Context, iface, channel string) error
- func SetClient(ctx context.Context, iface, ssid, password string) error
- func SetDNSPortal() error
- func SetHotspot(ctx context.Context, iface, ssid, channel, password string, portal bool) error
- func SetInterfaceMode(ctx context.Context, iface string, mode string) error
- func SetMonitor(ctx context.Context, iface string, region string, wardrive, channelHop bool, ...) error
- func SetRegion(ctx context.Context, region string) error
- type Connection
- type GPSData
- type Interface
Constants ¶
View Source
const BC = "http://127.0.0.1:8081"
View Source
const CapDelay = 5 * time.Second
View Source
const CapDwell = 3 * time.Second
View Source
const CapRefresh = 10 * time.Second
View Source
const Con = "PiFi"
View Source
const NM = "nmcli"
NM NetworkManager Command Line Interface
Variables ¶
View Source
var Hotspot string
View Source
var HotspotBSSID string
View Source
var HotspotPortal string
View Source
var IsBettercapPaused bool
View Source
var IsBettercapRunning bool
View Source
var MonitorChannel int
View Source
var MonitorChannelHop bool
View Source
var MonitorWardrive bool
Functions ¶
func DisableBettercapMonitor ¶
func DisableClient ¶
func DisableDNSPortal ¶
func DisableDNSPortal() error
func DisableHotspot ¶
func InitBettercap ¶
func InitBettercap()
func InitHotspot ¶
func SetBettercapMonitor ¶
func SetDNSPortal ¶
func SetDNSPortal() error
func SetHotspot ¶
func SetMonitor ¶
Types ¶
type Connection ¶
func GetConnectionList ¶
func GetConnectionList(ctx context.Context) ([]Connection, error)
Click to show internal directories.
Click to hide internal directories.