LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 06-20-2012, 08:46 PM   #1
Ninjex
LQ Newbie
 
Registered: Jun 2012
Posts: 12

Rep: Reputation: Disabled
Installing Mestasploit for Armitage on BT5 R2


As usual, I was having issues out of metasploit!
I know this looks like a lot but it's mainly just output code.

Issue- After about 7 hours of trying tutorials and searching google for answers on how to fix my problem, I figured the best option was to just uninstall metasploit and then reinstall it, and of course I was wrong.

I went to the directory and ran the uninstall and removed metasploit from my machine.

Now, I am having trouble reinstalling metasploit, which I didn't think would give me so many issues.

I have been to the manufacture website and download the .run file and ran the instillation progress, only to come up with more errors after the install.

So I decided to try and install it another way instead, here is what I have done:


$ sudo bash

# cd /pentest/exploits/

# mkdir metasploit

# cd /pentest/exploits/metasploit

# svn co https://www.metasploit.com/svn/framework3/trunk framework3



Installing the pcaprub extension to be able to run raw sockets, so I then ran:



# cd /pentest/metasploit/framework3/external/pcaprub

# ruby extconf.rb

# make && make install



Installing the lorcon2 extension to use the WIFI Modules, so I ran the following:
(Use http://802.11ninja.net/svn/lorcon/trunk lorcon2 instead of "https" due to errors)



# cd /pentest/metasploit

# svn co http://802.11ninja.net/svn/lorcon/trunk lorcon2

# cd lorcon2

# ./configure --prefix=/usr && make && make install

# cd /pentest/metasploit/framework3/external/ruby-lorcon2

# ruby extconf.rb

# make && make install



Update:

# svn update /pentest/metasploit/framework3/


I am at Revision 15490 receiving some errors still!

# ./armitage

Couldn't launch MSF Cannot run program "msfrpcd" java.io.10Exception: error=2, No such file or director

# ./msfgui
./msfgui:13: Missing msgpack gem, try 'gem install msgpack' to use MSFGui (LoadError)

I then ran:
# gem install msgpack
Building native extensions. This could take a while...
Successfully installed msgpack-0.4.7
1 gem installed
Installing ri documentation for msgpack-0.4.7...
Installing RDoc documentation for msgpack-0.4.7...

Tried running # ./msfgui again only to receive the same error code

I then ran:

# ./Gemfile
./Gemfile: line 1: http://rubygems.org: No such file or directory
ERROR: While executing gem ... (RuntimeError)
Unknown command rails,
./Gemfile: line 3: git://github.com/rapid7/metasploit_data_models.git: No such file or directory
ERROR: While executing gem ... (RuntimeError)
Unknown command pg,
ERROR: While executing gem ... (RuntimeError)
Unknown command msgpack
ERROR: While executing gem ... (RuntimeError)
Unknown command nokogiri


I think I am a bit bummed on this, any help?
 
Old 06-20-2012, 09:24 PM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux, LFS, Slitaz
Posts: 3,095
Blog Entries: 1

Rep: Reputation: 975Reputation: 975Reputation: 975Reputation: 975Reputation: 975Reputation: 975Reputation: 975Reputation: 975
Sounds annoying,..

Anyway, to see if I could replicate the problem, I downloaded BT5 R2.

Seems that Metasploit is installed already. Did some searching on the internet, found a site that said to run 'msfupdate' which didnt work. Found this link: http://www.backtrack-linux.org/forum...ad.php?t=48556 that showed how to fix it. Ran 'msfupdate' again, and metasploit updated.

Is this an option for you? Or are you intent on repairing an installation gone awry?
 
Old 06-20-2012, 09:49 PM   #3
Ninjex
LQ Newbie
 
Registered: Jun 2012
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by szboardstretcher View Post
Sounds annoying,..

Anyway, to see if I could replicate the problem, I downloaded BT5 R2.

Seems that Metasploit is installed already. Did some searching on the internet, found a site that said to run 'msfupdate' which didnt work. Found this link: http://www.backtrack-linux.org/forum...ad.php?t=48556 that showed how to fix it. Ran 'msfupdate' again, and metasploit updated.

Is this an option for you? Or are you intent on repairing an installation gone awry?

I read the tutorial for the fix, but I do not find the 'common/lib' in the directory

If I have to reinstall BT5 I will but I would rather not, not after all the installs and additions, etc...
After all, metasploit makes Back Track come to life
# msfupdate
msfupdate: command not found
 
Old 06-20-2012, 10:03 PM   #4
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux, LFS, Slitaz
Posts: 3,095
Blog Entries: 1

Rep: Reputation: 975Reputation: 975Reputation: 975Reputation: 975Reputation: 975Reputation: 975Reputation: 975Reputation: 975
Thumbs up

The problem with trying to fix it is that you have installed / uninstalled, updated, removed, changed configs, etc.. etc.. which is not an easy state for anyone to try and mimic to be able to help. I'm sure that someone could eventually muddle through error after error to try and figure it out,..

What I suggest is this:

Make a virtual machine, install BT5, and follow the above steps. If it works, then you know it works, and a re-installation will help. Which aside from giving you *sploit it will give you a peace of mind that everything is in its original condition...

Hope that helps.
 
Old 06-20-2012, 10:22 PM   #5
Ninjex
LQ Newbie
 
Registered: Jun 2012
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by szboardstretcher View Post
The problem with trying to fix it is that you have installed / uninstalled, updated, removed, changed configs, etc.. etc.. which is not an easy state for anyone to try and mimic to be able to help. I'm sure that someone could eventually muddle through error after error to try and figure it out,..

What I suggest is this:

Make a virtual machine, install BT5, and follow the above steps. If it works, then you know it works, and a re-installation will help. Which aside from giving you *sploit it will give you a peace of mind that everything is in its original condition...

Hope that helps.

That actually sounds like a good idea! Thanks for the info.
 
  


Reply

Tags
backtrack, compile, install, metasploit


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up Armitage in BT5 R2 for Pen Testing Ninjex Linux - Software 2 06-20-2012 02:17 AM
BT5 shutdown Daveit Linux - Newbie 1 06-11-2011 05:41 AM
BT5 Alien74 Linux - Newbie 3 05-31-2011 07:02 PM
Armitage Metasploit BackTrack 4 No Collaboration server is present 01010011 Linux - Security 4 03-28-2011 10:27 AM


All times are GMT -5. The time now is 09:03 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration