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 |
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
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
<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
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
mkdir kahootClone | |
cd kahootCLone | |
yo angularfire:app kahootClone |
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
var underscore = angular.module('underscore', []); | |
underscore.factory('_', ['$window', function($window) { | |
return $window._; // assumes underscore has already been loaded on the page | |
}]); | |
angular.module('kahootCloneApp', [ | |
'ngAnimate', | |
'ngCookies', | |
'ngResource', |
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
bower install --save underscore |
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
<div class="jumbotron"> | |
<h1>Let's play trivia.</h1> | |
<p class="lead"> | |
In real time! | |
</p> | |
<p><a ng-if="!creatingGame" class="btn btn-lg btn-success" ng-click="newGame()">Start new Game</a></p> | |
<p><a ng-if="creatingGame" ng-disabled="true" class="btn btn-lg btn-success" ng-click="newGame()">Creating game..</a></p> | |
<p><a class="btn btn-lg btn-success" ng-href="#/player">Join Existing Game</a></p> | |
</div> |
OlderNewer