mirror of
https://github.com/bettercap/bettercap
synced 2025-07-11 07:37:00 -07:00
refact: refactored to use islazy and updated deps
This commit is contained in:
parent
a2b3ee79fb
commit
d070445225
238 changed files with 12662 additions and 1586 deletions
|
@ -5,11 +5,12 @@ import (
|
|||
"net"
|
||||
"time"
|
||||
|
||||
"github.com/bettercap/bettercap/core"
|
||||
"github.com/bettercap/bettercap/log"
|
||||
"github.com/bettercap/bettercap/network"
|
||||
"github.com/bettercap/bettercap/packets"
|
||||
"github.com/bettercap/bettercap/session"
|
||||
|
||||
"github.com/evilsocket/islazy/tui"
|
||||
)
|
||||
|
||||
var errNoRecon = errors.New("Module wifi.ap requires module wifi.recon to be activated.")
|
||||
|
@ -44,12 +45,12 @@ func (w *WiFiModule) startAp() error {
|
|||
w.apRunning = false
|
||||
}()
|
||||
|
||||
enc := core.Yellow("WPA2")
|
||||
enc := tui.Yellow("WPA2")
|
||||
if !w.apConfig.Encryption {
|
||||
enc = core.Green("Open")
|
||||
enc = tui.Green("Open")
|
||||
}
|
||||
log.Info("Sending beacons as SSID %s (%s) on channel %d (%s).",
|
||||
core.Bold(w.apConfig.SSID),
|
||||
tui.Bold(w.apConfig.SSID),
|
||||
w.apConfig.BSSID.String(),
|
||||
w.apConfig.Channel,
|
||||
enc)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue