what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

config.h

config.h
Posted Feb 4, 2000

This is a "fun version" of secfingerd's config.h file (which tells secfingerd where to look for files and what messages to display). This config.h causes secfingerd to barf out an ascii "flip the bird" hand in the event that

tags | tool
systems | unix
SHA-256 | 81f55c3aa78da8731f7bd7873139aaa158eac7a675c781e96801d9de062942a4

config.h

Change Mirror Download
/*
* secfingerd
* config.h - configurable options header file
*
* Copyright (c) 1999 Ni9 Technologies [x3/intrinsic]
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/

#ifndef __CONFIG_H
#define __CONFIG_H

#define NO_SYMLINKS 1 /* set this to 1 if you want
* to disallow symlinks, any
* other value will turn this
* option off */
#define U_NOFINGER ".nofinger" /* the user's nofinger file,
* the filename will be prefixed
* with the user's home
* directory */
#define G_NOFINGER "/usr/local/etc/secfingerd.nofinger" /* the global
* nofinger file */
#define U_TEMPLATE ".secfingerd.tpl" /* the user's nofinger file,
* the filename will be prefixed
* with the user's home
* directory */
#define U_PLAN ".plan" /* the user's plan file, the
* filename will be prefixed
* with the user's home
* directory */
#define U_PROJECT ".project" /* the user's project file, the
* filename will be prefixed
* with the user's home
* directory */
#define U_PUBKEY ".pubkey" /* the user's public key file,
* the filename will be prefixed
* with the user's home
* directory */

/*
* Errors that are sent to the client, the E_NOFINGER message is set to the
* the same as E_NOUSER to confuse any crackers using the finger daemon to
* gather information before an attack. The nofinger message used before this
* release was:
*
* #define E_NOFINGER "User does not want to be fingered."
*/
#define E_INDIRECTQ "You want the finger, huh?\n No Problem!\n\n _\n |_|\n | |\n _| |_\n _| | | |-.\n ( | | | | |\n | | |\n | |\n \\ /\n .|_____|_.\n | o |\n | |\n |/\\/\\/\\/\\|\nIndirect Queries Not Allowed.\n You Have Been Logged.\n"
#define E_EMPTYQ "You want the finger, huh?\n No Problem!\n\n _\n |_|\n | |\n _| |_\n _| | | |-.\n ( | | | | |\n | | |\n | |\n \\ /\n .|_____|_.\n | o |\n | |\n |/\\/\\/\\/\\|\nEmpty Queries Not Allowed.\n You Have Been Logged.\n"
#define E_NOUSER "User does not exist on this machine."
#define E_NOFINGER "User does not exist on this machine."
#define E_FILENF "File not found."
#define E_SYMLINK "Symbolic link detected whilst NO_SYMLINK = 1."

/*
* These two messages are used in the logfile in the hostname field, if the
* hostname has not been found for some reason.
*/
#define K_NOTCHOSEN "-"
#define K_FAILURE "Failure looking up hostname"

/*
* Symbols used in the template files, all these are prefixed with a backslash.
* To print a backslash use "\\". You should not change these unless you really
* need to as it will make the template files less portable.
*/
#define S_NAME 'u'
#define S_GECOS 'g'
#define S_DIR 'd'
#define S_SHELL 's'
#define S_PLAN 'p'
#define S_PROJECT 'j'
#define S_PUBKEY 'k'

#endif /* __CONFIG_H */
Login or Register to add favorites

File Archive:

September 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Sep 1st
    261 Files
  • 2
    Sep 2nd
    17 Files
  • 3
    Sep 3rd
    38 Files
  • 4
    Sep 4th
    52 Files
  • 5
    Sep 5th
    23 Files
  • 6
    Sep 6th
    27 Files
  • 7
    Sep 7th
    0 Files
  • 8
    Sep 8th
    1 Files
  • 9
    Sep 9th
    16 Files
  • 10
    Sep 10th
    38 Files
  • 11
    Sep 11th
    21 Files
  • 12
    Sep 12th
    40 Files
  • 13
    Sep 13th
    18 Files
  • 14
    Sep 14th
    0 Files
  • 15
    Sep 15th
    0 Files
  • 16
    Sep 16th
    21 Files
  • 17
    Sep 17th
    51 Files
  • 18
    Sep 18th
    23 Files
  • 19
    Sep 19th
    48 Files
  • 20
    Sep 20th
    36 Files
  • 21
    Sep 21st
    0 Files
  • 22
    Sep 22nd
    0 Files
  • 23
    Sep 23rd
    38 Files
  • 24
    Sep 24th
    65 Files
  • 25
    Sep 25th
    24 Files
  • 26
    Sep 26th
    26 Files
  • 27
    Sep 27th
    39 Files
  • 28
    Sep 28th
    0 Files
  • 29
    Sep 29th
    0 Files
  • 30
    Sep 30th
    24 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close