HARDWARE Y SISTEMAS OPERATIVOS, GNU/Linux, Windows, Mac > GNU/Linux, Unix, *BSD and Free Software, Android

Me sigue fallando el instalar nemesis en debian wheezy. (SOLUCIONADO)

<< < (4/5) > >>

Pengüin:
Gracias por vuestra paciencia , shicefgo no entiendo en lo último que posteas que devo hacer estoy confusa , no se cómo empezar o que editar. :cry:

shicefgo:
En ese post hay muchas cosas, vuelve a leerlo despacio, que en él detallo todo lo que he hecho hasta poner en marcha al nemesis ese. Funciona, pero supongo que las opciones relacionadas con la dirección ethernet no irán bien.

Resumiendo:

Instala libnet.
Copia el script libnet-config a /usr/local/bin o /usr/bin.
Y ya deberías poder ejecutar el ./configure de nemesis sin que te de errores relacionados con libnet.

Si al compilar obtienes el mismo error que yo, ya podremos volver sobre el asunto, pero lo primero es instalar libnet y conseguir que el configure de nemesis no de errores.

Ah, las autotools... no en vano hay que gente que dice que deberían llamarse autohell (autoinfierno)  :cry:

Yo también me he pasado ya a CMake ;)

Saludos.

Mr_X:
Parece que libnet tiene errores, además de que nemesis no compila por defecto en la arquitectura x86_64. Revisa este mensaje en otro foro...

shicefgo:
Pero es que yo he instalado libnet sin problemas, y con el parche asqueroso ese que devuelve -1, he echado a andar nemesis. Los fuentes los he descargado a partir de los enlaces que ha puesto Pengüin.

He aquí la salida de un src/nemesis efectuado desde dentro la carpeta nemesis-1.4:


--- Código: ---fgo@yoda:~/tmp/nemesis/nemesis-1.4$ src/nemesis

NEMESIS -=- The NEMESIS Project Version 1.4 (Build 26)

NEMESIS Usage:
  src/nemesis [mode] [options]

NEMESIS modes:
  arp
  dns
  ethernet
  icmp
  igmp
  ip
  ospf (currently non-functional)
  rip
  tcp
  udp

NEMESIS options:
  To display options, specify a mode with the option "help".

--- Fin del código ---

Y cuando, como  root, hago: src/nemesis ip me dice:

--- Código: ---IP Packet Injected

--- Fin del código ---

O sea, que algo hace...

Visto esto, me da por pensar que el problema con libnet puede ser debido a las «autoinfierno» y no a la librería en sí misma, y ya que lo mencionas, también es posible que el problema de compilación que he obtenido sea debido a la antigüedad del paquete y a que mi arquitectura es de 64 bits. Pero vamos, que se instala una máquina virtual de 32 bits y se hacen pruebas. (Aunque yo no estoy muy por la labor de andar perdiendo mucho más tiempo con esto).

Ah, una cosa más por si acaso: Instalar las autotools (paquetes autoconf y automake) y hacer un autoreconf previo al ./configure. Es que estuve trasteando en el configure.in de nemesis (al final lo dejé como estaba) y cuando se toca ahí hay que reconfigurar, y tal vez eso haya influido en mi resultado...

Saludos.

Pengüin:

--- Cita de: Mr_X en 12 de Junio de 2013, 08:17:11 pm ---Parece que libnet tiene errores, además de que nemesis no compila por defecto en la arquitectura x86_64. Revisa este mensaje en otro foro...

--- Fin de la cita ---
Uso :

--- Código: ---Edit "/usr/include/libnet/libnet-headers.h" file (use your specific location) and change:
Code:
#if (!__GLIBC__)
struct ether_addr
{
    u_char  ether_addr_octet[6];
};
#endif

to
Code:
//#if (!__GLIBC__)
struct ether_addr
{
    u_char  ether_addr_octet[6];
};
//#endif

--- Fin del código ---
Y me compila pero sólo ./configure :


--- Código: ---./configure --with-libnet-includes=/usr/local/src/Libnet-1.0.2a/include --with-libnet-libraries=/usr/local/src/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... yes
checking libnet.h presence... yes
checking for libnet.h... yes
checking for libnet version 1.0.2a... yes
checking for u_int8_t... yes
checking for u_int16_t... yes
checking for u_int32_t... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for gethostbyname... yes
checking for gettimeofday... yes
checking for inet_ntoa... yes
checking for isascii... yes
checking for working memcmp... yes
checking for memset... yes
checking for strchr... yes
checking for strdup... yes
checking for strerror... yes
checking for strrchr... yes
checking for strtoul... yes
checking for getopt... yes
checking for inet_aton... yes
checking for strlcat... no
checking for strlcpy... no
checking for strsep... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating man/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands

--- Fin del código ---
Pero a la hora de hacer make falla :


--- Código: ---make

make  all-recursive
make[1]: se ingresa al directorio `/home/Eva/Escritorio/nemesis-1.4'
Making all in src
make[2]: se ingresa al directorio `/home/Eva/Escritorio/nemesis-1.4/src'
gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/local/src/Libnet-1.0.2a/include -DLIBNET_LIL_ENDIAN -I/usr/local/include -I/sw/include  -g -O2 -Wall -funroll-loops -pipe -c `test -f 'nemesis-functions.c' || echo './'`nemesis-functions.c
In file included from nemesis-functions.c:48:0:
/usr/local/src/Libnet-1.0.2a/include/libnet.h:87:8: warning: missing terminating " character [enabled by default]
/usr/local/src/Libnet-1.0.2a/include/libnet.h:89:50: warning: missing terminating " character [enabled by default]
nemesis-functions.c: In function ‘nemesis_check_link’:
nemesis-functions.c:342:36: error: dereferencing pointer to incomplete type
make[2]: *** [nemesis-functions.o] Error 1
make[2]: se sale del directorio `/home/Eva/Escritorio/nemesis-1.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: se sale del directorio `/home/Eva/Escritorio/nemesis-1.4'
make: *** [all] Error 2

--- Fin del código ---
¿Qué puedo seguir haciendo?. :-o :cry:

Navegación

[0] Índice de Mensajes

[#] Página Siguiente

[*] Página Anterior

Ir a la versión completa