Open GoogleCodeExporter opened 9 years ago
I think the problem is that your home directory is on the E:\ drive and not the
C:\ drive. Not really a Windows 7 bug. This is just my guess. Nothing to do
with Windows 7. It looks like the exception is caused when loading the
preferences file. No issue. I'll fix this and you'll be on your way.
Original comment by rsmu...@gmail.com
on 4 Feb 2011 at 1:20
By "home directory", do you mean my "My Documents" directory, or the directory
in which metasploit is installed (or something else)?
Metasploit is installed in C:\framework
And My Documents is in E:\My Documents
Original comment by srij...@gmail.com
on 5 Feb 2011 at 7:20
The My Documents directory. Although this has zero to do with my documents and
everything to do with what Windows sees as your home directory (e.g.,
c:\documents and settings\your username\). In this case, it's E:\.
I see the bug in my code. I'll fix it when I get a chance. You could install
Metasploit in the E:\framework directory. That might fix it.
Or... run a VM with BackTrack. Using Linux and Armitage is the best and most
tested user experience.
Original comment by rsmu...@gmail.com
on 5 Feb 2011 at 9:45
Installing in E:\ didn't fix it.
But I am using it with BackTrack now.
Thanks.
Original comment by srij...@gmail.com
on 5 Feb 2011 at 9:49
I took a look at this and I'm unable to reproduce the problem, meaning my
understanding of it was wrong. It appears this is happening when the
preferences are saved but the code I have to do this is dead simple.
I've added a sanity check to make sure the parent directory of the preferences
file exists before saving it but this is a band-aid and not a solution.
Did you get the connect dialog before this error happened or does this happen
straight away when you start Armitage?
Original comment by rsmu...@gmail.com
on 13 Feb 2011 at 8:36
I got the connect dialog first. When I clicked on connect, it gave the error.
Original comment by srij...@gmail.com
on 13 Feb 2011 at 8:44
Similar behaviour here. Tested in two machines, with Windows XP SP3 (one of
them without any AV/fw). I also followed install instructions.
I run armitage.bat, then "start msf", begin connect timeouts (this seems
normal), then I get "Using database driver postgresql", click "ok" and....
nothing more... I can see rubyw/javaw proccesses with pslist but nor Armitage
neither MSF console really appear.
More data:
- install dir on machine #1: "c:\archivos de programa\framework"
- install dir on machine #2: "c:\program files\metasploit"
- home is always at C drive so it seems the bug is not "E:" related :)
- MSF latest stable version (3.5.2)
- Armitage latest (armitage022211.zip)
Finally I modified C:\Archivos de programa\framework\msf3\armitage and added
"-d":
...
exec "javaw", "-jar", "#{File.dirname(msfbase)}/data/armitage/armitage.jar", "-d", *ARGV
...
I've attached a debug file from one of the machines...
PS: To be honest, this issue seems very important in Windows. Are you sure
Armitage is tested on Windows? Anybody using it on this OS?
Hope it helps.
-Román
Original comment by roman.me...@gmail.com
on 22 Feb 2011 at 11:43
Attachments:
@Roman The issue you're describing is not related to this one. But I can
explain what's happening. Metasploit 3.5.2 changed the install process from
3.5.1. The Metasploit console no longer loads postgres automatically and hence
the install step that asks you to run it, no longer initializes the database
tables. When you connect Armitage for the first time, the database is
initialized and the print out of this process is sent to STDERR. Armitage does
not consume STDERR. This lack of consumed bytes causes the buffer to fill up
when all this data is printed and eventually msfrpcd blocks waiting for the
bytes in the buffer to be consumed. This only happens on the first run. If you
try running Armitage again, it'll start up just fine. I'll fix this issue in
the next release.
"Are you sure Armitage is tested on Windows?"
Yes.
Original comment by rsmu...@gmail.com
on 23 Feb 2011 at 12:24
I retried several times with same (bad) result/bevaviour, ie. Armitage never
starts. I suppose some manual fix is required... Any help is appreciated.
Original comment by roman.me...@gmail.com
on 23 Feb 2011 at 6:30
Original issue reported on code.google.com by
srij...@gmail.com
on 4 Feb 2011 at 10:50