Skip to content

msfupdate/ msfconsole failed to start after clone with github #24

@gunadat

Description

@gunadat

root@bt:~# msfupdate
[]
[
] Attempting to update the Metasploit Framework...
[*]

fatal: 'upstream' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
[] Attempting to add remote 'upstream' to your local git repository.
[
] Added remote 'upstream' to your local git repository.
HEAD is now at 99b4620 Do final cleanup for sap_configservlet_exec_noauth
Already on 'master'
remote: Counting objects: 197, done.
remote: Compressing objects: 100% (88/88), done.
remote: Total 161 (delta 124), reused 108 (delta 71)
Receiving objects: 100% (161/161), 24.55 KiB, done.
Resolving deltas: 100% (124/124), completed with 19 local objects.
From git://github.com/rapid7/metasploit-framework

  • [new branch] Datacut-master -> upstream/Datacut-master

  • [new branch] creds-counter-cache -> upstream/creds-counter-cache

  • [new branch] feature/railgun/error_msg -> upstream/feature/railgun/error_msg

  • [new branch] master -> upstream/master

  • [new branch] release -> upstream/release

  • [new branch] unstable -> upstream/unstable
    Updating 99b4620..6821c36
    Fast-forward
    Gemfile | 2 +-
    Gemfile.lock | 4 +-
    .../gather/apple_safari_webarchive_uxss.rb | 100 +++++---
    .../unix/webapp/php_wordpress_total_cache.rb | 249 ++++++++++++++++++++
    spec/lib/rex/post/meterpreter/packet_spec.rb | 246 ++++++++++----------
    spec/lib/rex/proto/http/client_request_spec.rb | 8 +-
    6 files changed, 442 insertions(+), 167 deletions(-)
    create mode 100644 modules/exploits/unix/webapp/php_wordpress_total_cache.rb
    [*] Updating gems...
    Fetching gem metadata from http://rubygems.org/.........
    Fetching gem metadata from http://rubygems.org/..
    Using rake (10.0.4)
    Using i18n (0.6.1)
    Using multi_json (1.0.4)
    Using activesupport (3.2.13)
    Using builder (3.0.4)
    Using activemodel (3.2.13)
    Using arel (3.0.2)
    Using tzinfo (0.3.37)
    Using activerecord (3.2.13)
    Using database_cleaner (0.9.1)
    Using diff-lcs (1.2.2)
    Using factory_girl (4.2.0)
    Using json (1.7.7)
    Installing pg (0.15.0) with native extensions
    Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

    /opt/metasploit/ruby/bin/ruby extconf.rb 
    

    checking for pg_config... yes
    Using config values from /opt/metasploit/postgresql/bin/pg_config
    checking for libpq-fe.h... *** 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.
    Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/opt/metasploit/ruby/bin/ruby
    --with-pg
    --without-pg
    --with-pg-dir
    --without-pg-dir
    --with-pg-include
    --without-pg-include=${pg-dir}/include
    --with-pg-lib
    --without-pg-lib=${pg-dir}/lib
    --with-pg-config
    --without-pg-config
    --with-pg_config
    --without-pg_config
    /opt/metasploit/ruby/lib/1.9.1/mkmf.rb:381:in try_do': The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first. from /opt/metasploit/ruby/lib/ruby/1.9.1/mkmf.rb:506:intry_cpp'
    from /opt/metasploit/ruby/lib/ruby/1.9.1/mkmf.rb:970:in block in find_header' from /opt/metasploit/ruby/lib/ruby/1.9.1/mkmf.rb:790:inblock in checking_for'
    from /opt/metasploit/ruby/lib/ruby/1.9.1/mkmf.rb:284:in block (2 levels) in postpone' from /opt/metasploit/ruby/lib/ruby/1.9.1/mkmf.rb:254:inopen'
    from /opt/metasploit/ruby/lib/ruby/1.9.1/mkmf.rb:284:in block in postpone' from /opt/metasploit/ruby/lib/ruby/1.9.1/mkmf.rb:254:inopen'
    from /opt/metasploit/ruby/lib/ruby/1.9.1/mkmf.rb:280:in postpone' from /opt/metasploit/ruby/lib/ruby/1.9.1/mkmf.rb:789:inchecking_for'
    from /opt/metasploit/ruby/lib/ruby/1.9.1/mkmf.rb:969:in find_header' from extconf.rb:43:in

    '

Gem files will remain installed in /opt/metasploit/ruby/lib/ruby/gems/1.9.1/gems/pg-0.15.0 for inspection.
Results logged to /opt/metasploit/ruby/lib/ruby/gems/1.9.1/gems/pg-0.15.0/ext/gem_make.out
An error occured while installing pg (0.15.0), and Bundler cannot continue.
Make sure that gem install pg -v '0.15.0' succeeds before bundling.

am using windows xp as host machine and black track 5 r3 as guest

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions