LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (http://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Installing Mestasploit for Armitage on BT5 R2 (http://www.linuxquestions.org/questions/linux-kernel-70/installing-mestasploit-for-armitage-on-bt5-r2-4175412566/)

Ninjex 06-20-2012 08:46 PM

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?

szboardstretcher 06-20-2012 09:24 PM

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?

Ninjex 06-20-2012 09:49 PM

Quote:

Originally Posted by szboardstretcher (Post 4708163)
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

szboardstretcher 06-20-2012 10:03 PM

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.

Ninjex 06-20-2012 10:22 PM

Quote:

Originally Posted by szboardstretcher (Post 4708180)
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.


All times are GMT -5. The time now is 12:16 AM.