Katoolin kullanarak indirdiğim Metasploit Framework update yapmıyor!

Başlatan Speel, 05 Ekim 2016 - 20:54:39

« önceki - sonraki »

0 Üyeler ve 1 Ziyaretçi konuyu incelemekte.

Speel

Merhabalar açıklamada da yazdığım gibi sorun alıp duruyorum çıktısı şurada:

[*]
[*] Attempting to update the Metasploit Framework...
[*]

[*] Checking for updates via git
[*] Note: Updating from bleeding edge
HEAD is now at 55597d7 Land #7394, Gemify rex/exploitation and associated data files into rex-exploitation
Already on 'master'
Dalınız 'origin/master' ile güncel durumda.
Already up-to-date.
[*] Updating gems...
Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Resolving dependencies...
Using rake 11.3.0
Using i18n 0.7.0
Using json 1.8.3
Using minitest 5.9.1
Using thread_safe 0.3.5
Using builder 3.2.2
Using erubis 2.7.0
Using mini_portile2 2.1.0
Using pkg-config 1.1.7
Using rack 1.6.4
Using arel 6.0.3
Using addressable 2.4.0
Using ffi 1.9.14
Using contracts 0.14.0
Using gherkin 4.0.0
Using cucumber-wire 0.0.1
Using diff-lcs 1.2.5
Using multi_json 1.12.1
Using multi_test 0.1.2
Using rspec-support 3.5.0
Using thor 0.19.1
Using bcrypt 3.1.11
Using bit-struct 0.15.0
Using mime-types-data 3.2016.0521
Using coderay 1.1.1
Using docile 1.1.5
Using multipart-post 2.0.0
Using filesize 0.1.1
Using fivemat 1.3.2
Using rkelly-remix 0.0.6
Using metasm 1.0.2
Installing pg 0.19.0 with native extensions
Using pg_array_parser 0.0.9
Using rubyntlm 0.6.1
Using rubyzip 1.2.0
Using metasploit-payloads 1.1.19
Using metasploit_payloads-mettle 0.0.6
Using msgpack 1.0.0
Using nessus_rest 0.1.6
Using net-ssh 3.2.0
Using network_interface 0.0.1
Using openssl-ccm 1.2.1
Using openvas-omp 0.0.4
Installing pcaprub 0.12.4 with native extensions
Using patch_finder 1.0.2
Using rb-readline-r7 0.5.2.0
Using redcarpet 3.3.4
Using rex-text 0.2.1
Using rex-core 0.1.2
Using rex-struct2 0.1.0
Using rex-java 0.1.2
Using rex-registry 0.1.0
Using robots 0.10.1
Installing sqlite3 1.3.11 with native extensions
Using sshkey 1.8.0
Using windows_error 0.0.2
Using method_source 0.8.2
Using slop 3.6.0
Using simplecov-html 0.10.0
Using timecop 0.8.1
Using yard 0.9.5
Using bundler 1.13.2
Using tzinfo 1.2.2
Using nokogiri 1.6.8
Using rack-test 0.6.3
Using childprocess 0.5.9
Using cucumber-core 1.5.0
Using rspec-expectations 3.5.0
Using rspec-core 3.5.4
Using rspec-mocks 3.5.0
Using mime-types 3.1
Using faraday 0.9.2
Using jsobfu 0.4.1
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory:
/tmp/bundler20161005-6167-1985pm1pg-0.19.0/gems/pg-0.19.0/ext
/usr/bin/ruby2.3 -r ./siteconf20161005-6167-1qla5vy.rb extconf.rb
checking for pg_config... yes
Using config values from /usr/bin/pg_config
You need to install postgresql-server-dev-X.Y for building a server-side
extension or libpq-dev for building a client-side application.
You need to install postgresql-server-dev-X.Y for building a server-side
extension or libpq-dev for building a client-side application.
checking for libpq-fe.h... no
Can't find the 'libpq-fe.h header
*** 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=/usr/bin/$(RUBY_BASE_NAME)2.3
--with-pg
--without-pg
--enable-windows-cross
--disable-windows-cross
--with-pg-config
--without-pg-config
--with-pg_config
--without-pg_config
--with-pg-dir
--without-pg-dir
--with-pg-include
--without-pg-include=${pg-dir}/include
--with-pg-lib
--without-pg-lib=${pg-dir}/lib

To see why this extension failed to compile, please check the mkmf.log which can
be found here:

/tmp/bundler20161005-6167-1985pm1pg-0.19.0/extensions/x86_64-linux/2.3.0/pg-0.19.0/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in
/tmp/bundler20161005-6167-1985pm1pg-0.19.0/gems/pg-0.19.0 for inspection.
Results logged to
/tmp/bundler20161005-6167-1985pm1pg-0.19.0/extensions/x86_64-linux/2.3.0/pg-0.19.0/gem_make.out

An error occurred while installing pg (0.19.0), and Bundler cannot
continue.
Make sure that `gem install pg -v '0.19.0'` succeeds before bundling.


gem install pg -'0.19.0' komutunu girince de şöyle bir hata veriyor:

Building native extensions.  This could take a while...
ERROR:  Error installing pg:
ERROR: Failed to build gem native extension.

    current directory: /var/lib/gems/2.3.0/gems/pg-0.19.0/ext
/usr/bin/ruby2.3 -r ./siteconf20161005-6373-d33li2.rb extconf.rb
checking for pg_config... yes
Using config values from /usr/bin/pg_config
You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side application.
You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side application.
checking for libpq-fe.h... no
Can't find the 'libpq-fe.h header
*** 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=/usr/bin/$(RUBY_BASE_NAME)2.3
--with-pg
--without-pg
--enable-windows-cross
--disable-windows-cross
--with-pg-config
--without-pg-config
--with-pg_config
--without-pg_config
--with-pg-dir
--without-pg-dir
--with-pg-include
--without-pg-include=${pg-dir}/include
--with-pg-lib
--without-pg-lib=${pg-dir}/lib

To see why this extension failed to compile, please check the mkmf.log which can be found here:

  /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/pg-0.19.0/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /var/lib/gems/2.3.0/gems/pg-0.19.0 for inspection.
Results logged to /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/pg-0.19.0/gem_make.out


loguna bakınca beni başka bir loga yönlendiriyor:
current directory: /var/lib/gems/2.3.0/gems/pg-0.19.0/ext
/usr/bin/ruby2.3 -r ./siteconf20161005-6373-d33li2.rb extconf.rb
checking for pg_config... yes
Using config values from /usr/bin/pg_config
You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side application.
You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side application.
checking for libpq-fe.h... no
Can't find the 'libpq-fe.h header
*** 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=/usr/bin/$(RUBY_BASE_NAME)2.3
--with-pg
--without-pg
--enable-windows-cross
--disable-windows-cross
--with-pg-config
--without-pg-config
--with-pg_config
--without-pg_config
--with-pg-dir
--without-pg-dir
--with-pg-include
--without-pg-include=${pg-dir}/include
--with-pg-lib
--without-pg-lib=${pg-dir}/lib

To see why this extension failed to compile, please check the mkmf.log which can be found here:

  /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/pg-0.19.0/mkmf.log

extconf failed, exit code 1


/var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/pg-0.19.0/mkmf.log logu ise şöyle:
"gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.3.0 -I/usr/include/ruby-2.3.0/ruby/backward -I/usr/include/ruby-2.3.0 -I. -Wdate-time -D_FORTIFY_SOURCE=2   -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC conftest.c  -L. -L/usr/lib/x86_64-linux-gnu -L. -Wl,-z,relro -Wl,-z,now -fstack-protector -rdynamic -Wl,-export-dynamic     -lruby-2.3  -lpthread -lgmp -ldl -lcrypt -lm   -lc"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5:   return 0;
6: }
/* end */

"gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.3.0 -I/usr/include/ruby-2.3.0/ruby/backward -I/usr/include/ruby-2.3.0 -I. -Wdate-time -D_FORTIFY_SOURCE=2   -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC conftest.c  -L. -L/usr/lib/x86_64-linux-gnu -L. -Wl,-z,relro -Wl,-z,now -fstack-protector -rdynamic -Wl,-export-dynamic     -lruby-2.3  -Wl,-rpath, -lpthread -lgmp -ldl -lcrypt -lm   -lc"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main() {return 0;}
/* end */

find_header: checking for libpq-fe.h... -------------------- no

"gcc -E -I/usr/include/x86_64-linux-gnu/ruby-2.3.0 -I/usr/include/ruby-2.3.0/ruby/backward -I/usr/include/ruby-2.3.0 -I. -Wdate-time -D_FORTIFY_SOURCE=2   -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC  conftest.c -o conftest.i"
conftest.c:3:22: fatal error: libpq-fe.h: Böyle bir dosya ya da dizin yok
compilation terminated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <libpq-fe.h>
/* end */

--------------------


anladığım kadarıyla libpq-fe.h kütüphanesi eksik nasıl yükleyebilirim?

plazma


Source

sudo apt-get install libpq-dev

Yukarıdaki komutu deneyin.Kaatolin kullanmak yerine metasploiti sitesinden indirip kurabilirsiniz alternatif olarak eklemek istedim.

Speel

metasploit kullanma amacım denemek network öğrenmek kesinlikle lamerce bi amacım yok.

sudo apt-get install libpq-dev çıktısı:
Aşağıdaki paketler karşılanmamış bağımlılıklara sahip:
libpq-dev : Bağımlılıklar: krb5-multidev ama kurulmayacak
E: Sorunlar giderilemedi, tutulan bozuk paketleriniz var.

uname -a çıktısı :
Linux tarik-K55VJ 4.4.0-38-generic #57-Ubuntu SMP Tue Sep 6 15:42:33 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux