Friday, June 8, 2012

BeEF up: Installing BeEF

We haven't forgotten about the BeEF in a Real World Pentest series. We're taking a break due to the new release, and getting you the stuff you need to use the tool we all know and love.

So, this week's post is about how to get up and running with BeEF.

This one comes from our very own Ben Waugh.

Getting up and running with BeEF:The
great things about BeEF are, the Console, GUI, and RESTful APIs are
really easy to use; and the framework is well designed to make module
development pretty self-explanatory.

But, getting BeEF up and running seems to trip
up people. This is partly because of our use of the latest Ruby framework and
gems.

Hence, we have put together this quick guide to
the most common ways to get BeEF up and running with the software it
relies on using your OS!

This
is the easy way out. We have put together a quick script that
will download and install BeEF's prerequisites and download the latest
version of BeEF. The script installs RVM, Ruby 1.9, and the required Ruby gems.
Be warned, this could affect other software using other versions of Ruby on your system or possibly break things. Use this option cautiously and at your own risk
- don't say you were not warned!

As before, if we are missing your OS or these instructions
don't work let us know, and we'll try to update these pages to
help other users.

Option 3: Experimental Features

CDE Package

If you would like to run beef without
installing or modifying Ruby you can generate a CDE package. Note:
you'll will need a box with a similar OS running Beef with
pre-requisites in order to initially generate the CDE Package (or a
friend with Beef up and running :))