HadesHaxor / armitage

Automatically exported from code.google.com/p/armitage
0 stars 0 forks source link

Armitage print blank dialog message! #111

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open root console
2. Type armitage
3. Register RPC service and wait for connection

What is the expected output? What do you see instead?
The final result is access of armitage console. Instead I obtain an first 
dialog "connected: connecting database" and second dialog show a blank message 
box.

What version of Metasploit are you using (type: svn info)? On which
operating system?

I use last Revision: 15708 of Metasploit on Ubuntu 12.4

Which database are you using?
I use postgresql 9.1

Please provide any additional information below.
I try with many java version (actualy last sun-java-jdk 1.7)
Work fine with msfgui and msfconsole...

Original issue reported on code.google.com by s...@white-hats.fr on 6 Aug 2012 at 1:07

Attachments:

GoogleCodeExporter commented 9 years ago
Two things:

1) What does it mean to register msfrpcd? Did you click Yes to let Armitage 
start msfrpcd for you? If you didn't let armitage start msfrpcd for you (e.g., 
you had another tool do it, did it yourself) then this might be your problem.

2) What does it say in the console where you started armitage? Are there any 
errors?

I suspect this is an issue with your database. Armitage is connected to 
metasploit, it's trying to connect to your database. There used to be an issue 
where I wasn't displaying a db error properly (but this was in an older version 
of armitage--I assume you're using the version shipped with metasploit, if 
you're not--why?)

Make sure your database is started. If you installed metasploit, make sure you 
have a database startup script, as described in the manual:

http://www.fastandeasyhacking.com/manual#linux

Original comment by rsmu...@gmail.com on 6 Aug 2012 at 2:47

GoogleCodeExporter commented 9 years ago
1) Yes, I check "yes" and armitage start msfrpcd for me.
2) In the console no any errors show

I'm using armitage shipped with metasploit version.
My database is started with official script (ubuntu install create that for me).

I have already installed armitage with debian stable version and all work, but, 
in my case, I migrate to Ubuntu and armitage doesn't work. 

Actually msfconsole and msfgui work and I connect correctely to the database.
But armitage doesn't work

Have you another idea ? Thanks in advance.

Original comment by s...@white-hats.fr on 6 Aug 2012 at 4:06

GoogleCodeExporter commented 9 years ago
How are you starting Armitage? Some people do:

cd /opt/metasploit/msf3
./armitage

This is *wrong*. Don't do it. If you type:

armitage

This is correct. 

Armitage needs to find a database config file. Usually it's in: 
/opt/metasploit/config/database.yml. 

If for some reason armitage can't find it or read it, then armitage can't 
connect to the database for you.  This happens when your environment is setup 
wrong, you start Armitage wrong, or you're not root when you start armitage. 
Armitage must be run *as* root. 

You can try sudo armitage, but if that doesn't work... sudo /bin/bash and run 
armitage from there.

msfgui and msfconsole are different... they rely on the metasploit framework to 
connect to the database for them. 

Armitage connects to the database directly. This is where you're having trouble 
in the startup process.

Original comment by rsmu...@gmail.com on 6 Aug 2012 at 4:40

GoogleCodeExporter commented 9 years ago
yes sure I launch armitage with armitage command correctely.
And all parameters are correctly declared ($MSF_DATABASE_CONFIG)...

In fact I used as follow :
sudo su root (z shell)
and try armitage

I have tested too :
sudo /bin/bash
uid=0(root) gid=0(root) groups=0(root)
I redeclare MSF_DATABASE_CONFIG
and try armitage

and the same result...
I have installed metasploit from svn source, not by installer.
And I have declared symbolic link for armitage in /usr/local/sbin.

I am confused!

Original comment by s...@white-hats.fr on 6 Aug 2012 at 6:33

GoogleCodeExporter commented 9 years ago
I'm not confused. I do NOT provide support for manual Metasploit Framework 
installations. There is an alternative that works, use the installer.

If you want to install manually, that's fine. However, if something goes wrong, 
I can't help you. Why? I have no idea which steps you took, which dependencies 
you installed, etc.  It's really unfair to expect me to second guess my 
software when your environment could be anything.

Original comment by rsmu...@gmail.com on 6 Aug 2012 at 7:37