Results 1 to 2 of 2

Thread: Metasploit Auto-Exploitation (ruby postgres plugin)

  1. #1
    Just burned his ISO
    Join Date
    Oct 2007
    Posts
    1

    Default Metasploit Auto-Exploitation (ruby postgres plugin)

    Hi,

    when I execute
    db_nmap -p 445 192.168.2.0/24
    I get the following:
    Error while running command db_nmap: FATAL C28000 Mno PostgreSQL user name specified in startup packet Fpostmaster.c L1528 RProcessStartupPacket

    db_create seems to work fine (tables are created)

    I'm not quite sure about the ruby-postgres plugin installation though as I get an error when I do this check :
    ruby -e 'require "rubygems"; gem "postgres";'
    c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:304:in `report_activate_error': Could
    not find RubyGem postgres (>= 0.0.0) (Gem::LoadError)
    from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:238:in `activate'
    from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:76:in `active_gem_with_o
    ptions'
    from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:50:in `gem'
    from -e:1

    Could you help if it's a database setting problem or something wrong with the ruby-postgres plugin installation ?

    Thanks for all suggestions

    Akos


    (the gem install ruby-postgres command's output seems ok :
    Successfully installed ruby-postgres-0.7.1.2006.04.06-mswin32
    but the gem install postgres command produces an error :

    Building native extensions. This could take a while...
    ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)
    ERROR: Failed to build gem native extension.

    ruby extconf.rb install postgres
    checking for cygwin32_socket() in wsock32.lib... no
    checking for socket() in socket.lib... no
    checking for gethostbyname() in inet.lib... no
    checking for gethostbyname() in nsl.lib... no
    checking for sys/un.h... no
    checking for socket()... no
    checking for cygwin32_socket()... no
    *** extconf.rb failed ***
    Could not create Makefile due to some reason, probably lack of
    necessary libraries and/or headers. Check the mkmf.log file for more
    details. You may need configuration options.)

  2. #2
    My life is this forum thorin's Avatar
    Join Date
    Jan 2010
    Posts
    2,629

    Default

    After your run db_create are you able to connect to and query the DB?

Posting Permissions

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