项目作者: blakek

项目描述 :
Converts WiFiFoFum kml files to CSV logs
高级语言: JavaScript
项目地址: git://github.com/blakek/wff2csv.git
创建时间: 2016-06-30T04:00:56Z
项目社区:https://github.com/blakek/wff2csv

开源协议:MIT License

下载


wff2csv

Convert WiFiFoFum KML files to CSV logs (e.g. for data visualization)

I had a homework assignment in a security class to just go wardriving and see what interesting patterns could be found. With an old iPhone 3GS I got got for $15, I just drove around town and collected hotspot data and geolocations. However, I couldn’t interact with it the way I wanted… So, I wrote this to convert the KML-ish output to a CSV that can be used for data visualization.

Usage

Convert the WiFiFoFum KML files to a CSV:

  1. $ wff2csv WiFiFoFum_Log_586.kml > wifi.csv

Outputs these fields:

  • ESSID
  • MAC Address
  • Channel
  • Security
  • Type
  • Latitude
  • Longitude
  • Elevation

Then, you can choose your own way of dealing with data. For example, you can easily create a visualization using Google My Maps:

Example screenshot

API

If you want to write a different conversion (e.g. to JSON), there is a separate wffParser.js file you can take advantage of.

Parse a WFF KML file:

  1. // parser is installed with wff2csv
  2. const wffParser = require('wff2csv/wffParser')
  3. const wifiData = wffParser
  4. .parseFile('WiFiFoFum_Log_586.kml')
  5. .then(data => console.log(data))

Logs:

  1. [{
  2. essid: '',
  3. macAddress: '',
  4. channel: '',
  5. security: '',
  6. type: '',
  7. latitude: '',
  8. longitude: '',
  9. elevation: ''
  10. }]

Install

With npm installed:

Install for system-wide usage:

  1. $ npm install -g wff2csv

Install for API/parser usage:

  1. $ npm install --save wff2csv

License

MPL-2.0