# Install libssl-dev
sudo apt-get -y install libssl-dev
# Download and install aircrack
wget http://download.aircrack-ng.org/aircrack-ng-1.2-beta1.tar.gz
tar -zxvf aircrack-ng-1.2-beta1.tar.gz
cd aircrack-ng-1.2-beta1
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 ws = require('ws'); | |
var socket = new ws('ws://localhost:3000/events'); | |
socket.on('open',function(){ | |
socket.send( JSON.stringify({cmd : 'subscribe',name : 'photosensor/value'}) ); | |
}); | |
socket.on('message',function(data){ | |
console.log(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
var http = require('http'); | |
var net = require('net'); | |
var async = require('async'); | |
var websocket = require('websocket-stream'); | |
var Parser = require('./parser.js'); | |
var multiplexer = new Parser(); | |
function proxyws(id,callback){ |
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
brew install glib gettext automake | |
brew link --force gettext | |
git clone it://gitorious.org/mdbtools/mainline.git | |
cd mdbtools | |
./autogen.sh --enable-sql --disable-gmdb2 --disable-glibtest | |
make | |
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
/*************************************************** | |
Adafruit CC3000 Breakout/Shield TCP Echo Server | |
This is a simple implementation of the echo | |
protocol, RFC 862 http://tools.ietf.org/html/rfc862 , | |
for the Arduino platform and Adafruit CC3000 breakout | |
or shield. This sketch will create a TCP server that | |
listens by default on port 7 and echos back any data | |
received. Up to 3 clients can be connected concurrently |
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
#include <Adafruit_CC3000.h> | |
#include <SPI.h> | |
#include "utility/debug.h" | |
#include "utility/socket.h" | |
// These are the interrupt and control pins | |
#define ADAFRUIT_CC3000_IRQ 3 // MUST be an interrupt pin! | |
// These can be any two pins | |
#define ADAFRUIT_CC3000_VBAT 5 |
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 | |
#Check if script is in Jennic Dir | |
if [ ! -d "Stack" ]; then | |
echo "Script does not appear to be ran in Jennic directory." | |
exit 2 | |
fi | |
# Check if wine is installed | |
command -v wine >/dev/null 2>&1 || { echo >&2 "Please install wine. Aborting."; exit 1; } |
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
check host GW-lans-1 address 166.250.67.37 | |
if failed port 9191 type tcp | |
with timeout 10 seconds for 3 cycles | |
then alert | |
if failed port 2222 type tcp | |
with timeout 10 seconds for 3 cycles | |
then 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
#!/bin/bash | |
rm mem.log | |
while true; do | |
t=`date +%s` | |
data=`ps -C lt-v3node -o pid=,rss=,vsz=` | |
echo $t $data >> mem.log | |
echo $t $data | |
#gnuplot gnuplot.script |
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 key = new Buffer('E8E9EAEBEDEEEFF0F2F3F4F5F7F8F9FA','hex'); | |
var text = '6743C3D1519AB4F2CD9A78AB09A511BD'; | |
var decipher = crypto.createDecipheriv('AES-128-ECB',key,''); | |
//decipher.setAutoPadding(false); this makes it work? | |
var k1 = decipher.update(text,'hex','hex'); // Why is this ''??? | |
var k2 = decipher.update(text,'hex','hex'); | |
console.log("de k1:" + k1) // is equal to '' but should be 014baf2278a69d331d5180103643e99a | |
console.log("de k2:" + k2) // is equal to 014baf2278a69d331d5180103643e99a |