Results 1 to 10 of 10

Thread: Help,armitage not connecting to database in kali

  1. #1
    Join Date
    2015-Apr
    Posts
    17

    Unhappy Help,armitage not connecting to database in kali

    I dont know whats going on but cant run armitage in kali, first it was showing error about not connecting to database (as i updated my metasploit).
    so i changed the database.yml file with the one in my backtrack iso(as i dont have kali iso would need to download) but now it get stuck in middle while loading.
    can anyone upload the kali default database.yml file or atleast tell me any link.

  2. #2
    Join Date
    2013-Mar
    Location
    milano
    Posts
    301
    hi
    if i understand your question & this photo can be a ""help"":
    http://it.tinypic.com/view.php?pic=2...8#.VSWELvmsU6w
    click on to zoom

  3. #3
    Join Date
    2015-Apr
    Posts
    17
    Yes your link helped me alot but it still shows problem while running, here im giving a link for screenshot of my problem:

    http://postimg.org/image/5jv1ue3p3/fde84644/
    Last edited by Fetalerror; 2015-04-09 at 17:03.

  4. #4
    Join Date
    2013-Mar
    Location
    milano
    Posts
    301
    Quote Originally Posted by Fetalerror View Post
    Yes your link helped me alot but it still shows problem while running, here im giving a link for screenshot of my problem:

    http://http://postimg.org/image/5jv1ue3p3/fde84644/
    ri -hi :-)
    i THINK(but i'm not secure) your problem is related to connection of """""java.socket""""" ....default is in localhost on port 55553(msgrpc)

    http://postimg.org/image/6z1cvdg6b/full/

    PS:your right link is
    http://postimg.org/image/5jv1ue3p3/
    Last edited by zimmaro; 2015-04-09 at 11:19.

  5. #5
    Join Date
    2015-Apr
    Posts
    17
    Thanks i'll keep in mind about port numbers.
    but i've checked that and it do runs but get stuck in the middle and dont load for a long time.
    Let me tell you what i did and how the problem started:
    I fully installed the kali.iso on a usb drive. i logged in and run "msfconsole". The metasploit console opened but didn't connect to database. And surprising thing was that when i moved to directory "opt/metasploit/apps/pro/ui/config" there was no database.yml file by default, i only found "database.yml.example", so somehow i mannualy made a database.yml file. Then on typing db_status it said something like "postgresql selected, no connection". so i mannualy started service postgresql, then service metasploit, stoped metasploit. Then on again running "msfconsole" it worked then i did "db_rebuild_cache" and it created a username and password in the database.yml, anyways after that metasploit was running fine but the real problem got with armitage and as far as i think the problem is with the password in the database.yml file.

    As in the file the password is in a hash form or encrypted and in the armitage window we need to enter the word for that password and that i dont know and also dont know what hashing algorithm is used to generate that password hash.
    As an example you can see the hash(hidden under red lines) in the database file in the link:http://postimg.org/image/6z1cvdg6b/full/
    Can any one tell how to get that password or any other solution.Thanks

  6. #6
    Join Date
    2015-Apr
    Posts
    17
    Well zimmaro i've not come accross with java.socket problem before, can you explain how can i fix it.thanks

  7. #7
    Join Date
    2013-Mar
    Location
    milano
    Posts
    301
    Quote Originally Posted by Fetalerror View Post
    Well zimmaro i've not come accross with java.socket problem before, can you explain how can i fix it.thanks
    hi
    are not quite prepared to give you a proper solution !!
    Your problem may be "" bound "" to database.yml, upgrade Metasploit in kali upgrading via reposistory !!
    creating a "new"postgreql-database PERHAPS solve (as was done in BT5 for mysql) "" status in msfconsole "" ...but armitage do not work !! ????(try to reinstall)???

    for my little experience:
    make a CLEAN install !!! or wait other expert-members to reply

    this video""" explains"""the "creation" AUTOMATIC database in Metasploit-FOR-kali:
    https://vimeo.com/124605765
    Last edited by zimmaro; 2015-04-10 at 10:28.

  8. #8
    Join Date
    2015-Apr
    Posts
    17
    video ain't running, any other directions
    Also i've tried to reinstall armitage several times but no success.
    But the idea of creating a whole new database is good and might work, can you point me any tuts or walkthroughs .thanks

  9. #9
    Join Date
    2013-Mar
    Location
    milano
    Posts
    301
    Quote Originally Posted by Fetalerror View Post
    video ain't running, any other directions
    Also i've tried to reinstall armitage several times but no success.
    But the idea of creating a whole new database is good and might work, can you point me any tuts or walkthroughs .thanks
    hi
    A)first link video worked-here
    B)i made a workaround & my tests worked-fine
    FIRST part:
    -uninstall && REinstall CORRECTLY matasploit/armitage & some dipendencies in kali 1.1.0a
    & automatic-default-script RECREATE a new database.yml(worked in msf &armitage)
    SECOND part around 7 minute:
    -create a new database(db) in postgresql && ""MODIFICATION-OLD"" && CONNECTED-IT to msf && armitage
    good-luck ...for ME totaly-test-worked && my g0at-brain is limited-here!!

    https://vimeo.com/124689095

    bye!!
    Last edited by zimmaro; 2015-04-11 at 10:44.

  10. #10
    Join Date
    2015-Apr
    Posts
    17
    thanks, its working now

Similar Threads

  1. kali database help!!!
    By highrider187 in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2020-09-30, 22:35
  2. Kali issue database
    By pentest09 in forum TroubleShooting Archive
    Replies: 3
    Last Post: 2013-05-04, 13:02

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •