🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

github.com/go-laeo/wpasupplicant

Package Overview
Dependencies
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/go-laeo/wpasupplicant

Source
Go
Version
v0.0.0-20210828123511-f75a768a5fa1
Version published
Created
Source

wpasupplicant

build.yaml Go Reference golangci.yaml

Golang interface for talking to wpa_supplicant.

Install

go get github.com/go-laeo/wpasupplicant

Example

// Prints the BSSID (MAC address) and SSID of each access point in range:
w, err := wpasupplicant.Connect(context.Background(), "wlan0")
if err != nil {
	panic(err)
}
for _, bss := range w.ScanResults() {
	fmt.Fprintf("%s\t%s\n", bss.BSSID(), bss.SSID())
}

License

Three-clause BSD. See LICENSE.txt.

Thanks

  • @Dave Pifke

FAQs

Package last updated on 28 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts