home *** CD-ROM | disk | FTP | other *** search
/ Power Hacker 2003 / Power_Hacker_2003.iso / E-zine / Magazines / crh / freebsd / rootkit / sniffit.0.3.5 / sn_config.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-05-27  |  3.1 KB  |  92 lines

  1. /* Sniffit Config File                                                   */ 
  2. /*   - By: Brecht Claerhout                                              */
  3.  
  4. /* Because of the use of GNU autoconfig, this file manages pretty much   */
  5. /* itself, you could however still add your personal touch in some parts */ 
  6.  
  7. #define INCLUDE_INTERFACE            /* By default */
  8.  
  9. #ifndef HAVE_SHMGET                                 /* No Shared memory  */
  10. #undef INCLUDE_INTERFACE
  11. #endif
  12. #ifndef HAVE_LIBNCURSES                             /* ncurses not found */ 
  13. #undef INCLUDE_INTERFACE
  14. #endif
  15. #ifndef HAVE_NCURSES_H                              /* ncurses not found */ 
  16. #undef INCLUDE_INTERFACE
  17. #endif
  18. #ifdef IRIX                                      /* No interface on IRIX */
  19. #undef INCLUDE_INTERFACE 
  20. #endif
  21.  
  22. /* Not supported yet */
  23. #ifdef BSDI
  24. #undef INCLUDE_INTERFACE 
  25. #endif
  26.  
  27. #ifdef HAVE_ATEXIT
  28. #define exit_func(x)    atexit(x)
  29. #else
  30. #define exit_func(x)    on_exit (x,0)
  31. #endif
  32.  
  33. /***************************************************************************/
  34. /* If you want to allow the program to be used 'set user id'               */
  35.  
  36. /* #define ALLOW_SUID */
  37. #undef ALLOW_SUID
  38.  
  39. /***************************************************************************/
  40. /* Following parameters describe the connections that can be handled at    */ 
  41. /* once, MAXCOUNT stands for connections handled in normal mode. As        */
  42. /* memory in normal mode is now handled dynamically, you can pump this     */
  43. /* number up without having to much trouble (Watch it, the machine         */
  44. /* could be slowed down a lot, and packets could get missed)               */
  45. /* CONNECTION_CAPACITY is the same, except in interactive mode, this is    */
  46. /* more dangerous to change, if you machine goes to slow (when sniffing    */
  47. /* in interactive mode), lower this number.                                */
  48.  
  49. #define MAXCOUNT          100
  50. #ifdef INCLUDE_INTERFACE
  51. #define CONNECTION_CAPACITY      50
  52. #endif
  53.  
  54. /* This is the interval time for the netstatistics */
  55.  
  56. #define INFO_TIMER    3       /* In seconds */
  57.  
  58. /***************************************************************************/
  59. /* Enable/Disable Packet generation function                               */
  60.  
  61. #undef GENERATION
  62. #ifdef INCLUDE_INTERFACE
  63. #define GENERATION
  64. /* #undef GENERATION */
  65. #endif
  66.  
  67. /***************************************************************************/
  68. /* Read about forcing the sniff device in the README.FIRST file            */
  69.  
  70. #define FORCED_HEAD_LENGTH    ETHERHEAD
  71.  
  72. /* MTU: this could need a change on interfaces different from ethernet or on non-standard */
  73. /*      configured systems. Get the info out of 'ifconfig'.                               */
  74. /*      But 1500 is a standard.                                                           */
  75.  
  76. #define MTU    1500
  77.  
  78. /*************** Don't change anything below this line *********************/
  79.  
  80. #undef DEBUG                   /* Debugging (to tty) - sigh */
  81. /* #define DEBUG */
  82. #define DEBUG_DEVICE    "/dev/ttyp6"
  83.  
  84. #undef DEBUG_ONSCREEN                  /* Debugging (to screen) - sigh */
  85. /* #define    DEBUG_ONSCREEN */
  86.  
  87. #ifdef DEBUG
  88. void close_debug_device (void);
  89. void debug_msg(char *);
  90. #endif
  91.  
  92.