Foro de elhacker.net

Seguridad Informática => Hacking => Mensaje iniciado por: fantasy91 en 13 Agosto 2014, 17:47 pm



Título: Problemas con ettercap.
Publicado por: fantasy91 en 13 Agosto 2014, 17:47 pm
Hola muy buenas soy nuevo en el foro, hace unos días que intento arrancar el ettercap y no lo consigo.

La version que intento instalar es la de 0.8.0 en Ubuntu 14.
Alguna paso de instalación habré seguido mal, pero cuando intento seleccionar mi tarjeta wifi, la unica opción que sale es "Bluetooth adapter number 0".

Os digo los pasos que seguí para instalarlo, que me imagino que ahi estará el problema pero no consigo ver donde exactamente:


    PAQUETES
    sudo apt-get install build-essential
    sudo apt-get install linux-headers-`uname -r`
    LIBRERIAS
    sudo apt-get install bison
    sudo apt-get install flex
    sudo apt-get install cmake
    sudo apt-get install libpcre3-dev
    sudo apt-get install libpcap0.8-dev
    sudo apt-get install libnet1-dev
    sudo apt-get install openssl
    sudo apt-get install libssl-dev
    sudo apt-get install ncurses-bin
    sudo apt-get install libncurses5-dev
    sudo apt-get install libnet6-1.3-dev
    sudo apt-get install libpthread-stubs0-dev
    sudo apt-get install zlib1g-dev
    sudo apt-get install libltdl-dev
    sudo apt-get install pango-graphite
    sudo apt-get install pkg-config
    sudo apt-get install libpango1.0-dev
    sudo apt-get install libatk1.0-dev
    sudo apt-get install libgtk2.0-dev
    sudo apt-get install autoconf
    sudo apt-get install byacc

Descargo la version de ettercap-0.8.0 y sigo estos otros pasos dentro de la carpeta descargada:

    sudo mkdir build (Creamos el directorio "build")
    sudo cd build (Accedemos al directorio "build")

Los 2 primeros pasos todo bien, pero estos otros no consigo ejectuarlos, no entiendo que hay que poner en los puntos suspensivos de 'sudo cmake....'.
    sudo cmake .. (Compila)
    sudo make install (Instalamos ettercap)


Asi que me salto esos 2 pasos y lo que hago es:
sudo apt-get install ettercap-graphical

Eecuto el programa: ettercap -G y llego al problema que pongo mas arriba, solo me sale la opcion de Bluetooth.
El problema me imagino que es con el sudo cmake... pero no se como ejecutar eso.


Gracias de antemano por cualquier ayuda.
Saludos!



Título: Re: Problemas con ettercap.
Publicado por: fantasy91 en 14 Agosto 2014, 17:28 pm
alguien puede ayudarme, pongo también el error que me sale al intentar ejecutar las ultimas 2 lineas por si se entiende mejor:

sudo mkdir build (Creamos el directorio "build")
sudo cd build (Accedemos al directorio "build")

Las 2 primeras bien y cuando las 2 que faltan meto:

cmake ../

Citar
cmake: /usr/local/lib/libcurl.so.4: no version information available (required by cmake)
CMake Error at /usr/share/cmake-2.8/Modules/CMakeDetermineSystem.cmake:177 (file):
  file Internal CMake error when trying to open file:
  /home/ubunt/Descargas/ettercap-0.8.0/build/CMakeFiles/CMakeOutput.log for
  writing.
Call Stack (most recent call first):
  CMakeLists.txt:2 (project)


CMake Error: Could not open file for write in copy operation /home/ubunt/Descargas/ettercap-0.8.0/build/CMakeFiles/2.8.12.2/CMakeSystem.cmake.tmp
CMake Error: : System Error: No such file or directory
CMake Error at /usr/share/cmake-2.8/Modules/CMakeDetermineSystem.cmake:189 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  CMakeLists.txt:2 (project)


CMake Error at /usr/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:99 (file):
  file problem creating directory:
  /home/ubunt/Descargas/ettercap-0.8.0/build/CMakeFiles/2.8.12.2/CompilerIdC
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:39 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
  /usr/share/cmake-2.8/Modules/CMakeDetermineCCompiler.cmake:131 (CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:2 (project)


CMake Error at /usr/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:99 (file):
  file problem creating directory:
  /home/ubunt/Descargas/ettercap-0.8.0/build/CMakeFiles/2.8.12.2/CompilerIdC
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:39 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
  /usr/share/cmake-2.8/Modules/CMakeDetermineCCompiler.cmake:131 (CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:2 (project)


CMake Error at /usr/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:99 (file):
  file problem creating directory:
  /home/ubunt/Descargas/ettercap-0.8.0/build/CMakeFiles/2.8.12.2/CompilerIdC
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:39 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
  /usr/share/cmake-2.8/Modules/CMakeDetermineCCompiler.cmake:131 (CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:2 (project)


CMake Error at /usr/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:469 (file):
  file Internal CMake error when trying to open file:
  /home/ubunt/Descargas/ettercap-0.8.0/build/CMakeFiles/CMakeError.log for
  writing.
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:48 (CMAKE_DETERMINE_COMPILER_ID_VENDOR)
  /usr/share/cmake-2.8/Modules/CMakeDetermineCCompiler.cmake:131 (CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:2 (project)


-- The C compiler identification is unknown
CMake Error: Could not open file for write in copy operation /home/ubunt/Descargas/ettercap-0.8.0/build/CMakeFiles/2.8.12.2/CMakeCCompiler.cmake.tmp
CMake Error: : System Error: No such file or directory
CMake Error at /usr/share/cmake-2.8/Modules/CMakeDetermineCCompiler.cmake:186 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  CMakeLists.txt:2 (project)


CMake Error: Could not find cmake module file: /home/ubunt/Descargas/ettercap-0.8.0/build/CMakeFiles/2.8.12.2/CMakeCCompiler.cmake
-- Check for working C compiler: /usr/bin/cc
CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:35 (file):
  file Internal CMake error when trying to open file:
  /home/ubunt/Descargas/ettercap-0.8.0/build/CMakeFiles/CMakeTmp/testCCompiler.c
  for writing.
Call Stack (most recent call first):
  CMakeLists.txt:2 (project)


CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:47 (try_compile):
  Unknown extension ".c" for file

    /home/ubunt/Descargas/ettercap-0.8.0/build/CMakeFiles/CMakeTmp/testCCompiler.c

  try_compile() works only for enabled languages.  Currently these are:

    C

  See project() command to enable other languages.
Call Stack (most recent call first):
  CMakeLists.txt:2 (project)


-- Check for working C compiler: /usr/bin/cc -- broken
CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:58 (file):
  file Internal CMake error when trying to open file:
  /home/ubunt/Descargas/ettercap-0.8.0/build/CMakeFiles/CMakeError.log for
  writing.
Call Stack (most recent call first):
  CMakeLists.txt:2 (project)


CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message):
  The C compiler "/usr/bin/cc" is not able to compile a simple test program.

  It fails with the following output:

  

  

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:2 (project)


-- Configuring incomplete, errors occurred!
CMake Error: Cannot open file for write: /home/ubunt/Descargas/ettercap-0.8.0/build/CMakeCache.txt.tmp
CMake Error: : System Error: Permission denied
CMake Error: Unable to open cache file for save. /home/ubunt/Descargas/ettercap-0.8.0/build/CMakeCache.txt
CMake Error: : System Error: Permission denie


Título: Re: Problemas con ettercap.
Publicado por: fantasy91 en 14 Agosto 2014, 17:59 pm
Solucionado.

Tras mucho mirar por este foro y otros he encontrado parece ser lo que falta por meter ademas de las sentencias de mas arriba, dejo la solución por si alguien mas le sirve.

sudo apt-get install debhelper cmake bison flex libgtk2.0-dev libltdl3-dev libncurses-dev libnet1-dev libpcap-dev libpcre3-dev libssl-dev libcurl4-openssl-dev ghostscript

Tras meter eso ultimo, por fin se me crea los directorios que faltan en la carpeta build.

Salu2