Friday, June 22, 2012

Install Dradis in Backtrack 5 R2

I need newest dradis to manager all scanner report, but if you use:
#apt-get install dradis
You have got only daradis 2.7. I need 2.10
So, i must install Dradis 2.10 from git in Backtrack
Installing Ruby 1.9.3
root@bt:~# bash -s stable < <(curl -s
root@bt:~# source /etc/profile.d/
root@bt:~# rvm -v

root@bt:~$ for package in zlib openssl libxslt libxml2; do rvm pkg install $package; done

root@root:~# rvm install 1.9.3
root@root:~# rvm 1.9.3 --default
root@root:~# ruby -v
Note: if you see error: rvm is not function, because you didn`t config your gnome terminal. To fix it: In termial menu/ Edit/ Profile Prefences / Titlte and Command/ check Run command as a login shell. Restart terminal

root@root:~# echo "gem: --no-rdoc --no-ri" > ~/.gemrc
root@root:~# gem install bundler
root@root:~# bundle -v
If gem install too slow, you can use this way to slove:
#gem -v
If < 2.0 ( Backtrack R2 is 1.8.x)
#gem install --local curb-0.1.4.gem
Now gem install more quick

Download Dradis
root@root:~# cd /pentest/misc/
root@root:/pentest/misc# mkdir dradis-git && cd dradis-git
root@root:/pentest/misc/dradis-git# git clone server
root@root:/pentest/misc/dradis-git# for file in verify reset start; do curl -O$; done
root@root:/pentest/misc/dradis-git# chmod +x *.sh

root@root:/pentest/misc/dradis-git# cd server/
Do you wish to trust this .rvmrc file? (/pentest/misc/dradis-git/server/.rvmrc)
y[es], n[o], v[iew], c[ancel]> y
Using /root/.rvm/gems/ruby-1.9.3-p125 with gemset dradis
root@root:/pentest/misc/dradis-git# cd ..

Install Dradis
In and, chang
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
[[ -s /etc/profile.d/ ]] && . /etc/profile.d/

root@root:/pentest/misc/dradis-git# ./
Some Ruby gems are missing, do you want to install them now? [y] y
wait and if finish, type command again:
root@root:/pentest/misc/dradis-git# ./
The config file [config/database.yml.template] was found not to be ready to use.
Do you want to initialize it? [y]es | [N]o | initialize [a]ll
root@root:/pentest/misc/dradis-git# cd server/
root@root:/pentest/misc/dradis-git/server# RAILS_ENV=production bundle exec rake assets:precompile

Running Dradis:
root@root:/pentest/misc/dradis-git# ./
To update dradis:
root@root:~# cd /pentest/misc/dradis-git/server
root@root:/pentest/misc/dradis-git/server# git pull

If you want change command in backtrack menu, go to main menu / System / Preferences / Main Menu / Back track / Reporting tools / Evindence Media / dradis / Properties
Change sh -c "cd /pentest/misc/dradis/ && ./;sudo -s"
sh -c "cd /pentest/misc/dradis-git/ && ./;sudo -s"

Thanks for reading
Security Research
All my Lab:
Linux Lab -- window and Cisco Lab
to be continued - I will update more.

No comments:

Install Xposed Inspector and Frida on Genymotion

Today i had some work with android. So i need trace application. I found 2 nice tool can help me: Xposed Inspector and Frida. To setup ther...