hemantmits / armitage

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

Armitage on MAC OS X Moutain Lion #143

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Never connected on DB
2. MSF_DATABASE _CONFIG ok
3. Modification of source code of armitage

What is the expected output? What do you see instead?
Armitage doesn't want to connected to database postgresql
I do modify little thing on you're source code of armitage.

1 : DB string in hardlink in scripts/preferences.sl => i had 127.0.0.1:5432/msf 
      more better for working
2 : JAVA graph package modify => i modify NetworkGraph.java with that

public BufferedImage getBufferedImage(Image img) {
            if (img == null) {
                return null;
            }
            int w = img.getWidth(null);
            int h = img.getHeight(null);
            // draw original image to thumbnail image object and 
            // scale it to the new size on-the-fly 
            BufferedImage bufimg = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB);
            Graphics2D g2 = bufimg.createGraphics();
            g2.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR);
            g2.drawImage(img, 0, 0, w, h, null);
            g2.dispose();
            return bufimg;
        }

        public BufferedImage loadImage(String image) {
            if (nodeImages.containsKey(image)) {
                return getBufferedImage((Image) nodeImages.get(image));
            }

            return super.loadImage(image);
        }
3 : Launch Armitage in Shell with 
sudo -E java -jar "armitage.jar"

What version of Metasploit are you using (type: svn info)? 
A git version with a last version

On which operating system? 

MAC OS X 10.8.4

Which database are you using?

postgresql-9.2.4

NOW ITS WORKS GREAT ----

Original issue reported on code.google.com by hossel...@gmail.com on 4 Jul 2013 at 1:17

Attachments:

GoogleCodeExporter commented 9 years ago
I don't really understand how NetworkGraph has any connection to the database. 
A diff file would help me see your changes better too.

Original comment by rsmu...@gmail.com on 5 Jan 2014 at 12:31