Hacking_and_Penetration_Testing_with_Low_Power_Devices
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
98 CHAPTER 5 <strong>Power</strong>ing The Deck<br />
<strong>Power</strong> limitations for USB ports need to be kept in mind. Drawing more than<br />
500 mA from a USB port is somewhat risky. A dropbox connected to a wired network<br />
should easily operate from a single USB port. If additional current is required, a<br />
Y-cable can be used.<br />
Resist the temptation to use some of the inexpensive USB chargers that are available.<br />
Cheap chargers may not provide a consistent 5 V under load. Read the sidebars<br />
in this chapter if you need motivation not to do this. USB power supplies such as the<br />
Phihong PSA10F-050Q-R or USB ports on automotive jumpstarters are probably<br />
safe to use.<br />
Buying manufactured USB power cables is recommended for most users.<br />
Whether you make your own cables or buy them, you must ensure that the wires<br />
are sufficiently thick to safely provide the required current <strong>with</strong>out excessive voltage<br />
drop. Wire thickness is measured using the American wire gauge (AWG). In this<br />
system, wires <strong>with</strong> smaller AWG numbers are thicker. Table 5.1 presents the approximate<br />
maximum length for wires of a specified gauge delivering 2 A of current <strong>with</strong><br />
at least 4.75 V output <strong>with</strong> 5.00 V input.<br />
Special Computing provides USB power cables in custom lengths up to 6 feet<br />
(https://specialcomp.com/beaglebone/). SparkFun Electronics sells a 3 ft 500 mA<br />
cable (https://www.sparkfun.com/products/8639). An online search should yield a<br />
number of additional sources for these cables. Y-cables are a bit harder to find<br />
<strong>and</strong> you may be forced to make your own should you require them.<br />
If you choose to make your own cables, the Kycon KUSBX-AP-KIT-SC USB A<br />
plug kit available from Mouser Electronics is affordable <strong>and</strong> convenient. Mouser<br />
also sells a Kycon KLDX-PA-0202-A-LT 2.15.5 mm barrel connector for the BeagleBone<br />
end of the power cable. Pin 1, positive 5 V, on the USB plug should be connected<br />
to the center of the barrel connector. The outside barrel connector, ground,<br />
should be connected to Pin 4 on the USB plug.<br />
BATTERY POWER<br />
Wall power isn’t terribly exciting. After all, traditional desktops <strong>and</strong> laptops can be<br />
used when wall power is available. Things get a little less boring when powering<br />
Beagles via USB ports on target computer systems. Where it really gets interesting<br />
is when we realize that the Beagles can be hidden around our penetration test target<br />
<strong>and</strong> run for days off of battery power.<br />
Table 5.1 Approximate Maximum Length for Wires<br />
Delivering 2 A of Current<br />
AWG<br />
Approximate Maximum Length (feet)<br />
26 1.5<br />
24 2.8<br />
22 4.5<br />
20 7