mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -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")
|
||||
}
|
||||
|
||||
config := fmt.Sprintf(`network={
|
||||
config := fmt.Sprintf(`p2p_disabled=1
|
||||
|
||||
network={
|
||||
ssid="%s"
|
||||
psk="%s"
|
||||
p2p_disabled=1
|
||||
}`, strconv.Quote(job.essid), strconv.Quote(job.password))
|
||||
|
||||
file, err := os.CreateTemp("", "bettercap-wpa-config")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue