
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
A platform-independent WiFi scanning library for getting BSSID + RSSI from nearby access points. It should work on most Linux installations as well as Windows and OS X.
wifiscan works by calling the OS-specific Wifi scan utility and parsing the output. For Linux this is iwlist, for Windows it is netsh.exe and for OS X it is airport. Other systems are not supported at the moment (although, as long as they are Linux-based I believe you can install iwlist).
go get -u github.com/schollz/wifiscan/...
You can use it in your Go code as:
wifis, err := wifiscan.Scan()
if err != nil {
log.Fatal(err)
}
for _, w := range wifis {
fmt.Println(w.SSID, w.RSSI)
}
You can also use the command-line tool as:
$ WIFI=wlan0 wifiscan
SSID RSSI
f0:5c:19:a2:2a:01 -55
28:c6:8e:75:6f:cf -58
f0:5c:19:a2:26:61 -72
90:72:40:1c:b8:96 -69
...
Note: When using with Linux you will need to add sudo to get a full scan.
Pull requests are welcome. Feel free to...
MIT
FAQs
Unknown package
Did you know?

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.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.