Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
wifiscanner
Advanced tools
Readme
A simple Node.js WiFi Scanner for Windows, Linux and macOS. Works great on embedded devices like the Raspberry Pi.
npm install wifiscanner
wifiscanner
scanner
scan
with a callback with two parametersconst wifiscanner = require("wifiscanner");
//Returns appropriate instance of a wifi scanner
const scanner = wifiscanner();
scanner.scan((error, networks) => {
if(error) {
console.error(error);
} else {
console.dir(networks);
}
});
Network is an Array
of nearby networks. Each network will have the following keys:
Array
e.g [ 'WPA', 'WPA2' ]
)[
{
ssid: 'wifi with-n0-s3cur1ty!',
mac: '16:0d:7f:49:da:e1',
channel: '1',
security: ['None']
},
{
ssid: 'WEP enabled',
mac: '16:0d:7f:49:da:e2',
channel: '1',
security: ['WEP']
},
{
ssid: 'WPA1 Enabled',
mac: '16:0d:7f:49:da:e3',
channel: '1',
security: ['WPA']
},
{
ssid: 'WPA1+WPA2',
mac: '16:0d:7f:49:da:e4',
channel: '1',
security: ['WPA', 'WPA2'],
},
{
ssid: 'WPA2 Only',
mac: '16:0d:7f:49:da:e5',
channel: '1',
security: ['WPA2']
}
]
There is a limitation on Windows. If there is a network that is both WPA
and WPA2
security, only WPA2
will be reported.
You can specify binary (binaryPath
) and arguments (args
) in a set of options
.
const wifiscanner = require("wifiscanner");
//Options
const options = {
args: "wlan2 scan",
binaryPath: "/path/to/iwlist"
}
const scanner = wifiscanner(options);
scanner.scan(function(error, networks){
if(error) {
console.error(error);
} else {
console.dir(networks);
}
});
Standard error can is more of a warning. For example, if you're on Linux with wlan0
, en0
and lo
and you run the iwlist scan
command you get both the stdout
of the networks on the wlan0
network interface
(which is parsed in to the networks
Array
) and the stderr
of:
lo Interface doesn't support scanning.
eth0 Interface doesn't support scanning.
The default behavior from this module is to do nothing. However, you can pass in a second optional callback to the
scan
method and do what you want with it.
const wifiscanner = require("wifiscanner");
//Options
const options = {
args: "wlan2 scan",
binaryPath: "/path/to/iwlist"
}
const scanner = wifiscanner(options);
scanner.scan(function(error, networks){
//...
}, function(standardError){
console.error(standardError);
});
FAQs
A simple Node.js WiFi Scanner
The npm package wifiscanner receives a total of 21 weekly downloads. As such, wifiscanner popularity was classified as not popular.
We found that wifiscanner demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.