From charlesreid1

Line 25: Line 25:
=Database=
=Database=


In one window, running a script that inserts a random record every 2 seconds
Begin by installing MongoDB:
 
<pre>
apt-get install mongodb
</pre>
 
==Insertion==
 
In one window, running a script that inserts a random record every 2 seconds.
 
Insertion script is as follows:
 
<pre>
</pre>
 
==Display==


In another window, running a script that queries the database and shows its contents
In another window, running a script that queries the database and shows its contents
Display script is as follows:
<pre>
</pre>

Revision as of 03:34, 13 January 2016

Wireless Networks

We will begin by gathering data about wireless networks around us.

This can be done with a number of different programs. I'll use Aircrack's airodump-ng utility.

Start by putting the wireless card in monitor mode:

iwconfig # without wireless card pluged in
iwconfig # with wireless card plugged in
ifconfig wlan1 down 
ifconfig wlan1 up

Now begin monitoring, and dump information from the wireless card:

airmon-ng start wlan1
airodump-ng wlan1 -w output_file

Now you can open output_file.csv with a script or with a spreadsheet viewer.

Database

Begin by installing MongoDB:

apt-get install mongodb

Insertion

In one window, running a script that inserts a random record every 2 seconds.

Insertion script is as follows:


Display

In another window, running a script that queries the database and shows its contents

Display script is as follows: