Skip to content

HackMIT/offix

 
 

Repository files navigation

OffiX

"Who is in the office?"

This documentation is decent, but it isn't super detailed, at least not yet. If you're trying to set this up and have any questions, feel free to open an issue or send me an email ([email protected]).

Hardware Setup

  • Raspberry Pi
    • Ralink RT5370
      • Works out of the box with Raspbian Jessie, supports monitor mode

Software Setup

There are three main components in OffiX: a WiFi sniffer, a web interface, and the Hubot plugin. Information about each component is in its own directory.

System Setup

To configure a static IP address, edit /etc/network/interfaces and add the following:

auto eth0
iface eth0 inet static
	address x.x.x.x
	netmask x.x.x.x
	gateway x.x.x.x

To put the wifi card in monitor mode, run the following:

sudo ifconfig wlan0 down
sudo iwconfig wlan0 mode monitor
sudo ifconfig wlan0 up

Note: This needs to be run on every reboot!

To install node/npm on the Raspberry Pi, run:

wget http://nodejs.org/dist/v4.2.4/node-v4.2.4-linux-armv6l.tar.gz
cd /usr/local
sudo tar xzvf ~/node-v4.2.4-linux-armv6l.tar.gz --strip=1

To install RabbitMQ on the Raspberry Pi, run:

sudo apt-get update
sudo apt-get install rabbitmq-server

To install MongoDB on the Raspberry Pi, run:

sudo apt-get update
sudo apt-get install mongodb

Architecture

The WiFi sniffer and web interface are meant to run on the Raspberry Pi. The two communicate via a RabbitMQ instance running on the Raspberry Pi.

Development Tips

Contributing

Contributions in the form of bug reports/feature requests as well as pull requests are much appreciated!

License

Copyright (c) 2016 by the authors (see AUTHORS.txt). Released under GPLv3. See LICENSE.txt for details.

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 36.8%
  • C 33.0%
  • HTML 11.2%
  • CoffeeScript 9.6%
  • CSS 8.7%
  • Makefile 0.7%