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

node-createap

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-createap

Node wrapper for create_ap

latest
Source
npmnpm
Version
0.0.4
Version published
Maintainers
1
Created
Source

node-createap

Node wrapper for create_ap

Note : sudo create_ap needs to run passwordless !

Note for Raspbian-RPI3 users:

  • --no-virt option required
  • running fine with hostapd v2.5
  • dnsmasq & hostapd daemons disabled (sudo systemctl disable hostapd // dnsmasq)
  • disabled all wireless settings in /etc/network/interfaces, so it's only allow-hotplug wlan1 and allow-hotplug wlan0

Usage :

npm install --save node-createap

then...

var CAP = require ('node-createap')

var createap = new CAP({
  path: '/home/pi/create_ap/create_ap',
  options: '--daemon -n --isolate-clients -m nat --no-virt --hostapd-debug 2 --no-haveged -g 192.168.11.1 -c 1 --country US', // --hidden
  silent: true,
  wirelessInterface: 'wlan0',
  wiredInterface: 'eth0',
  wifiApName: 'MyNetwork',
  wifiWPA: 'aaaaaaaa'
})

createap.start(function (msg){
  console.log(msg)
})

process.on('SIGINT', function () {
  createap.stop(function (msg) {
    console.log(msg);
  })
  process.exit();
});

Keywords

create-ap

FAQs

Package last updated on 13 Jun 2016

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