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.

Adding tools the hard way<br />

79<br />

FIGURE 4.11<br />

Entering information about a remote Linux connection in Eclipse.<br />

touch .gdbinit from a terminal after changing to the project directory <strong>with</strong><br />

cd .<br />

All of the setup above might seem like a lot of trouble. Once you have it set up for<br />

the first project, most of this configuration work can be reused in other projects, however.<br />

When building a large number of applications, using scripts to build from the<br />

comm<strong>and</strong> line might be more convenient. Remote debugging in Eclipse may be a<br />

good choice for problem applications that are not successfully built from automated<br />

scripts.<br />

AUTOMATING SOURCE BUILDS<br />

The goal is to automate as much of our build as possible. To that end, we can create a<br />

simple script that will automate most of the work of downloading, building, <strong>and</strong><br />

installing source packages. The script presented here will not work for every situation.<br />

It also requires that a direct download link is available. Given that less than 10%<br />

of packages are installed from source, a simple script that works for 80% plus of our

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

Saved successfully!

Ooh no, something went wrong!