All Projects β†’ friedrith β†’ Node Wifi

friedrith / Node Wifi

Licence: mit
πŸ“Ά NodeJS tool to manage wifi (connections, scans)

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Node Wifi

Find3 Android Scanner
An android app that scans Bluetooth and WiFi for FIND3
Stars: ✭ 99 (-60.4%)
Mutual labels:  wifi, scanning
ESP32 Thing
Development platform for the Espressif ESP32 WiFi/Microcontroller SoC
Stars: ✭ 66 (-73.6%)
Mutual labels:  hardware, wifi
WiFiPS
WiFi Based Indoor Positioning System, A MVP android Application
Stars: ✭ 105 (-58%)
Mutual labels:  wifi, scanning
Blynk Library
Blynk library for embedded hardware. Works with Arduino, ESP8266, Raspberry Pi, Intel Edison/Galileo, LinkIt ONE, Particle Core/Photon, Energia, ARM mbed, etc.
Stars: ✭ 3,305 (+1222%)
Mutual labels:  hardware, wifi
Esp8266 deauther
Affordable WiFi hacking platform for testing and learning
Stars: ✭ 9,312 (+3624.8%)
Mutual labels:  wifi, scanning
Blinker Py
Blinker python library for hardware. Works with Raspberry Pi, Banan Pi, Linux devices
Stars: ✭ 680 (+172%)
Mutual labels:  hardware, wifi
wifiexplorer-sensor
[DEPRECATED] Enables remote scanning in WiFi Explorer Pro
Stars: ✭ 37 (-85.2%)
Mutual labels:  wifi, scanning
Blinker Library
An IoT Solution,Blinker library for embedded hardware. Works with Arduino, ESP8266, ESP32.
Stars: ✭ 1,095 (+338%)
Mutual labels:  hardware, wifi
Swifitch
Swifitch is ESP8266 based relay board that could be used to turn any light or any wall socket into smart one!
Stars: ✭ 117 (-53.2%)
Mutual labels:  hardware, wifi
Pikvm
Open and cheap DIY IP-KVM based on Raspberry Pi
Stars: ✭ 3,950 (+1480%)
Mutual labels:  hardware
Spoofmac
πŸ’Ό Change your MAC address for debugging
Stars: ✭ 2,687 (+974.8%)
Mutual labels:  wifi
Lost Nds Tv
The Lost Nintendo DS Television Output, brought back to life
Stars: ✭ 221 (-11.6%)
Mutual labels:  hardware
Unimidi
Realtime MIDI IO for Ruby
Stars: ✭ 229 (-8.4%)
Mutual labels:  hardware
Berrylan
Raspberry Pi WiFi setup
Stars: ✭ 243 (-2.8%)
Mutual labels:  wifi
Hastlayer Sdk
Turning .NET assemblies into FPGA hardware for faster execution and lower power usage. See the Readme and https://hastlayer.com.
Stars: ✭ 226 (-9.6%)
Mutual labels:  hardware
Txtool
an easy pentesting tool.
Stars: ✭ 246 (-1.6%)
Mutual labels:  scanning
Phonia
Phonia Toolkit is one of the most advanced toolkits to scan phone numbers using only free resources. The goal is to first gather standard information such as country, area, carrier and line type on any international phone numbers with a very good accuracy.
Stars: ✭ 221 (-11.6%)
Mutual labels:  scanning
Reactivenetwork
Android library listening network connection state and Internet connectivity with RxJava Observables
Stars: ✭ 2,484 (+893.6%)
Mutual labels:  wifi
Xps15 9560 Bigsur
XPS15-9560-Catalina, Q羀:161385229
Stars: ✭ 247 (-1.2%)
Mutual labels:  wifi
Rengine
reNgine is an automated reconnaissance framework for web applications with a focus on highly configurable streamlined recon process via Engines, recon data correlation and organization, continuous monitoring, backed by a database, and simple yet intuitive User Interface. reNgine makes it easy for penetration testers to gather reconnaissance with…
Stars: ✭ 3,439 (+1275.6%)
Mutual labels:  scanning

node-wifi

travis npm version

I have great ambitions for this project and I am looking for maintainers who could help me to handle all improvements and bug fixes about this project because the hardware/os dependencies make it quite hard to test. You can contact me at [email protected].

The node-wifi module allows macOS, windows and linux users to interact with surrounding wifi networks through various methods. These methods include scanning for wifi access points and connecting to these access points.

Features Linux Mac Windows
Connect βœ“ βœ“ βœ“
Scan βœ“ βœ“ βœ“
List current wifi connections βœ“ βœ“ βœ“
Disconnect βœ“ βœ“
Delete connection information βœ“ βœ“

We wish to be clear in saying that this module is inspired from node-wifi-control but with some slight modifications to certain functions such as the various OS-specific parsers for terminal output as we noticed that these parsers did not work well on certain operating systems.

As everything with hardware dependencies, weird behaviors may happen depending of your configuration. You should never hesitate to notify us about a specificity of your OS/Hardware/Wifi card/whatever.


Install

# Use as a module
npm install node-wifi

# Use as a CLI
npm install node-wifi -g

Getting started

var wifi = require('node-wifi');

// Initialize wifi module
// Absolutely necessary even to set interface to null
wifi.init({
  iface: null // network interface, choose a random wifi interface if set to null
});

// Scan networks
wifi.scan((error, networks) => {
  if (error) {
    console.log(error);
  } else {
    console.log(networks);
    /*
        networks = [
            {
              ssid: '...',
              bssid: '...',
              mac: '...', // equals to bssid (for retrocompatibility)
              channel: <number>,
              frequency: <number>, // in MHz
              signal_level: <number>, // in dB
              quality: <number>, // same as signal level but in %
              security: 'WPA WPA2' // format depending on locale for open networks in Windows
              security_flags: '...' // encryption protocols (format currently depending of the OS)
              mode: '...' // network mode like Infra (format currently depending of the OS)
            },
            ...
        ];
        */
  }
});

// Connect to a network
wifi.connect({ ssid: 'ssid', password: 'password' }, error => {
  if (error) {
    console.log(error);
  }
  console.log('Connected');
});

// Disconnect from a network
// not available on all os for now
wifi.disconnect(error => {
  if (error) {
    console.log(error);
  } else {
    console.log('Disconnected');
  }
});

// Delete a saved network
// not available on all os for now
wifi.deleteConnection({ ssid: 'ssid' }, error => {
  if (error) {
    console.log(error);
  } else {
    console.log('Deleted');
  }
});

// List the current wifi connections
wifi.getCurrentConnections((error, currentConnections) => {
  if (error) {
    console.log(error);
  } else {
    console.log(currentConnections);
    /*
    // you may have several connections
    [
        {
            iface: '...', // network interface used for the connection, not available on macOS
            ssid: '...',
            bssid: '...',
            mac: '...', // equals to bssid (for retrocompatibility)
            channel: <number>,
            frequency: <number>, // in MHz
            signal_level: <number>, // in dB
            quality: <number>, // same as signal level but in %
            security: '...' //
            security_flags: '...' // encryption protocols (format currently depending of the OS)
            mode: '...' // network mode like Infra (format currently depending of the OS)
        }
    ]
    */
  }
});

// All functions also return promise if there is no callback given
wifi
  .scan()
  .then(networks => {
    // networks
  })
  .catch(error => {
    // error
  });

Use as CLI

wifi --scan

wifi --connect --ssid <ssid> --password <password> [--iface <wlan0>]

wifi --disconnect

wifi --current

Platforms compatibility

This project is tested with operating systems:

  • macOS Catalina 10.15.5
  • linux Ubuntu 18.04.3 LTS

Do not hesitate to create a pull request to add the OS you are using.

Dependencies

Linux:

  • network-manager (nmcli)

Contribute

Please read development guidelines before proposing a pull request.

Roadmap

  • [x] add conventional commits
  • [x] plug to travis
  • [x] add github templates
  • [x] add eslint
  • [x] add prettier
  • [x] switch to MIT license
  • [x] generate changelog and release note
  • [x] stdout how to reproduce bug
  • [x] use github actions
  • [ ] add unit tests (in progress)
  • [ ] rewrite the library using ES7 (in progress)
  • [ ] harmonize security flags and modes
  • [ ] install commitizen
  • [ ] use xml to stabilize parsers
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].