|
UsingTheLatestBeEFInBT5
Using the latest BeEF in BT5
IntroductionOn BackTrack 5 both the old BeEF (PHP) and BeEF (Ruby) have been added but as we're doing a lot of development with a new alpha release every month, the (incorrectly named) BeEF-ng version is not up-to-date. Required gems are also not installed by default. This document will discuss how to setup this functionality. NOTE 1: A script has been published to automate the steps described in this guide. NOTE 2: If you run tools that require ruby 1.8 you might find this script handy Installing BeEF from trunk in BT5Following the next steps you will be able to use use the latest BeEF on your pentests using BT5:
root@bt:~# irb irb(main):001:0> require 'rubygems' => false irb(main):002:0> require 'dm-core' => true irb(main):003:0> Gem.path => ["/var/lib/gems/1.9.2/gems"] irb(main):004:0> quit Now BeEF is up-and-running and can be updated to the latest trunk version with the usual svn update command from the /pentest/web/beef directory. | |
PATH is not /var/lib/gems/1.9.2/gems but /var/lib/gems/1.9.2 in both cases.
nice
enter the script, ad the path and still with core errors
Even with the update directories still getting "/pentest/web/beef/extensions/console/banners.rb:65:in `getaddrinfo': getaddrinfo: Name or service not known (SocketError?)