10.09.2016 Views

Hacking_and_Penetration_Testing_with_Low_Power_Devices

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

142 CHAPTER 6 Input <strong>and</strong> output devices<br />

FIGURE 6.11<br />

Single-sided XBee cape board layout.<br />

GETTING ON THE WIRELESS<br />

As before, a wireless monitoring mode interface is easily created by executing the<br />

comm<strong>and</strong> airmon-ng start wlan0 as root assuming your wireless adapter is called<br />

wlan0. Recall that if this is the first time you have run this comm<strong>and</strong>, the newly created<br />

interface will be mon0. Airodump-ng is meant to run in a console window so we<br />

will have to do something different <strong>with</strong> the hacking drone. It is true that we could<br />

run airodump-ng from a Python or shell script <strong>and</strong> parse the output that has been<br />

redirected to a file, but using available Python modules is easier <strong>and</strong> more elegant.<br />

Scapy is a powerful Python module for creating, modifying, <strong>and</strong> sniffing network<br />

packets. It is easily used to capture local wireless networks <strong>and</strong> any interesting

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!