Page 3 of 6 FirstFirst 12345 ... LastLast
Results 21 to 30 of 54

Thread: Metasploit db_autopwn using PostgreSQL

  1. #21
    Administrator sickness's Avatar
    Join Date
    Jan 2010
    Location
    Behind the screen.
    Posts
    2,921

    Default Re: Metasploit db_autopwn using PostgreSQL

    Quote Originally Posted by 8084FETT View Post
    Sorry for post an image, but i don't know how copy text from the fast track terminal (no scroll bar)

    It's this ok?

    http://i46.tinypic.com/30az5hi.jpg
    Create the damn "root" user for it to work.
    Back|track giving machine guns to monkeys since 2007 !

    Do not read the Wiki, most your questions will not be answered there !
    Do not take a look at the: Forum Rules !

  2. #22
    Just burned his ISO
    Join Date
    Jun 2010
    Posts
    6

    Default Re: Metasploit db_autopwn using PostgreSQL

    Quote Originally Posted by sickness View Post
    Create the damn "root" user for it to work.
    How?

    Thanks!

  3. #23
    Member Krytical's Avatar
    Join Date
    Mar 2010
    Posts
    117

    Default Re: Metasploit db_autopwn using PostgreSQL

    just like you created the user "postgres" in this tutorial, see its people like you that force the senior members to respond unkindly... you don't read the thread you are posting in and even TRY to connect the dots yourself...

  4. #24
    Just burned his ISO
    Join Date
    Jun 2010
    Posts
    6

    Default Re: Metasploit db_autopwn using PostgreSQL

    whatever...

    This is better explication:

    to create a first user in kubuntu/ubuntu linux, type the following:
    ~$ sudo su postgres -c createuser *USERNAME*

    Then create a db:
    ~$ sudo su postgres -c createdb *DBNAME*

    Then create a password for the user by connecting using psql:
    ~$ sudo su postgres -c psql *DBNAME*

    Then alter the password:
    =#ALTER USER *username* WITH PASSWORD ‘*password*‘;
    =#\q

    And you have a user for apps like django, per se.

  5. #25
    Just burned his ISO
    Join Date
    Jun 2010
    Posts
    7

    Default

    tried
    Code:
    ALTER USER postgres WITH PASSWORD 'your password';
    
                                   \q
    after \q I get the error "could not save history to file "/var/lib.postgresql/.psql_history": Permission denied"

    Any ideas?

    okay I created the file .psql_history and set the permissions to write - is that what I'm supposed to do?

    I followed the instructions and when I run autopwn I get the error:

    Code:
    dropdb: could not connect to database postgres: FATAL: role "root" does not exist
    Is this normal?

    What's not exactly clear to me is - is the code I'm entering into msf permanent or do I have to enter it everytime I want to run msf?

    If I do have to enter it every time how do I run fast track with the additional code?

    Thanks for the help.
    Last edited by balding_parrot; 07-01-2010 at 05:37 AM.

  6. #26
    Administrator sickness's Avatar
    Join Date
    Jan 2010
    Location
    Behind the screen.
    Posts
    2,921

    Default Re: Metasploit db_autopwn using PostgreSQL

    Quote Originally Posted by fungi View Post
    tried
    Code:
    ALTER USER postgres WITH PASSWORD 'your password';
    
                                   \q
    after \q I get the error "could not save history to file "/var/lib.postgresql/.psql_history": Permission denied"

    Any ideas?
    Just leave it that way ... and move on it will work.
    Back|track giving machine guns to monkeys since 2007 !

    Do not read the Wiki, most your questions will not be answered there !
    Do not take a look at the: Forum Rules !

  7. #27
    Just burned his ISO
    Join Date
    Jun 2010
    Posts
    7

    Default Re: Metasploit db_autopwn using PostgreSQL

    Quote Originally Posted by sickness View Post
    Just leave it that way ... and move on it will work.
    Okay what about...

    Code:
    dropdb: could not connect to database postgres: FATAL: role "root" does not exist
    I have the user postgres and am logged in with root?
    Last edited by fungi; 07-01-2010 at 08:49 PM.

  8. #28
    Administrator sickness's Avatar
    Join Date
    Jan 2010
    Location
    Behind the screen.
    Posts
    2,921

    Default Re: Metasploit db_autopwn using PostgreSQL

    Quote Originally Posted by fungi View Post
    Okay what about...

    Code:
    dropdb: could not connect to database postgres: FATAL: role "root" does not exist
    I have the user postgres and am logged in with root?
    Why woun't you read my tutorial ? it clearly states that if you want to connect as root you need to create the user and the default login goes as the user "postgres" ...
    Back|track giving machine guns to monkeys since 2007 !

    Do not read the Wiki, most your questions will not be answered there !
    Do not take a look at the: Forum Rules !

  9. #29
    Just burned his ISO
    Join Date
    Jun 2010
    Posts
    7

    Default Re: Metasploit db_autopwn using PostgreSQL

    Okay I'm not following...

    I've read your tutorial many times. Maybe you can help clarify.

    What I'm understanding from your post is that I have to be logged in as postgres when running msf.

    So how can I set that as the default when starting msf? Like running msf from fast-track?

  10. #30
    Administrator sickness's Avatar
    Join Date
    Jan 2010
    Location
    Behind the screen.
    Posts
    2,921

    Default Re: Metasploit db_autopwn using PostgreSQL

    Quote Originally Posted by fungi View Post
    Okay I'm not following...

    I've read your tutorial many times. Maybe you can help clarify.

    What I'm understanding from your post is that I have to be logged in as postgres when running msf.

    So how can I set that as the default when starting msf? Like running msf from fast-track?
    Dude seriously ... can't you search google ?

    Re: psql: FATAL: user "root" does not exist createdb:

    Code:
    execute these as the postgres user:
    
    su - postgres
    
    One option is to create a super-user with something like:
    
    postgres$ createuser -d -a -P jeoff
    
    then:
    
    jeoff$ createdb ibmadb
    Where do you guys even come from ?
    Last edited by sickness; 07-02-2010 at 08:25 PM.
    Back|track giving machine guns to monkeys since 2007 !

    Do not read the Wiki, most your questions will not be answered there !
    Do not take a look at the: Forum Rules !

Page 3 of 6 FirstFirst 12345 ... LastLast

Similar Threads

  1. Nexpose Postgresql error
    By WolverineOD in forum Beginners Forum
    Replies: 1
    Last Post: 05-02-2010, 04:45 PM
  2. apt-get upgrade: Fehler bzgl postgresql-8.3
    By cleguevara in forum Software support
    Replies: 4
    Last Post: 01-13-2010, 08:55 AM
  3. errore: postgresql-8.3
    By xanders in forum Supporto Software
    Replies: 10
    Last Post: 11-21-2009, 09:34 AM
  4. Error with Postgresql after recent dist-upgrade
    By imported_davehardy20 in forum OLD BackTrack 4 Bugs and Fixes
    Replies: 15
    Last Post: 11-20-2009, 10:23 AM

Posting Permissions

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