Foro de elhacker.net

Sistemas Operativos => GNU/Linux => Mensaje iniciado por: Jenag en 26 Agosto 2012, 20:21 pm



Título: Problemas con instalación de Nemesis 1.4.
Publicado por: Jenag en 26 Agosto 2012, 20:21 pm
Sistema : Debian 6.0.5 Squeeze / Kernel 3.2.28 / GNOME 2.30.2.

Descargué la libreria que me hacia falta de estos dos sitios :

wget http://www.seronline.de/download/libnet-1.0.2a.tar.gz /usr/local/src
cd /usr/local/src
tar -zxvf libnet-1.0.2a.tar.gz
cd libnet-1.0.2a
./configure && make && make install

O

http://www.packetfactory.net/projects/libnet/


Intentado compilarlo así y me arroja esto :



Citar
root@Jenag:/home/Jenag#./configure --with-libnet-includes=/usr/local/src/libnet-1.0.2a/include \ --with-libnet-libraries=/usr/local/src/libnet-1.0.2a/lib

    checking host system type... Invalid configuration `x86_64-pc-linux-gnu': machine `x86_64-pc' not recognized
    checking target system type... Invalid configuration `x86_64-pc-linux-gnu': machine `x86_64-pc' not recognized
    checking build system type... Invalid configuration `x86_64-pc-linux-gnu': machine `x86_64-pc' not recognized
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking for style of include used by make... GNU
    checking for gcc... gcc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ANSI C... none needed
    checking dependency style of gcc... none
    checking for gcc option to accept ANSI C... none needed
    checking for gcc... (cached) gcc
    checking whether we are using the GNU C compiler... (cached) yes
    checking whether gcc accepts -g... (cached) yes
    checking for gcc option to accept ANSI C... (cached) none needed
    checking dependency style of gcc... (cached) none
    checking how to run the C preprocessor... gcc -E
    checking for egrep... grep -E
    checking whether gcc needs -traditional... no
    checking for an ANSI C-conforming const... yes
    checking for gawk... (cached) gawk
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether ln -s works... yes
    checking for fabs in -lm... yes
    checking for inet_ntoa in -lnsl... yes
    checking for socket in -lsocket... no
    checking for hstrerror in -lresolv... yes
    checking for libnet_build_ip in -lnet... yes
    checking for ANSI C header files... yes
    checking whether time.h and sys/time.h may both be included... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking for unistd.h... (cached) yes
    checking errno.h usability... yes
    checking errno.h presence... yes
    checking for errno.h... yes
    checking for strings.h... (cached) yes
    checking netdb.h usability... yes
    checking netdb.h presence... yes
    checking for netdb.h... yes
    checking limits.h usability... yes
    checking limits.h presence... yes
    checking for limits.h... yes
    checking machine/endian.h usability... no
    checking machine/endian.h presence... no
    checking for machine/endian.h... no
    checking sys/time.h usability... yes
    checking sys/time.h presence... yes
    checking for sys/time.h... yes
    checking sys/param.h usability... yes
    checking sys/param.h presence... yes
    checking for sys/param.h... yes
    checking arpa/inet.h usability... yes
    checking arpa/inet.h presence... yes
    checking for arpa/inet.h... yes
    checking netinet/in.h usability... yes
    checking netinet/in.h presence... yes
    checking for netinet/in.h... yes
    checking libnet.h usability... no
    checking libnet.h presence... no
    checking for libnet.h... no

       ERROR!  Libnet header not found, go get it from
       http://www.packetfactory.net/projects/libnet/
       or use the --with-libnet-* options, if you have it installed
       in unusual place

Y por supuesto no puedo hacer un :
Citar
make && make install
¿Qué hago para qué se instale?. :-*


Título: Re: Problemas con instalación de Nemesis 1.4.
Publicado por: dato000 en 27 Agosto 2012, 03:44 am
intenta con

Código:
apt-get install libnet1-dev


Título: Re: Problemas con instalación de Nemesis 1.4.
Publicado por: Jenag en 27 Agosto 2012, 17:05 pm
Citar
apt-get install libnet1-dev
Ya la tenía instalada creo que si no estoy confundida las tengo todas las dependencias instaladas es a la hora de compilar compilo con lo simple :
Citar
./confiure && make && make install o con la otra comanderia ./configure --with-libnet-includes=/usr/local/src/libnet-1.0.2a/include \ --with-libnet-libraries=/usr/local/src/libnet-1.0.2a/lib
Y no quiere instalar nemesis.¿Qué algo más se os ocurre que pueda ser? y buscarle una salida. :-*

Pd : Gracias por la sugerencia dato000. :-*


Título: Re: Problemas con instalación de Nemesis 1.4.
Publicado por: Jenag en 27 Agosto 2012, 18:37 pm
Lo he desinstalado todo y he vuelto a instalar todo y me aparce esto :
Citar
./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... none
checking for gcc option to accept ANSI C... none needed
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) none
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking whether gcc needs -traditional... no
checking for an ANSI C-conforming const... yes
checking for gawk... (cached) gawk
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for fabs in -lm... yes
checking for inet_ntoa in -lnsl... yes
checking for socket in -lsocket... no
checking for hstrerror in -lresolv... yes
checking for libnet_build_ip in -lnet... no

   ERROR!  Libnet library not found, go get it from
   http://www.packetfactory.net/projects/libnet/
   or use the --with-libnet-* options, if you have it installed
   in unusual place

No puedo seguir con make y make install.

Citar
Luego pruebo : ./configure --with-libnet-includes=/usr/local/src/libnet-1.0.2a/include \ --with-libnet-libraries=/usr/local/src/libnet-1.0.2a/lib
configure: error: invalid variable name:  --with-libnet-libraries

Y me sale esto.Me voy a :
Citar
/usr/local/src/libnet-1.0.2a# ./configure --with-libnet-includes=/usr/local/src/libnet-1.0.2a/include \ --with-libnet-libraries=/usr/local/src/libnet-1.0.2a/lib

configure: warning:  --with-libnet-libraries=/usr/local/src/libnet-1.0.2a/lib: invalid host type
loading cache ./config.cache
Beginning autoconfiguration process for libnet-1.0.2a...
checking host system type... --with-libnet-libraries=/usr/local/src/libnet-1.0.2a/lib
checking target system type... --with-libnet-libraries=/usr/local/src/libnet-1.0.2a/lib
checking build system type... --with-libnet-libraries=/usr/local/src/libnet-1.0.2a/lib
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for working const... (cached) yes
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether make sets ${MAKE}... (cached) yes
checking for ranlib... (cached) ranlib
checking for ar... (cached) ar
checking for ln... (cached) ln
checking for strerror... (cached) yes
checking for pcap_open_live in -lpcap... (cached) yes
checking low-level packet interface type... found SOCK_PACKET
configure: warning: apparently your OS is not officially supported yet
configure: warning: this may not work
you'll have to edit the makefile by hand
please send diffs to mike@infonexus.com
checking for libnet_build_ip in -lnet... (cached) no
checking machine endianess... lil
checking if unaligned accesses fail... (cached) no
checking for sys/sockio.h... (cached) no
creating ./config.status
creating Makefile
creating test/Makefile
creating test/TCP/Makefile
creating test/Ethernet/Makefile
creating test/UDP/Makefile
creating test/ICMP/Makefile
creating test/Random/Makefile
creating test/OSPF/Makefile
creating util/Makefile
creating util/Get-mac/Makefile
creating example/Makefile
creating libnet-config
creating include/config.h
include/config.h is unchanged
Después make :
Citar
ar -cr lib/libnet.a src/libnet_resolve.o src/libnet_socket.o src/libnet_checksum.o src/libnet_prand.o src/libnet_version.o src/libnet_write_ip.o src/libnet_insert_ipo.o src/libnet_insert_tcpo.o src/libnet_error.o src/libnet_link_sockpacket.o src/libnet_packet_mem.o src/libnet_build_ip.o src/libnet_build_tcp.o src/libnet_build_udp.o src/libnet_build_arp.o src/libnet_build_ethernet.o src/libnet_build_icmp.o src/libnet_build_igmp.o src/libnet_build_dns.o src/libnet_build_snmp.o src/libnet_build_rip.o src/libnet_build_ospf.o src/libnet_build_vrrp.o src/libnet_asn1.o src/libnet_hex_dump.o src/libnet_if_addr.o src/libnet_port_list.o
ranlib lib/libnet.a

Y después make install :
Citar
ar -cr lib/libnet.a src/libnet_resolve.o src/libnet_socket.o src/libnet_checksum.o src/libnet_prand.o src/libnet_version.o src/libnet_write_ip.o src/libnet_insert_ipo.o src/libnet_insert_tcpo.o src/libnet_error.o src/libnet_link_sockpacket.o src/libnet_packet_mem.o src/libnet_build_ip.o src/libnet_build_tcp.o src/libnet_build_udp.o src/libnet_build_arp.o src/libnet_build_ethernet.o src/libnet_build_icmp.o src/libnet_build_igmp.o src/libnet_build_dns.o src/libnet_build_snmp.o src/libnet_build_rip.o src/libnet_build_ospf.o src/libnet_build_vrrp.o src/libnet_asn1.o src/libnet_hex_dump.o src/libnet_if_addr.o src/libnet_port_list.o
ranlib lib/libnet.a
./ensure-dir.sh /usr 755
./ensure-dir.sh /usr/lib/ 755
./ensure-dir.sh /usr/include/libnet 755
./ensure-dir.sh /usr/include/ 755
./ensure-dir.sh  755
./ensure-dir.sh /usr/bin/ 755
./install-sh lib/libnet.a /usr/lib/
rm -f /usr/lib/libpwrite.a
cd /usr/lib/; ln -f -s libnet.a libpwrite.a
./install-sh include/libnet.h /usr/include/
./install-sh include/libnet/libnet-headers.h /usr/include/libnet
./install-sh include/libnet/libnet-functions.h /usr/include/libnet
./install-sh include/libnet/libnet-structures.h /usr/include/libnet
./install-sh include/libnet/libnet-macros.h /usr/include/libnet
./install-sh include/libnet/libnet-asn1.h /usr/include/libnet
./install-sh include/libnet/libnet-ospf.h /usr/include/libnet
./install-sh doc/libnet.3
install:   no destination specified
make: *** [install] Error 1

¿Qué hago para poder tener nemesis estoy loca , algo se me pasa por alto?. :-*


Título: Re: Problemas con instalación de Nemesis 1.4.
Publicado por: Squirtle en 27 Agosto 2012, 21:34 pm
Estaba probandolo para ver si funciona pero no tengo tiempor para terminarlo haber si funciona.

Prueba de esta manera

:http://insecurety.net/?p=54

Si tienes algun problema, vemos como solucionarlo :P



Título: Re: Problemas con instalación de Nemesis 1.4.
Publicado por: Jenag en 27 Agosto 2012, 22:36 pm
Gracias slayermind lo antes que pueda de momento , lo probaré :
Citar
http://insecurety.net/?p=54
:-*

Ya he seguido los pasos y nada me arroja esto :
Citar
./configure --with-libnet-includes=/usr/nembuild/libnet-1.0.2a/include --with-libnet-libraries=/usr/nembuild/libnet-1.0.2a/lib
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... none
checking for gcc option to accept ANSI C... none needed
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) none
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking whether gcc needs -traditional... no
checking for an ANSI C-conforming const... yes
checking for gawk... (cached) gawk
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for fabs in -lm... yes
checking for inet_ntoa in -lnsl... yes
checking for socket in -lsocket... no
checking for hstrerror in -lresolv... yes
checking for libnet_build_ip in -lnet... yes
checking for ANSI C header files... yes
checking whether time.h and sys/time.h may both be included... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for unistd.h... (cached) yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking for strings.h... (cached) yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking machine/endian.h usability... no
checking machine/endian.h presence... no
checking for machine/endian.h... no
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking libnet.h usability... no
checking libnet.h presence... no
checking for libnet.h... no

   ERROR!  Libnet header not found, go get it from
   http://www.packetfactory.net/projects/libnet/
   or use the --with-libnet-* options, if you have it installed
   in unusual place
¿En que fallo? porfavor ayuda.:-*


Título: Re: Problemas con instalación de Nemesis 1.4.
Publicado por: Squirtle en 28 Agosto 2012, 04:31 am
Hasta donde tengo entendido no va corrido en "./configure"

Intentalo de esta manera:

Citar
./configure /usr/nembuild/libnet-1.0.2a/

Citar
./configure /usr/nembuild/libnet-1.0.2a/lib


Título: Re: Problemas con instalación de Nemesis 1.4.
Publicado por: Jenag en 28 Agosto 2012, 14:44 pm
Hasta donde tengo entendido no va corrido en "./configure"

Intentalo de esta manera:

./configure /usr/nembuild/libnet-1.0.2a/

./configure /usr/nembuild/libnet-1.0.2a/lib

No sé lo que ocurre slayermind pero sigue arrojando lo de arriba , gracias ¿Alguien sabe qué puedo hacer?. :-*