This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| angular.module('monitorApp') | |
| .controller('MonitorCtrl', function ($scope, fbutil, $timeout) { | |
| $scope.stations = fbutil.syncArray('stations', {limit: 15}); | |
| // display any errors | |
| $scope.stations.$loaded().catch(alert); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <table class="table table-striped" ng-if="stations.length"> | |
| <thead> | |
| <tr> | |
| <th>Station MAC</th> | |
| <th>First Seen</th> | |
| <th>Last Seen</th> | |
| </tr> | |
| </thead> | |
| <tbody> | |
| <tr ng-repeat="station in stations"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import subprocess, StringIO, csv | |
| from simplejson import dumps | |
| from firebase import Firebase | |
| from time import sleep, time | |
| # to install Firebase, pip install -e git://github.com/mikexstudios/python-firebase.git#egg=python-firebase | |
| firebase = Firebase('https://<your_app>.firebaseio.com/stations') | |
| def fetch_data(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # put wlan0 in monitoring mode | |
| sudo airmon-ng start wlan0 | |
| # activate airodump and have it output data to /tmp directory | |
| sudo airodump-ng --output-format csv --write /tmp/capture mon0 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| wget http://download.aircrack-ng.org/aircrack-ng-1.2-beta3.tar.gz | |
| sudo apt-get -y install libssl-dev libnl-genl-3-dev libnl-3-dev iw | |
| tar -zxvf aircrack-ng-1.2-beta3.tar.gz | |
| cd aircrack-ng-1.2-beta3/ | |
| make | |
| sudo make install |
NewerOlder