wifi-geolocate – Implantation / Test

There is comprehensive guide for the testing of my idea.

Material

For my test I will those materials:

– Raspberry PI-W

– Dlink DI-130 USB Adapter

Step

We prepare a test access-point with our vendor specific’s tag.

We test with a monitoring tool from another device if we can read the vendor’s option.

Preparing the Access-Point

On the device that will serve as an Access-Point (Raspberry PI-W)

First we update our package list

sudo apt-get update && sudo apt-get upgrade -y

We install hostapd

sudo apt-get install hostapd

We issue an ifconfig to find which wireless adapter is present

ifconfig

We now create our hostpad’s file

sudo nano /etc/hostapd/hostapd.conf
In the editor, I paste that simple configuration
interface=wlan0

hw_mode=g

channel=7

wmm_enabled=0

macaddr_acl=0

auth_algs=1

ignore_broadcast_ssid=0

wpa=2

wpa_key_mgmt=WPA-PSK

wpa_pairwise=TKIP

rsn_pairwise=CCMP

ssid=Test

wpa_passphrase=passphrasetest123!
We specify the default location of the hostapd’s file
sudo nano /etc/default/hostapd
In the file we add
DAEMON_CONF="/etc/hostapd/hostapd.conf"
Depending on your setup you put the specific vendor element in hostapd.conf:
sudo nano /etc/hostapd/hostapd.conf

vendor_elements=dd2755555534382e323433353131323831323533357c7c2d37392e3034303431383232323836303938

 

Advertisements
%d bloggers like this: