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.

80 CHAPTER 4 Filling the toolbox<br />

FIGURE 4.12<br />

Configuring Eclipse to use SSH connections.<br />

situations is preferable to a complicated one that works 99% of the time. Custom<br />

scripts or manual installation can be used for a h<strong>and</strong>ful to troublesome packages:<br />

#!/bin/bash<br />

# This script will download <strong>and</strong> then build <strong>and</strong> install<br />

# source packages. It will work <strong>with</strong> both local builds<br />

# <strong>and</strong> remote cross-compiles.<br />

#<br />

# Originally created by Dr. Phil Polstra<br />

# for the book<br />

# <strong>Hacking</strong> <strong>and</strong> <strong>Penetration</strong> <strong>Testing</strong> With <strong>Low</strong> <strong>Power</strong> <strong>Devices</strong><br />

# set some variables for cross-compiling<br />

cross_configure_flags¼'--host¼arm-linux-gnueabihf\<br />

--prefix¼/usr/arm-linux-gnueabihf'<br />

cross_compile_env¼'CC¼arm-linux-gnueabihf-gcc'

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

Saved successfully!

Ooh no, something went wrong!