binary numbers

Compiling source code on any Linux or Mac OS X

Facebooktwittergoogle_plusyoutubeinstagram

Compiling source code?

Sometimes, you are in a situation, where you do not have the availability of modern package managers, such as Linux’s popular ones such as dpkg, rpm, zypper, and yum, Or Mac OS X’s App Store. Compiling source code allows you to minimally install software, without installing all of the bloated and recommended packages that package managers install. You might also be a developer, and it’s a possibility you do not like the way that a certain piece of software operates on your computer, or you’d like to implement new features which are currently not available. Today I shall show you how to install the popular brute force tool Hydra from source.

 

So first of all, we’ll start out by downloading what is called, a tarball, which is pretty much all of the source code from a specific piece of software compressed into a portable archive.

 

To download:

wget http://www.thc.org/releases/hydra-8.2.tar.gz

 

Challenge:

Find and download all of these dependencies and put them in the same folder:

libssl-dev libssh-dev libidn11-dev libpcre3-dev libgtk2.0-dev libmysqlclient-dev libpq-dev libsvn-dev firebird2.1-dev libncp-dev libncurses5-dev

Next, we compile all of the dependencies like so:

tar -xf <Package>

cd <Package>

./configure

make

sudo make install

 

Usually, the ./configure script will guide you through the process, telling you which of these packages to compile first. After you’ve compiled all of them, it’ll be time to compile Hydra. I hope this tutorial was slightly useful, even though I didn’t mention much detail. But most of you are hackers after all, and being a hacker means being flexible, and that means you will adapt and learn. 😀

 

-Cybermatrius

Facebooktwittergoogle_plusredditmail

Troy Sweeney

Linux kernel contributor, C/Java programmer, hacktivist. Spends most of his time helping others stay up to current with technology, security, and end to end encryption, he also has an addiction to German pastries.

One thought on “Compiling source code on any Linux or Mac OS X

Leave a Reply

Your email address will not be published. Required fields are marked *