2013-12-14 4 views
2

metasploit을 설치하려고합니다. 나는 번들을 설치하고 이것을 얻는다. 나는 그것을 얻지 못했다. 나는 모든 것을 시도했다. ThinkCentre Edge92z Touchscreen 컴퓨터에서 Windows 7 X64를 사용하고 있습니다. 내가 devkit을 설치하고 루비 2.0.0 x64 버전. 라이브러리 및 헤더 파일의 libpcap 라이브러리 -
-----------------
libcap-(STABLE)을 :이 설치 한 경우metasploit을 설치하려고 시도합니다.

c:\Users\Flip\Downloads\metasploit-framework-master>gem install network_interfac 
e -v '0.0.1' --platform=ruby 
Building native extensions. This could take a while... 
ERROR: Error installing network_interface: 
     ERROR: Failed to build gem native extension. 

    C:/Users/Flip/Downloads/metasploit-framework-master/ruby/bin/ruby.exe extcon 
f.rb 

[*] Running che`enter code here`cks for netifaces code... 
[*] Warning : this platform as not been tested 
checking for getifaddrs()... no 
checking for getnameinfo()... yes 
checking for SIOCGIFCONF in sys/types.h,sys/socket.h,sys/ioctl.h,net/if.h,netine 
t/in.h,arpa/inet.h... no 
checking for SIOCGSIZIFCONF in sys/types.h,sys/socket.h,sys/ioctl.h,net/if.h,net 
inet/in.h,arpa/inet.h... no 
checking for SIOCGIFHWADDR in sys/types.h,sys/socket.h,sys/ioctl.h,net/if.h,neti 
net/in.h,arpa/inet.h... no 
checking for SIOCGIFADDR in sys/types.h,sys/socket.h,sys/ioctl.h,net/if.h,netine 
t/in.h,arpa/inet.h... no 
checking for SIOCGIFFLAGS in sys/types.h,sys/socket.h,sys/ioctl.h,net/if.h,netin 
et/in.h,arpa/inet.h... no 
checking for SIOCGIFDSTADDR in sys/types.h,sys/socket.h,sys/ioctl.h,net/if.h,net 
inet/in.h,arpa/inet.h... no 
checking for SIOCGIFBRDADDR in sys/types.h,sys/socket.h,sys/ioctl.h,net/if.h,net 
inet/in.h,arpa/inet.h... no 
checking for SIOCGIFNETMASK in sys/types.h,sys/socket.h,sys/ioctl.h,net/if.h,net 
inet/in.h,arpa/inet.h... no 
checking for SIOCGLIFNUM in sys/types.h,sys/socket.h,sys/ioctl.h,net/if.h,netine 
t/in.h,arpa/inet.h... no 
checking for SIOCGLIFCONF in sys/types.h,sys/socket.h,sys/ioctl.h,net/if.h,netin 
et/in.h,arpa/inet.h... no 
checking for SIOCGLIFFLAGS in sys/types.h,sys/socket.h,sys/ioctl.h,net/if.h,neti 
net/in.h,arpa/inet.h... no 
checking for net/if_dl.h... no 
checking for netash/ash.h... no 
checking for netatalk/at.h... no 
checking for netax25/ax25.h... no 
checking for neteconet/ec.h... no 
checking for netipx/ipx.h... no 
checking for netpacket/packet.h... no 
checking for netrose/rose.h... no 
checking for struct sockaddr.sa_len in sys/types.h,sys/socket.h,net/if.h... no 
checking for struct sockaddr_at in sys/types.h,sys/socket.h,sys/un.h,net/if.h,ne 
tinet/in.h... no 
checking for struct sockaddr_ax25 in sys/types.h,sys/socket.h,sys/un.h,net/if.h, 
netinet/in.h... no 
checking for struct sockaddr_dl in sys/types.h,sys/socket.h,sys/un.h,net/if.h,ne 
tinet/in.h... no 
checking for struct sockaddr_eon in sys/types.h,sys/socket.h,sys/un.h,net/if.h,n 
etinet/in.h... no 
checking for struct sockaddr_in in sys/types.h,sys/socket.h,sys/un.h,net/if.h,ne 
tinet/in.h... no 
checking for struct sockaddr_in6 in sys/types.h,sys/socket.h,sys/un.h,net/if.h,n 
etinet/in.h... no 
checking for struct sockaddr_inarp in sys/types.h,sys/socket.h,sys/un.h,net/if.h 
,netinet/in.h... no 
checking for struct sockaddr_ipx in sys/types.h,sys/socket.h,sys/un.h,net/if.h,n 
etinet/in.h... no 
checking for struct sockaddr_iso in sys/types.h,sys/socket.h,sys/un.h,net/if.h,n 
etinet/in.h... no 
checking for struct sockaddr_ns in sys/types.h,sys/socket.h,sys/un.h,net/if.h,ne 
tinet/in.h... no 
checking for struct sockaddr_un in sys/types.h,sys/socket.h,sys/un.h,net/if.h,ne 
tinet/in.h... no 
checking for struct sockaddr_x25 in sys/types.h,sys/socket.h,sys/un.h,net/if.h,n 
etinet/in.h... no 
checking for struct sockaddr_rose in sys/types.h,sys/socket.h,sys/un.h,net/if.h, 
netinet/in.h... no 
checking for struct sockaddr_ash in sys/types.h,sys/socket.h,sys/un.h,net/if.h,n 
etinet/in.h... no 
checking for struct sockaddr_ec in sys/types.h,sys/socket.h,sys/un.h,net/if.h,ne 
tinet/in.h... no 
checking for struct sockaddr_ll in sys/types.h,sys/socket.h,sys/un.h,net/if.h,ne 
tinet/in.h... no 
checking for struct sockaddr_atmpvc in sys/types.h,sys/socket.h,sys/un.h,net/if. 
h,netinet/in.h... no 
checking for struct sockaddr_atmsvc in sys/types.h,sys/socket.h,sys/un.h,net/if. 
h,netinet/in.h... no 
checking for struct sockaddr_dn in sys/types.h,sys/socket.h,sys/un.h,net/if.h,ne 
tinet/in.h... no 
checking for struct sockaddr_irda in sys/types.h,sys/socket.h,sys/un.h,net/if.h, 
netinet/in.h... no 
checking for struct sockaddr_llc in sys/types.h,sys/socket.h,sys/un.h,net/if.h,n 
etinet/in.h... no 
creating Makefile 

make "DESTDIR=" 
generating network_interface_ext-x64-mingw32.def 
compiling netifaces.c 
netifaces.c: In function 'rbnetifaces_s_interface_info': 
netifaces.c:794:11: warning: pointer targets in passing argument 1 of 'strlen' d 
iffer in signedness [-Wpointer-sign] 
In file included from c:\rubydevkit\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.7. 
2/../../../../x86_64-w64-mingw32/include/winnt.h:1446:0, 
       from c:\rubydevkit\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.7. 
2/../../../../x86_64-w64-mingw32/include/windef.h:137, 
       from c:\rubydevkit\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.7. 
2/../../../../x86_64-w64-mingw32/include/windows.h:59, 
       from c:\rubydevkit\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.7. 
2/../../../../x86_64-w64-mingw32/include/winsock2.h:23, 
       from c:/Users/Flip/Downloads/metasploit-framework-master/ruby/i 
nclude/ruby-2.0.0/ruby/win32.h:40, 
       from c:/Users/Flip/Downloads/metasploit-framework-master/ruby/i 
nclude/ruby-2.0.0/ruby/defines.h:153, 
       from c:/Users/Flip/Downloads/metasploit-framework-master/ruby/i 
nclude/ruby-2.0.0/ruby/ruby.h:70, 
       from c:/Users/Flip/Downloads/metasploit-framework-master/ruby/i 
nclude/ruby-2.0.0/ruby.h:33, 
       from netifaces.c:1: 
c:\rubydevkit\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w 
64-mingw32/include/intrin.h:434:5: note: expected 'const char *' but argument is 
of type 'LPBYTE' 
netifaces.c:794:11: warning: pointer targets in passing argument 1 of 'rb_str_ne 
w' differ in signedness [-Wpointer-sign] 
In file included from c:/Users/Flip/Downloads/metasploit-framework-master/ruby/i 
nclude/ruby-2.0.0/ruby/ruby.h:1568:0, 
       from c:/Users/Flip/Downloads/metasploit-framework-master/ruby/i 
nclude/ruby-2.0.0/ruby.h:33, 
       from netifaces.c:1: 
c:/Users/Flip/Downloads/metasploit-framework-master/ruby/include/ruby-2.0.0/ruby 
/intern.h:672:7: note: expected 'const char *' but argument is of type 'LPBYTE' 
netifaces.c:794:11: warning: pointer targets in passing argument 1 of 'rb_str_ne 
w_cstr' differ in signedness [-Wpointer-sign] 
In file included from c:/Users/Flip/Downloads/metasploit-framework-master/ruby/i 
nclude/ruby-2.0.0/ruby/ruby.h:1568:0, 
       from c:/Users/Flip/Downloads/metasploit-framework-master/ruby/i 
nclude/ruby-2.0.0/ruby.h:33, 
       from netifaces.c:1: 
c:/Users/Flip/Downloads/metasploit-framework-master/ruby/include/ruby-2.0.0/ruby 
/intern.h:673:7: note: expected 'const char *' but argument is of type 'LPBYTE' 
linking shared-object network_interface_ext.so 
netifaces.o: In function `rbnetifaces_s_interface_info': 
C:\Users\Flip\Downloads\metasploit-framework-master\ruby\lib\ruby\gems\2.0.0\gem 
s\network_interface-0.0.1\ext\network_interface_ext/netifaces.c:717: undefined r 
eference to `GetAdaptersInfo' 
netifaces.o: In function `rbnetifaces_s_interfaces': 
C:\Users\Flip\Downloads\metasploit-framework-master\ruby\lib\ruby\gems\2.0.0\gem 
s\network_interface-0.0.1\ext\network_interface_ext/netifaces.c:559: undefined r 
eference to `GetAdaptersInfo' 
netifaces.o: In function `rbnetifaces_s_addresses': 
C:\Users\Flip\Downloads\metasploit-framework-master\ruby\lib\ruby\gems\2.0.0\gem 
s\network_interface-0.0.1\ext\network_interface_ext/netifaces.c:238: undefined r 
eference to `GetAdaptersInfo' 
collect2.exe: error: ld returned 1 exit status 
make: *** [network_interface_ext.so] Error 1 


Gem files will remain installed in C:/Users/Flip/Downloads/metasploit-framework- 
master/ruby/lib/ruby/gems/2.0.0/gems/network_interface-0.0.1 for inspection. 
Results logged to C:/Users/Flip/Downloads/metasploit-framework-master/ruby/lib/r 
uby/gems/2.0.0/gems/network_interface-0.0.1/ext/network_interface_ext/gem_make.o 
ut 

c:\Users\Flip\Downloads\metasploit-framework-master>gem install pcaprub 
Fetching: pcaprub-0.11.3.gem (100%) 
Building native extensions. This could take a while... 
ERROR: Error installing pcaprub: 
     ERROR: Failed to build gem native extension. 

    C:/Users/Flip/Downloads/metasploit-framework-master/ruby/bin/ruby.exe extcon 
f.rb 

[*] Running checks for pcaprub code... 
platform is x64-mingw32 
checking for pcap_open_live() in -lpcap... no 
checking for pcap_setnonblock() in -lpcap... no 
creating Makefile 

make "DESTDIR=" 
generating pcaprub-x64-mingw32.def 
compiling pcaprub.c 
pcaprub.c:8:18: fatal error: pcap.h: No such file or directory 
compilation terminated. 
make: *** [pcaprub.o] Error 1 


Gem files will remain installed in C:/Users/Flip/Downloads/metasploit-framework- 
master/ruby/lib/ruby/gems/2.0.0/gems/pcaprub-0.11.3 for inspection. 
Results logged to C:/Users/Flip/Downloads/metasploit-framework-master/ruby/lib/r 
uby/gems/2.0.0/gems/pcaprub-0.11.3/ext/pcaprub/gem_make.out 

c:\Users\Flip\Downloads\metasploit-framework-master> 

답변

2

을 참조하십시오.
libpcap - 사용자 수준 패킷 캡처를위한 시스템 독립적 인 인터페이스입니다.
-----------------
... 오류는 사용자에게 pcap 소스 파일 (pcap.c)을 오브젝트 파일 (pcap)로 컴파일 할 수 없다는 것을 알려줍니다. .o)에 pcap 헤더 파일 (pcap.h)이 없기 때문에. 이

#find/-iname pcap.h 

을 존재하는 경우

compiling pcaprub.c 
pcaprub.c:8:18: fatal error: pcap.h: No such file or directory 

... 당신도 볼 루트로이 명령을 사용할 수 있습니다 ... 또는 Windows를 사용하는 경우는은 WinPcap를 설치해야 할 수도 있습니다.

즐기십시오!

1

WinPcap을 설치하고 WinPcap 개발자 팩 (here)을 다운로드해야합니다. 후자는 필요한 pcap.h를 포함합니다.

당신은 더 자세한 안내는 c:\WpdPack\

클릭 here 년은 WinPcap 개발자 팩을 추출해야합니다.