Armitage Could Not Connect to Database
-
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.
-
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
-
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.
-
Originally Posted by Fetalerror
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.
-
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
-
Well zimmaro i've not come accross with java.socket problem before, can you explain how can i fix it.thanks
-
Originally Posted by Fetalerror
Well zimmaro i've not come accross with java.socket problem before, can you explain how can i fix it.thanks
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 replythis video""" explains"""the "creation" AUTOMATIC database in Metasploit-FOR-kali:
https://vimeo.com/124605765Last edited by zimmaro; 2015-04-10 at 10:28.
-
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
-
Originally Posted by Fetalerror
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
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.
-
Armitage Could Not Connect to Database
Source: https://forums.kali.org/showthread.php?25061-Help-armitage-not-connecting-to-database-in-kali
0 Response to "Armitage Could Not Connect to Database"
Post a Comment