在Node.js中破解Wi-Fi网络:intruder (WIP)

pcbbe 9年前

在Node.js中破解Wi-Fi网络。当前支持WEP加密。

安装

$ npm install intruder

用法

var Intruder = require('intruder');  var intruder = Intruder();    intruder.crack('Home', function(err, key) {    if (err) throw new Error(err);    console.log(key);  });

API

Intruder(options)

Create a new instance of Intruder that can crack a Wi-Fi network.

The available options are:

  • interval: the length of time passed between cracking attempts
  • channel: the channel to sniff packets on

.crack()

Crack a Wi-Fi network by name:

intruder.crack('My Wi-Fi Network', function(err, key) { // ... });

.on()

Listen for theattemptevent, which is emitted on each cracking attempt:

intruder.on('attempt', function(ivs) { console.log(ivs) // > 80,000 is good })

Note

If you do not have aircrack, install it with Homebrew:

brew install aircrack-ng

or MacPorts:

sudo port install aircrack-ng

项目主页:http://www.open-open.com/lib/view/home/1443349643779