10.09.2016 Views

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.

Adding tools the hard way<br />

75<br />

FIGURE 4.6<br />

Setting include <strong>and</strong> library paths in Eclipse.<br />

Adding remote debugging<br />

Hopefully you will never need to debug any of your hacking tools. If you do need to<br />

do so, however, you have the option of running a debugger on the Beagle or on a PC.<br />

Even if remote debugging isn’t required, setting up remote debugging allows you to<br />

automatically copy executables created in Eclipse to your target Beagle.<br />

Remote debugging requires some additional Eclipse plug-ins. To install new<br />

Eclipse packages, select Install New Software from the Help menu. In the Work <strong>with</strong><br />

dropdown list, select “–All Available Sites–”. Then, exp<strong>and</strong> the Mobile <strong>and</strong> Device<br />

Development option as shown in Figure 4.7. Under Mobile <strong>and</strong> Development, select<br />

the following packages: C/C++ GDB Hardware Debugging, C/C++ Remote Launch,<br />

Remote System Explorer End-User Runtime, <strong>and</strong> Remote System Explorer User<br />

Actions. Once the appropriate packages are selected, press the Next button twice<br />

<strong>and</strong> agree to any licenses <strong>and</strong> then press Finish. When the installation finishes, click<br />

the Restart Now button.<br />

Note the IP address of your target Beagle(s). Because the Ethernet is h<strong>and</strong>led on<br />

the same chip as USB on the BeagleBoard-xM, a different MAC address is provided<br />

each time the board boots. This can cause a different IP address to be assigned each<br />

time when using DHCP. If they are not installed, add SSH <strong>and</strong> the Gnu debugger

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

Saved successfully!

Ooh no, something went wrong!