Re: [Video] Messing with Metasploit
yas same prob and yes its installed
can you help me ?
Re: [Video] Messing with Metasploit
Quote:
Originally Posted by
pheaneasphreak
Hi everyone. Yesterday i was trying to re-enact this scenario but when it comes to msfconsole i got the following error.
msf > db_create pheaneasphreak
Warning: The db_create command is deprecated, use db_connect instead.
The database and schema will be created automatically by db_connect. If db_connect fails
to create the database, create it manually with your DBMS' s administration tools.
createdb: could not connect to database postgres: could not connect to server: No such file or directory
Is the server running locally and accepting connections to Unix domain socket
"/var/run/postgresql/ .s.PGSQL.5432" ?
Error while running command db_create: Failed to connect to database: could not connect to server:
connection refused.
Is the server running on host "127.0.01" and accepting TCP/IP connections on port 5432?
What does that mean and how can i fix that? I am new to this Backtrack thing.Thanks in advance
pheaneasphreak
Quote:
Originally Posted by
kataibrengsek
Are you using backtrack? Which version?
I believe thats the error when you don't have the correct driver for the database installed.
What is the output when you try:
You can either change the driver to one you have install, or install it!
Code:
Postgres is the recommended database:
$ sudo apt-get install postgresql-8.4
$ sudo apt-get install rubygems libpq-dev
$ sudo gem install pg
Or for MySQL:
$ sudo apt-get install mysql-server
$ sudo apt-get install rubygems libmysqlclient-dev
$ sudo gem install mysql
Sqlite will work for basic tasks, but is no longer supported!
$ sudo apt-get install sqlite3
$ sudo apt-get install rubygems libsqlite3-dev
$ sudo gem install sqlite3-ruby
Source: Metasploit Framework - Install Ubuntu - Metasploit Redmine Interface
Quote:
Originally Posted by
sh0bhit
thanks for the video
Thanks for the thanks!
Quote:
Originally Posted by
viewtifuljoe
yas same prob and yes its installed
can you help me ?
What problem is that? The driver issue?
What is "its"? What installed?
Re: [Video] Messing with Metasploit
im using bactrack 4 r1
this my output on db_driver
msf > db_driver[*] Active Driver: postgresql[*] Available: postgresql, mysql, sqlite3
im trying to install the postgresql-8.4
but the error appeare like this
#sudo apt-get install postgresql-8.4
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package postgresql-8.4
how ever im trying to configure my self be stripping the "-"
and make it #sudo apt-get install postgresql 8.4
the system told that i've already have the newest postgresql version
hope u can help to sort out this problem
Re: [Video] Messing with Metasploit
Quote:
Originally Posted by
m1santrophy
im using bactrack 4 r1
this my output on db_driver
msf > db_driver[*] Active Driver: postgresql[*] Available: postgresql, mysql, sqlite3
im trying to install the postgresql-8.4
but the error appeare like this
#sudo apt-get install postgresql-8.4
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package postgresql-8.4
how ever im trying to configure my self be stripping the "-"
and make it #sudo apt-get install postgresql 8.4
the system told that i've already have the newest postgresql version
hope u can help to sort out this problem
Well... Im not sure what your problem is as "postgresql" is installed! You're also using it! :)
Code:
msf > db_driver
[*] Active Driver: postgresql[*] Available: postgresql, mysql, sqlite3
Plus when you try to install it again - it says that its installed! :confused:
Re: [Video] Messing with Metasploit
but...
the problems is i cant create the db..
seem it appear an error when i'm trying to create it...
Re: [Video] Messing with Metasploit
Quote:
Originally Posted by
m1santrophy
but...
the problems is i cant create the db..
seem it appear an error when i'm trying to create it...
What commands are you using?