I'm having exactly similar problem. I tried following commands.
Code:
cd /pentest/exploits/framework3/external/pcaprub
ruby extconf.rb && make && make install
By trying above commands, msfconsole still was not able to load the library
Code:
gem install pcaprub
I got a load eror which I was getting nowhere with simple fix,when I run msfconsole it was able to run few scripts and then it loads the console,one of them exactly setup environment.after installing and you just need to add path to setenv.sh script to rubylib path.
Code:
cd /pentest/exploits/framework3/external/pcaprub
ruby extconf.rb && make && make install
than
Code:
gedit /opt/framework3/scripts/setenv.sh &
So whole thing is
Code:
##### RUBY ENV #####
# Don't override GEM_PATH so users can install gems for the system ruby and
# they at least have a chance of working with ours
GEM_HOME="/opt/framework3/ruby/lib/ruby/gems/1.9.1"
RUBY_HOME="/opt/framework3/ruby"
RUBYLIB
There must be many paths in rubylib separated by and just add the path of pcaprub to the end .restart the console and it will work fine. I have verified this on both Gnome 32 and 64 bit releases of backtrack 5.
Bookmarks