Changeset 1357

Show
Ignore:
Timestamp:
08/23/07 15:15:26 (1 year ago)
Author:
common
Message:

nepenthes

  • log-hexdump added, disabled by default, compile with --enable-debug-logging and load the module to use it
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • nepenthes/trunk/conf/nepenthes.conf.dist

    r1275 r1357  
    4242//  "logirc.so",                    "log-irc.conf",                 ""  // needs configuration 
    4343//  "logprelude.so",                "log-prelude.conf",             ""  
    44  
     44//  "loghexdump.so"                 ""                              "" 
    4545 
    4646// dumping and logging 
  • nepenthes/trunk/configure.ac

    r1266 r1357  
    205205AC_SUBST([LIB_SSH]) 
    206206 
     207# libemu 
     208AC_SUBST([LIB_EMU]) 
     209 
     210 
    207211dnl ************************************************** 
    208212dnl * libdl linking flag                             * 
     
    664668fi   
    665669 
     670 
     671 
     672dnl ************************************************** 
     673dnl * libemu support                                  * 
     674dnl ************************************************** 
     675 
     676AC_ARG_WITH(emu-lib, 
     677    [  --with-emu-lib=PATH      specify path to libemu library], 
     678    [emu_lib=$withval], 
     679    [emu_lib=no]) 
     680AC_ARG_WITH(emu-include, 
     681    [  --with-emu-include=PATH  specify path to libemu include files], 
     682    [emu_inc=$withval], 
     683    [emu_inc=no]) 
     684 
     685AC_ARG_ENABLE(emu, [  --enable-emu      Enable Support [default=auto]],  
     686                    enable_emu="$enableval", enable_emu="no") 
     687 
     688 
     689if test x$enable_emu = xyes; then 
     690 
     691  AC_MSG_CHECKING(for libemu - x86 emulation library) 
     692 
     693  dnl ************************************************** 
     694  dnl * emu headers                                  * 
     695  dnl ************************************************** 
     696 
     697  orig_cppflags=$CPPFLAGS 
     698   
     699  if test "x$emu_inc" != xno; then 
     700    CPPFLAGS="-I$emu_inc $CPPFLAGS" 
     701  fi 
     702   
     703  AC_CHECK_HEADER(emu/emu.h, [found=yes], [found=no]) 
     704 
     705  if test "x$found" != "xno"; then 
     706 
     707 
     708    dnl ************************************************** 
     709    dnl * emu lib                                      * 
     710    dnl ************************************************** 
     711         
     712    orig_ldflags=$LDFLAGS 
     713    if test "x$emu_lib" != "xno"; then 
     714        LDFLAGS="-L$emu_lib $LDFLAGS" 
     715    fi 
     716    AC_CHECK_LIB(emu, emu_new, [found=yes], [found=no]) 
     717     
     718    if test "x$found" != "xyes"; then 
     719        LDFLAGS=$orig_ldflags 
     720    fi 
     721  else     
     722     CPPFLAGS=$orig_cppflags 
     723 
     724  fi 
     725 
     726  if test "x$found" != "xyes"; then 
     727    enable_emu=no 
     728  else 
     729    AC_DEFINE(HAVE_EMU, 1 , [Define if we have emu client library]) 
     730    LIB_EMU="-lemu" 
     731  fi 
     732fi   
    666733 
    667734 
     
    9491016                 modules/x-6/Makefile 
    9501017                 modules/x-9/Makefile 
     1018                 modules/log-hexdump/Makefile 
    9511019                 ]) 
     1020#                modules/shellcode-emulation/Makefile 
    9521021#                modules/module-upnp/Makefile             
    9531022#                modules/log-prelude/Makefile 
  • nepenthes/trunk/modules/Makefile.am

    r1169 r1357  
    1414          dnsresolve-adns \ 
    1515          x-1 x-2 x-3 x-4 x-5 x-6 x-9 \ 
    16           log-surfnet vuln-ftpd \ 
     16          log-surfnet log-hexdump vuln-ftpd \ 
    1717          log-prelude shellcode-signatures \ 
    1818          sqlhandler-postgres