Running Dradis Framework in BackTrack4 R2
Following the series of articles on how to get the Dradis Framework running in different operating system, this time is the turn of BackTrack 4 R2.
A couple of weeks ago we discussed how to get Dradis running in Ubuntu 10.10 this time we are going to install Dradis 2.6.1 in the latest release of BackTrack 4.
First, get a download link for the latest Dradis from http://dradisframework.org/downloads.html and get it:
# wget http://downloads.sourceforge.net/dradis/dradis-v2.6.1.tar.bz2
Extract it:
# tar -xvvjf dradis-v2.6.1.tar.bz2
Next we need to update the version of RubyGems installed in BT4:
# gem -v
1.3.1
# gem update --system
[...]
# gem -v
1.5.2
And install the Bundler gem:
# gem install bundler
Now we are ready to get things going:
# cd dradis-2.6
# ./reset.sh
Your Gemfile's dependencies could not be satisfied
Install missing gems with `bundle install`
Some Ruby gems are missing, do you want to install them now? [y] y
Ok then, I am going to run bundle install for you, then you should run this script again.
Fetching source index for http://rubygems.org/
Installing rake (0.8.7)
Installing RedCloth (4.2.5) with native extensions
Installing abstract (1.0.0)
[...]
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
After all the dependencies are installed, we are ready to initialize the database and start the server. However, there are a couple of things that have to be changed in the startup scripts.
First, edit the first non-comment line of reset.sh to look like this:
export RAILS_ENV=production
Then edit start.sh and replace the contents with these three lines:
export RAILS_ENV=production
cd server
ruby script/rails server webrick
Now we are ready, run the reset script again to generate the database:
# ./reset.sh
And start the server with:
# ./start.sh
Everything should be up and running in: https://127.0.0.1:3004/
Popularity: 2% [?]
February 18th, 2011
Doesn’t the RubyGem update break other ruby-based software in BT4?
February 18th, 2011
Hi aimar,
I wouldn’t think it does. Do you have specific examples in mind?
Daniel
February 18th, 2011
@etd: I’m thinking about Metasploit Framework 3, it’s written in Ruby.
February 18th, 2011
What I meant is that RubyGems is usually just used for dependency management. I can still run Metasploit in my BT4 R2 with RubyGems updated without issues.
Did you find a specific problem? Maybe if I can reproduce it..
February 18th, 2011
not so far, I’ll keep you updated if something goes wrong though.
(and goodbye beloved LEO
)
Anyway, thanks for the interesting post
February 25th, 2011
i did all step by step and i get this !
#Fetching source index for http://rubygems.org/
#Could not reach rubygems repository http://rubygems.org/
#Could not find gem ‘rails (= 3.0.4, runtime)’ in any of the gem sources listed in #your Gemfile.
my connection is working well i tryed it several time over and over again also from the start but this wont change a thing.
all other updates/downloads went well.
February 25th, 2011
That is very strange. Do you see the rails gem using:
$ gem search rails -v=3.0.4 –remote
?
Can you install the gem manually?
$ gem install rails -v=3.0.4
If you can, after installing try running ./reset.sh again.
You can drop by the #dradis IRC channel in freenode.org and we’ll be happy to help.
HTH,
Daniel
February 25th, 2011
$gem install rails -v=3.0.4
#ERROR: Could not find a valid gem ‘rails’ (= 3.0.4) in any repository
#ERROR: Possible alternatives: rails
$gem install rails
#ERROR: Could not find a valid gem ‘rails’ (>= 0) in any repository
#ERROR: Possible alternatives: rails
$gem search rails -v=3.0.4 -r
#ERROR: While executing gem … (Gem::RemoteFetcher::FetchError)
#Errno::ETIMEDOUT: Connection timed out – connect(2) (http://rubygems.org /latest_specs.4.8.gz)
any ideas ? is someone sexing the chipsets of the rubygems servers?