mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 13:09:49 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
77ae56cc62
commit
5cc7260ca9
1 changed files with 3 additions and 2 deletions
|
@ -20,10 +20,11 @@ func wifiBruteforce(mod *WiFiModule, job bruteforceJob) (bool, error) {
|
||||||
return false, errors.New("could not find wpa_supplicant in $PATH")
|
return false, errors.New("could not find wpa_supplicant in $PATH")
|
||||||
}
|
}
|
||||||
|
|
||||||
config := fmt.Sprintf(`network={
|
config := fmt.Sprintf(`p2p_disabled=1
|
||||||
|
|
||||||
|
network={
|
||||||
ssid="%s"
|
ssid="%s"
|
||||||
psk="%s"
|
psk="%s"
|
||||||
p2p_disabled=1
|
|
||||||
}`, strconv.Quote(job.essid), strconv.Quote(job.password))
|
}`, strconv.Quote(job.essid), strconv.Quote(job.password))
|
||||||
|
|
||||||
file, err := os.CreateTemp("", "bettercap-wpa-config")
|
file, err := os.CreateTemp("", "bettercap-wpa-config")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue