home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1994 March / Source_Code_CD-ROM_Walnut_Creek_March_1994.iso / compsrcs / unix / volume26 / tripwire / part08 < prev    next >
Encoding:
Text File  |  1993-04-19  |  68.1 KB  |  2,720 lines

  1. Newsgroups: comp.sources.unix
  2. From: spaf@cs.purdue.edu (Gene Spafford)
  3. Subject: v26i180: tripwire - security integrity monitor, Part08/08
  4. Sender: unix-sources-moderator@vix.com
  5. Approved: paul@vix.com
  6.  
  7. Submitted-By: spaf@cs.purdue.edu (Gene Spafford)
  8. Posting-Number: Volume 26, Issue 180
  9. Archive-Name: tripwire/part08
  10.  
  11. #! /bin/sh
  12. # This is a shell archive.  Remove anything before this line, then unpack
  13. # it by saving it into a file and typing "sh file".  To overwrite existing
  14. # files, type "sh file -c".  You can also feed this as standard input via
  15. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  16. # will see the following message at the end:
  17. #        "End of archive 8 (of 8)."
  18. # Contents:  tripwire-1.0 tripwire-1.0/databases tripwire-1.0/aux
  19. #   tripwire-1.0/contrib tripwire-1.0/include tripwire-1.0/man
  20. #   tripwire-1.0/sigs tripwire-1.0/sigs/crc tripwire-1.0/sigs/crc32
  21. #   tripwire-1.0/sigs/md2 tripwire-1.0/sigs/md5
  22. #   tripwire-1.0/sigs/snefru tripwire-1.0/src tripwire-1.0/tests
  23. #   tripwire-1.0/src/dbase.update.c tripwire-1.0/include/list.h
  24. #   tripwire-1.0/aux/types.c tripwire-1.0/tests/test1.sh
  25. #   tripwire-1.0/sigs/md2/md2.h tripwire-1.0/configs
  26. #   tripwire-1.0/contrib/README.CheckConfig tripwire-1.0/aux/types.sh
  27. #   tripwire-1.0/configs/conf-mach.h
  28. #   tripwire-1.0/configs/conf-unicos.h tripwire-1.0/sigs/md5/md5.h
  29. #   tripwire-1.0/configs/conf-umaxv.h tripwire-1.0/configs/conf-aux3.h
  30. #   tripwire-1.0/configs/conf-hpux.h tripwire-1.0/src/nullsig.c
  31. #   tripwire-1.0/configs/conf-aix.h tripwire-1.0/configs/conf-xenix.h
  32. #   tripwire-1.0/configs/conf-convex.h
  33. #   tripwire-1.0/configs/conf-riscos.h
  34. #   tripwire-1.0/configs/conf-irix4.h tripwire-1.0/configs/conf-svr3.h
  35. #   tripwire-1.0/configs/conf-osf1.h
  36. #   tripwire-1.0/configs/conf-sunos-4.0.h
  37. #   tripwire-1.0/configs/conf-sunos-4.1.h
  38. #   tripwire-1.0/configs/conf-svr4.h tripwire-1.0/configs/conf-dynix.h
  39. #   tripwire-1.0/configs/conf-bsd.h tripwire-1.0/sigs/md2/global.h
  40. #   tripwire-1.0/configs/conf-epix.h
  41. #   tripwire-1.0/configs/conf-osx-ucb.h tripwire-1.0/man/sigfetch.8
  42. #   tripwire-1.0/configs/conf-osx-att.h tripwire-1.0/aux/ntohl.h
  43. #   tripwire-1.0/aux/byteorder.c tripwire-1.0/contrib/README.chk
  44. #   tripwire-1.0/contrib/CheckConfig tripwire-1.0/include/sigs.h
  45. #   tripwire-1.0/configs/tw.conf.ultrix tripwire-1.0/contrib/TRIPWIRE
  46. #   tripwire-1.0/aux/Makefile tripwire-1.0/TODO
  47. #   tripwire-1.0/contrib/tripwire.chk tripwire-1.0/tests/Makefile
  48. #   tripwire-1.0/sigs/snefru/Makefile tripwire-1.0/sigs/crc32/Makefile
  49. #   tripwire-1.0/sigs/crc/Makefile tripwire-1.0/man/Makefile
  50. # Wrapped by spaf@uther.cs.purdue.edu on Tue Nov  3 16:31:57 1992
  51. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  52. if test ! -d 'tripwire-1.0' ; then
  53.     echo shar: Creating directory \"'tripwire-1.0'\"
  54.     mkdir 'tripwire-1.0'
  55. fi
  56. if test ! -d 'tripwire-1.0/databases' ; then
  57.     echo shar: Creating directory \"'tripwire-1.0/databases'\"
  58.     mkdir 'tripwire-1.0/databases'
  59. fi
  60. if test ! -d 'tripwire-1.0/aux' ; then
  61.     echo shar: Creating directory \"'tripwire-1.0/aux'\"
  62.     mkdir 'tripwire-1.0/aux'
  63. fi
  64. if test ! -d 'tripwire-1.0/configs' ; then
  65.     echo shar: Creating directory \"'tripwire-1.0/configs'\"
  66.     mkdir 'tripwire-1.0/configs'
  67. fi
  68. if test ! -d 'tripwire-1.0/contrib' ; then
  69.     echo shar: Creating directory \"'tripwire-1.0/contrib'\"
  70.     mkdir 'tripwire-1.0/contrib'
  71. fi
  72. if test ! -d 'tripwire-1.0/include' ; then
  73.     echo shar: Creating directory \"'tripwire-1.0/include'\"
  74.     mkdir 'tripwire-1.0/include'
  75. fi
  76. if test ! -d 'tripwire-1.0/man' ; then
  77.     echo shar: Creating directory \"'tripwire-1.0/man'\"
  78.     mkdir 'tripwire-1.0/man'
  79. fi
  80. if test ! -d 'tripwire-1.0/sigs' ; then
  81.     echo shar: Creating directory \"'tripwire-1.0/sigs'\"
  82.     mkdir 'tripwire-1.0/sigs'
  83. fi
  84. if test ! -d 'tripwire-1.0/sigs/crc' ; then
  85.     echo shar: Creating directory \"'tripwire-1.0/sigs/crc'\"
  86.     mkdir 'tripwire-1.0/sigs/crc'
  87. fi
  88. if test ! -d 'tripwire-1.0/sigs/crc32' ; then
  89.     echo shar: Creating directory \"'tripwire-1.0/sigs/crc32'\"
  90.     mkdir 'tripwire-1.0/sigs/crc32'
  91. fi
  92. if test ! -d 'tripwire-1.0/sigs/md2' ; then
  93.     echo shar: Creating directory \"'tripwire-1.0/sigs/md2'\"
  94.     mkdir 'tripwire-1.0/sigs/md2'
  95. fi
  96. if test ! -d 'tripwire-1.0/sigs/md5' ; then
  97.     echo shar: Creating directory \"'tripwire-1.0/sigs/md5'\"
  98.     mkdir 'tripwire-1.0/sigs/md5'
  99. fi
  100. if test ! -d 'tripwire-1.0/sigs/snefru' ; then
  101.     echo shar: Creating directory \"'tripwire-1.0/sigs/snefru'\"
  102.     mkdir 'tripwire-1.0/sigs/snefru'
  103. fi
  104. if test ! -d 'tripwire-1.0/src' ; then
  105.     echo shar: Creating directory \"'tripwire-1.0/src'\"
  106.     mkdir 'tripwire-1.0/src'
  107. fi
  108. if test ! -d 'tripwire-1.0/tests' ; then
  109.     echo shar: Creating directory \"'tripwire-1.0/tests'\"
  110.     mkdir 'tripwire-1.0/tests'
  111. fi
  112. if test -f 'tripwire-1.0/src/dbase.update.c' -a "${1}" != "-c" ; then 
  113.   echo shar: Will not clobber existing file \"'tripwire-1.0/src/dbase.update.c'\"
  114. else
  115. echo shar: Extracting \"'tripwire-1.0/src/dbase.update.c'\" \(1599 characters\)
  116. sed "s/^X//" >'tripwire-1.0/src/dbase.update.c' <<'END_OF_FILE'
  117. X#ifndef lint
  118. Xstatic char rcsid[] = "$Id: dbase.update.c,v 1.2 92/11/03 02:43:43 genek Exp $";
  119. X#endif
  120. X
  121. X/*
  122. X * dbase.update.c
  123. X *
  124. X *    build the preen.database file with the list of files that
  125. X *    was generated by config.parse.c
  126. X *
  127. X * Gene Kim
  128. X * Purdue University
  129. X */
  130. X
  131. X#include "../include/config.h"
  132. X#include <stdio.h>
  133. X#include <fcntl.h>
  134. X#ifdef STDLIBH
  135. X# include <stdlib.h>
  136. X#endif
  137. X#include <sys/param.h>
  138. X#include <sys/types.h>
  139. X#include <sys/stat.h>
  140. X#ifdef STRINGH
  141. X#include <string.h>
  142. X#else
  143. X#include <strings.h>
  144. X#endif
  145. X#include <errno.h>
  146. X#include "../include/list.h"
  147. X#include "../include/tripwire.h"
  148. X
  149. X/*
  150. X * database_update_markentries (struct list **pp_list, int flagentry)
  151. X *
  152. X *    mark all entries with the given (flagentry) as FLAG_UPDATE.
  153. X */
  154. X
  155. Xvoid
  156. Xdatabase_update_markentries (pp_list, flagentry)
  157. X    struct list **pp_list;
  158. X    int flagentry;
  159. X{
  160. X    struct list_elem *p_fileentry;
  161. X    char trash[1024];
  162. X    int entry;
  163. X    int err;
  164. X
  165. X    /* use pp_list as key */
  166. X    if (list_open(pp_list) < 0) {
  167. X    fputs("database_update: list_open() failed!\n", stderr);
  168. X    exit(1);
  169. X    }
  170. X
  171. X    /* foreach file entry */
  172. X    while ((p_fileentry = list_get(pp_list)) != NULL) {
  173. X    if ((err = sscanf(p_fileentry->varvalue, "%d %s", &entry, trash)) < 2) {
  174. X        fprintf(stderr, "database_update: sscanf() parse error, returned %d!\n", err);
  175. X        exit(1);
  176. X    }
  177. X    /* flag if entry number match */
  178. X    if (entry == flagentry) {
  179. X        list_setflag(p_fileentry->varname, FLAG_UPDATE, pp_list);
  180. X    }
  181. X    }
  182. X
  183. X    /* close up the list */
  184. X    if (list_close(pp_list) < 0) {
  185. X    fputs("database_update: list_close() failed!\n", stderr);
  186. X    exit(1);
  187. X    }
  188. X}
  189. X
  190. END_OF_FILE
  191. if test 1599 -ne `wc -c <'tripwire-1.0/src/dbase.update.c'`; then
  192.     echo shar: \"'tripwire-1.0/src/dbase.update.c'\" unpacked with wrong size!
  193. fi
  194. # end of 'tripwire-1.0/src/dbase.update.c'
  195. fi
  196. if test -f 'tripwire-1.0/include/list.h' -a "${1}" != "-c" ; then 
  197.   echo shar: Will not clobber existing file \"'tripwire-1.0/include/list.h'\"
  198. else
  199. echo shar: Extracting \"'tripwire-1.0/include/list.h'\" \(1541 characters\)
  200. sed "s/^X//" >'tripwire-1.0/include/list.h' <<'END_OF_FILE'
  201. X/* $Id: list.h,v 1.1.1.2 92/11/02 18:19:38 genek Exp $ */
  202. X
  203. X#define LIST_HASHSZ    17011
  204. X
  205. X/* linked list element */
  206. Xstruct list_elem {
  207. X    char     *varname;
  208. X    char    *varvalue;
  209. X    int        priority;
  210. X    struct list_elem    *next;
  211. X    struct list_elem    *prev;
  212. X    int        flag;
  213. X};
  214. X
  215. X/* hash table structure */
  216. Xstruct list_hash {
  217. X    char    *key;            /* hashed string */
  218. X    int        used;            /* table used or not */
  219. X    struct list_elem    *lptr;        /* pointer to entry on list */
  220. X    struct list_hash    *next;        /* pointer to next entry on chain */
  221. X};
  222. X
  223. X/* linked list pointer, with head and tail */
  224. Xstruct list {
  225. X    struct list_elem    *p_head;
  226. X    struct list_elem    *p_tail;
  227. X    struct list_hash    hashtable[LIST_HASHSZ];
  228. X};
  229. X
  230. X/* prototypes */
  231. X/* Do not remove this line.  Protyping depends on it! */
  232. X#if defined(__STDC__) || defined(__cplusplus)
  233. X#define P_(s) s
  234. X#else
  235. X#define P_(s) ()
  236. X#endif
  237. X
  238. X/* list.c */
  239. Xvoid list_set P_((char *pc_name, char *pc_value, int priority, struct list **pp_list));
  240. Xchar *list_lookup P_((char *pc_name, struct list **pp_list));
  241. Xint list_isthere P_((char *pc_name, struct list **pp_list));
  242. Xvoid list_unset P_((char *pc_name, struct list **pp_list));
  243. Xint list_setflag P_((char *pc_name, int flag, struct list **pp_list));
  244. Xint list_getflag P_((char *pc_name, struct list **pp_list));
  245. Xvoid list_print P_((struct list **pp_list));
  246. Xvoid list_reset P_((struct list **pp_list));
  247. Xint list_init P_((void));
  248. Xint list_open P_((struct list **pp_list));
  249. Xstruct list_elem *list_get P_((struct list **pp_list));
  250. Xint list_close P_((struct list **pp_list));
  251. X
  252. X#undef P_
  253. END_OF_FILE
  254. if test 1541 -ne `wc -c <'tripwire-1.0/include/list.h'`; then
  255.     echo shar: \"'tripwire-1.0/include/list.h'\" unpacked with wrong size!
  256. fi
  257. # end of 'tripwire-1.0/include/list.h'
  258. fi
  259. if test -f 'tripwire-1.0/aux/types.c' -a "${1}" != "-c" ; then 
  260.   echo shar: Will not clobber existing file \"'tripwire-1.0/aux/types.c'\"
  261. else
  262. echo shar: Extracting \"'tripwire-1.0/aux/types.c'\" \(1419 characters\)
  263. sed "s/^X//" >'tripwire-1.0/aux/types.c' <<'END_OF_FILE'
  264. X#ifndef lint
  265. Xstatic char rcsid[] = "$Id: types.c,v 1.2 92/11/03 02:48:33 genek Exp $";
  266. X#endif
  267. X
  268. X#include "../include/config.h"
  269. X#include <stdio.h>
  270. X#include <sys/types.h>
  271. X#include <sys/stat.h>
  272. X#ifdef STDLIBH
  273. X#include <stdlib.h>
  274. X#endif
  275. X
  276. Xstatic void
  277. Xusage()
  278. X{
  279. X    fputs("types: usage: typename\n", stderr);
  280. X    exit(1);
  281. X}
  282. X
  283. Xchar *pc;
  284. Xint isunsigned;
  285. X
  286. Xmain(argc, argv)
  287. X    int argc;
  288. X    char *argv[];
  289. X{
  290. X    struct stat statbuf;
  291. X    int size;
  292. X
  293. X    pc = argv[1];
  294. X
  295. X    if (argc < 2)
  296. X    usage();
  297. X
  298. X    if (strcmp(pc, "mode_t") == 0) {
  299. X    isunsigned = 1;
  300. X    typeis(sizeof(statbuf.st_mode));
  301. X    }
  302. X    else if (strcmp(pc, "ino_t") == 0) {
  303. X    isunsigned = 1;
  304. X    typeis(sizeof(statbuf.st_ino));
  305. X    }
  306. X    else if (strcmp(pc, "nlink_t") == 0) {
  307. X    isunsigned = 1;
  308. X    typeis(sizeof(statbuf.st_nlink));
  309. X    }
  310. X    else if (strcmp(pc, "uid_t") == 0) {
  311. X    isunsigned = 0;
  312. X    typeis(sizeof(statbuf.st_uid));
  313. X    }
  314. X    else if (strcmp(pc, "gid_t") == 0) {
  315. X    isunsigned = 0;
  316. X    typeis(sizeof(statbuf.st_gid));
  317. X    }
  318. X    else if (strcmp(pc, "off_t") == 0) {
  319. X    isunsigned = 1;
  320. X    typeis(sizeof(statbuf.st_size));
  321. X    }
  322. X
  323. X    exit(0);
  324. X
  325. X}
  326. X
  327. Xtypeis(i)
  328. X    int i;
  329. X{
  330. X    int shortlen = sizeof(unsigned short);
  331. X    int longlen = sizeof(unsigned long);
  332. X    char sign[64];
  333. X
  334. X    if (isunsigned)
  335. X    strcpy(sign, "unsigned");
  336. X    else
  337. X    strcpy(sign, "signed");
  338. X
  339. X
  340. X    if (i == shortlen)
  341. X    printf("typedef %s short %s;\n", sign, pc);
  342. X    else
  343. X    printf("typedef %s long %s;\n", sign, pc);
  344. X}
  345. END_OF_FILE
  346. if test 1419 -ne `wc -c <'tripwire-1.0/aux/types.c'`; then
  347.     echo shar: \"'tripwire-1.0/aux/types.c'\" unpacked with wrong size!
  348. fi
  349. # end of 'tripwire-1.0/aux/types.c'
  350. fi
  351. if test -f 'tripwire-1.0/tests/test1.sh' -a "${1}" != "-c" ; then 
  352.   echo shar: Will not clobber existing file \"'tripwire-1.0/tests/test1.sh'\"
  353. else
  354. echo shar: Extracting \"'tripwire-1.0/tests/test1.sh'\" \(1412 characters\)
  355. sed "s/^X//" >'tripwire-1.0/tests/test1.sh' <<'END_OF_FILE'
  356. X#!/bin/sh
  357. X
  358. X# $Id: test1.sh,v 1.4 92/11/03 13:36:36 genek Exp $ 
  359. X
  360. XHOSTNAME=$1
  361. XDIST=$2
  362. X
  363. Xcat << 'GHK'
  364. X
  365. X===
  366. X
  367. X    This shell script tests all the Tripwire signature routines.
  368. XConsequently, this test may take awhile to complete, since even the 
  369. Xslowest signature routines are exercised.  On a Sequent Symmetry
  370. Xrunning 16 Mhz Intel 80386s, this test takes over five minutes to
  371. Xcomplete.
  372. X
  373. X    This same test using only the MD5 routines completes in less
  374. Xthan 30 seconds.
  375. X
  376. X    This test suite will ascertain whether the byte-ordering and 
  377. Xmachine-dependent routines are working correctly.
  378. X
  379. XGHK
  380. X
  381. Xecho "=== test begin ==="
  382. Xecho ''
  383. X
  384. Xecho creating: ./tw.db_TEST.@
  385. Xecho creating: ./@tw.config
  386. X
  387. XHOST=`$HOSTNAME`
  388. XCURRPATH=`pwd`
  389. XCURRPATH=`echo $CURRPATH | sed s,/tests$,,`
  390. X
  391. Xsed s,/tmp/genek/$DIST,$CURRPATH, < ./tw.db_TEST > ./tw.db_TEST.@; 
  392. Xsed s,/tmp/genek/$DIST,$CURRPATH, < ./tw.conf.test > ./@tw.config; 
  393. X
  394. X../src/tripwire -c ./@tw.config -d ./tw.db_TEST.@; 
  395. X
  396. Xecho === test end === ;
  397. Xecho ''
  398. X
  399. Xecho Tripwire should have only reported: 
  400. Xecho "    added:   $CURRPATH/tests/@tw.config" 
  401. Xecho "             $CURRPATH/tests/tw.db_TEST.@... "
  402. Xecho "             $CURRPATH/databases/... "
  403. Xecho "    changed: $CURRPATH/... (maybe some directory sizes...) "
  404. Xecho "             ...and any other files you may have changed!"
  405. Xecho ''
  406. Xecho ''
  407. Xecho removing: ./tests/tw.db_TEST.@
  408. Xecho removing: @tw.config
  409. Xrm ./tw.db_TEST.@
  410. Xrm ./@tw.config
  411. END_OF_FILE
  412. if test 1412 -ne `wc -c <'tripwire-1.0/tests/test1.sh'`; then
  413.     echo shar: \"'tripwire-1.0/tests/test1.sh'\" unpacked with wrong size!
  414. fi
  415. # end of 'tripwire-1.0/tests/test1.sh'
  416. fi
  417. if test -f 'tripwire-1.0/sigs/md2/md2.h' -a "${1}" != "-c" ; then 
  418.   echo shar: Will not clobber existing file \"'tripwire-1.0/sigs/md2/md2.h'\"
  419. else
  420. echo shar: Extracting \"'tripwire-1.0/sigs/md2/md2.h'\" \(1216 characters\)
  421. sed "s/^X//" >'tripwire-1.0/sigs/md2/md2.h' <<'END_OF_FILE'
  422. X/* $Id: md2.h,v 1.1.1.2 92/11/02 18:21:27 genek Exp $ */
  423. X
  424. X/* MD2.H - header file for MD2C.C
  425. X */
  426. X
  427. X/* Copyright (C) 1990-2, RSA Data Security, Inc. Created 1990. All
  428. X   rights reserved.
  429. X
  430. X   License to copy and use this software is granted for
  431. X   non-commercial Internet Privacy-Enhanced Mail provided that it is
  432. X   identified as the "RSA Data Security, Inc. MD2 Message Digest
  433. X   Algorithm" in all material mentioning or referencing this software
  434. X   or this function.
  435. X
  436. X   RSA Data Security, Inc. makes no representations concerning either
  437. X   the merchantability of this software or the suitability of this
  438. X   software for any particular purpose. It is provided "as is"
  439. X   without express or implied warranty of any kind.
  440. X
  441. X   These notices must be retained in any copies of any part of this
  442. X   documentation and/or software.
  443. X */
  444. X
  445. X
  446. X
  447. Xtypedef struct {
  448. X  unsigned char state[16];                                 /* state */
  449. X  unsigned char checksum[16];                           /* checksum */
  450. X  unsigned int count;                 /* number of bytes, modulo 16 */
  451. X  unsigned char buffer[16];                         /* input buffer */
  452. X} MD2_CTX;
  453. X
  454. Xvoid MD2Init ();
  455. Xvoid MD2Update ();
  456. Xvoid MD2Final ();
  457. X
  458. Xint sig_md2_get();
  459. END_OF_FILE
  460. if test 1216 -ne `wc -c <'tripwire-1.0/sigs/md2/md2.h'`; then
  461.     echo shar: \"'tripwire-1.0/sigs/md2/md2.h'\" unpacked with wrong size!
  462. fi
  463. # end of 'tripwire-1.0/sigs/md2/md2.h'
  464. fi
  465. if test -f 'tripwire-1.0/contrib/README.CheckConfig' -a "${1}" != "-c" ; then 
  466.   echo shar: Will not clobber existing file \"'tripwire-1.0/contrib/README.CheckConfig'\"
  467. else
  468. echo shar: Extracting \"'tripwire-1.0/contrib/README.CheckConfig'\" \(1216 characters\)
  469. sed "s/^X//" >'tripwire-1.0/contrib/README.CheckConfig' <<'END_OF_FILE'
  470. XCheckConfig
  471. X
  472. XArguably THE most important step in using tripwire on your system is the
  473. Xcreation of a config file for the host.  The config file for you machine must
  474. Xreflect vendor as well as local file structure conventions.
  475. X
  476. XFor example on suns, /var and /usr are functionally equivelent, except with
  477. Xtripwire which cares that one is a symlink to the other.  Some vendors (NeXT)
  478. Xput network tools such as nslookup in /usr/etc while other vendors (HP) put
  479. Xthem in /usr/bin
  480. X
  481. XOn some installations, the convention is to fill /usr/local with new code, on
  482. Xsome locations /usr/local is full of symlinks which point to new code, some
  483. Xlocations might decide to put new code in /Local.
  484. X
  485. XSince the config file MUST match the flavour of your system, CheckConfig was
  486. Xcreated to parse the tripwire.config file and report anomilies.
  487. X
  488. Xusage::  CheckConfig [-v] file
  489. X
  490. XIn non-verbose mode, CheckConfig reports merely on the existance of symbolic
  491. Xlinks in the file.  This warns you that a symlink instead of a directory
  492. Xhierarchy or file is being monitored by tripwire.
  493. X
  494. XIn verbose mode, CheckConfig also shouts about non-existant files and lists
  495. Xall other entries as either directories or files.
  496. X
  497. XLance Bailey <lrb@ctrg.rri.uwo.ca>
  498. X
  499. END_OF_FILE
  500. if test 1216 -ne `wc -c <'tripwire-1.0/contrib/README.CheckConfig'`; then
  501.     echo shar: \"'tripwire-1.0/contrib/README.CheckConfig'\" unpacked with wrong size!
  502. fi
  503. # end of 'tripwire-1.0/contrib/README.CheckConfig'
  504. fi
  505. if test -f 'tripwire-1.0/aux/types.sh' -a "${1}" != "-c" ; then 
  506.   echo shar: Will not clobber existing file \"'tripwire-1.0/aux/types.sh'\"
  507. else
  508. echo shar: Extracting \"'tripwire-1.0/aux/types.sh'\" \(1153 characters\)
  509. sed "s/^X//" >'tripwire-1.0/aux/types.sh' <<'END_OF_FILE'
  510. X#!/bin/sh
  511. X
  512. X# $Id: types.sh,v 1.1.1.1 92/11/02 17:45:16 genek Exp $
  513. X
  514. X# types.sh
  515. X#
  516. X# glean any missing struct stat typedefs.
  517. X#
  518. X# Gene Kim
  519. X# Purdue University
  520. X# October 18, 1992
  521. X
  522. Xif test ! -x ./types
  523. Xthen
  524. X    echo "You must do 'make' first!"
  525. X    exit 1
  526. Xfi
  527. X
  528. XCPP=${1?"Run from the makefile!"}
  529. X
  530. XTYPES=./ourtypes.h
  531. X
  532. X# build our own local copy of types.h
  533. X
  534. Xcat > gettypes.c << 'GHK'
  535. X#include <sys/stat.h>
  536. X#include <sys/types.h>
  537. XGHK
  538. X$CPP gettypes.c > $TYPES
  539. Xrm -f gettypes.c
  540. X
  541. X# print out banner for inode.h
  542. X
  543. Xcat << 'GHK'
  544. X/*
  545. X * inode.h
  546. X *
  547. X *     Do not modify this file.  This file was automatically 
  548. X *     generated by the Tripwire makefile.
  549. X *
  550. X */
  551. X
  552. XGHK
  553. X
  554. X# now start finding the missing typedefs
  555. X
  556. Xgrep mode_t $TYPES > /dev/null 
  557. Xif [ $? -ne 0 ]
  558. Xthen
  559. X    ./types mode_t;
  560. Xfi
  561. X
  562. Xgrep ino_t $TYPES > /dev/null
  563. Xif [ $? -ne 0 ]
  564. Xthen
  565. X    ./types ino_t; 
  566. Xfi
  567. X
  568. Xgrep nlink_t $TYPES > /dev/null
  569. Xif [ $? -ne 0 ]
  570. Xthen
  571. X    ./types nlink_t;
  572. Xfi
  573. X
  574. Xgrep uid_t $TYPES > /dev/null
  575. Xif [ $? -ne 0 ]
  576. Xthen
  577. X    ./types uid_t;
  578. Xfi
  579. X
  580. Xgrep gid_t $TYPES > /dev/null
  581. Xif [ $? -ne 0 ]
  582. Xthen
  583. X    ./types gid_t;
  584. Xfi
  585. X
  586. Xgrep off_t $TYPES > /dev/null
  587. Xif [ $? -ne 0 ]
  588. Xthen
  589. X    ./types off_t;
  590. Xfi
  591. X
  592. Xrm $TYPES
  593. X
  594. Xexit 0;
  595. END_OF_FILE
  596. if test 1153 -ne `wc -c <'tripwire-1.0/aux/types.sh'`; then
  597.     echo shar: \"'tripwire-1.0/aux/types.sh'\" unpacked with wrong size!
  598. fi
  599. chmod +x 'tripwire-1.0/aux/types.sh'
  600. # end of 'tripwire-1.0/aux/types.sh'
  601. fi
  602. if test -f 'tripwire-1.0/configs/conf-mach.h' -a "${1}" != "-c" ; then 
  603.   echo shar: Will not clobber existing file \"'tripwire-1.0/configs/conf-mach.h'\"
  604. else
  605. echo shar: Extracting \"'tripwire-1.0/configs/conf-mach.h'\" \(1119 characters\)
  606. sed "s/^X//" >'tripwire-1.0/configs/conf-mach.h' <<'END_OF_FILE'
  607. X/* $Id: conf-mach.h,v 1.1.1.3 92/11/03 15:38:03 genek Exp $ */
  608. X
  609. X/*
  610. X * conf-mach.h
  611. X *
  612. X *    Tripwire configuration file
  613. X *
  614. X * Peter Shipley
  615. X * TFS (TRW Financial Systems)
  616. X */
  617. X
  618. X/***
  619. X *** Operating System specifics
  620. X ***    
  621. X ***    If the answer to a question in the comment is "Yes", then
  622. X ***    change the corresponding "#undef" to a "#define"
  623. X ***/
  624. X
  625. X/*
  626. X * is your OS a System V derivitive?  if so, what version?
  627. X *            (e.g., define SYSV 4)
  628. X */
  629. X
  630. X#undef SYSV
  631. X
  632. X/* 
  633. X * does your system have a <malloc.h> like System V? 
  634. X */
  635. X
  636. X#undef MALLOCH     
  637. X
  638. X/* 
  639. X * does your system have a <stdlib.h> like POSIX says you should? 
  640. X */
  641. X
  642. X#undef STDLIBH
  643. X
  644. X/*
  645. X * does your system use readdir(3) that returns (struct dirent *)?
  646. X */
  647. X
  648. X/* MACH has readdir(3) but no include file <dirent.h> */
  649. X#undef DIRENT
  650. X
  651. X/*
  652. X * is #include <string.h> ok?  (as opposed to <strings.h>)
  653. X */
  654. X
  655. X#define STRINGH
  656. X
  657. X/* 
  658. X * does your system have gethostname(2) (instead of uname(2))?
  659. X */
  660. X
  661. X#define GETHOSTNAME
  662. X
  663. X
  664. X/*
  665. X * miscellaneous stuff
  666. X */
  667. X
  668. X#define MACH 1
  669. X
  670. X/* MACH seems to be missing the define for S_IFIFO [but is had S_ISFIFO() ] */
  671. X#ifndef S_IFIFO
  672. X#define S_IFIFO 0010000
  673. X#endif
  674. X
  675. X
  676. END_OF_FILE
  677. if test 1119 -ne `wc -c <'tripwire-1.0/configs/conf-mach.h'`; then
  678.     echo shar: \"'tripwire-1.0/configs/conf-mach.h'\" unpacked with wrong size!
  679. fi
  680. # end of 'tripwire-1.0/configs/conf-mach.h'
  681. fi
  682. if test -f 'tripwire-1.0/configs/conf-unicos.h' -a "${1}" != "-c" ; then 
  683.   echo shar: Will not clobber existing file \"'tripwire-1.0/configs/conf-unicos.h'\"
  684. else
  685. echo shar: Extracting \"'tripwire-1.0/configs/conf-unicos.h'\" \(1034 characters\)
  686. sed "s/^X//" >'tripwire-1.0/configs/conf-unicos.h' <<'END_OF_FILE'
  687. X/* $Id: conf-unicos.h,v 1.1.1.3 92/11/03 15:39:37 genek Exp $ */
  688. X
  689. X/*
  690. X * conf-unicos.h
  691. X *
  692. X *    Tripwire configuration file
  693. X *
  694. X * Gene Kim
  695. X * Purdue University
  696. X *
  697. X * Unicos port by:
  698. X *    Michael Barnett <rxxmnb@argolis.osf.rmit.OZ.AU>
  699. X */
  700. X
  701. X/***
  702. X *** Operating System specifics
  703. X ***    
  704. X ***    If the answer to a question in the comment is "Yes", then
  705. X ***    change the corresponding "#undef" to a "#define"
  706. X ***/
  707. X
  708. X/*
  709. X * is your OS a System V derivitive?  if so, what version?
  710. X *            (e.g., define SYSV 4)
  711. X */
  712. X
  713. X#define SYSV 3
  714. X
  715. X/* 
  716. X * does your system have a <malloc.h> like System V? 
  717. X */
  718. X
  719. X#define MALLOCH     
  720. X
  721. X/* 
  722. X * does your system have a <stdlib.h> like POSIX says you should? 
  723. X */
  724. X
  725. X#define STDLIBH
  726. X
  727. X/*
  728. X * does your system use readdir(3) that returns (struct dirent *)?
  729. X */
  730. X
  731. X#define DIRENT
  732. X
  733. X/*
  734. X * is #include <string.h> ok?  (as opposed to <strings.h>)
  735. X */
  736. X
  737. X#define STRINGH
  738. X/* 
  739. X * does your system have gethostname(2) (instead of uname(2))?
  740. X */
  741. X
  742. X#undef GETHOSTNAME
  743. X
  744. X/*
  745. X * miscallaneous stuff -mnb 
  746. X */
  747. X
  748. X#define UNICOS
  749. X#define MAXPATHLEN PATH_MAX
  750. END_OF_FILE
  751. if test 1034 -ne `wc -c <'tripwire-1.0/configs/conf-unicos.h'`; then
  752.     echo shar: \"'tripwire-1.0/configs/conf-unicos.h'\" unpacked with wrong size!
  753. fi
  754. # end of 'tripwire-1.0/configs/conf-unicos.h'
  755. fi
  756. if test -f 'tripwire-1.0/sigs/md5/md5.h' -a "${1}" != "-c" ; then 
  757.   echo shar: Will not clobber existing file \"'tripwire-1.0/sigs/md5/md5.h'\"
  758. else
  759. echo shar: Extracting \"'tripwire-1.0/sigs/md5/md5.h'\" \(1019 characters\)
  760. sed "s/^X//" >'tripwire-1.0/sigs/md5/md5.h' <<'END_OF_FILE'
  761. X/***********************************************************************
  762. X ** md5.h -- header file for implementation of MD5                    **
  763. X ** RSA Data Security, Inc. MD5 Message-Digest Algorithm              **
  764. X ** Created: 2/17/90 RLR                                              **
  765. X ** Revised: 12/27/90 SRD,AJ,BSK,JT Reference C version               **
  766. X ** Revised (for MD5): RLR 4/27/91                                    **
  767. X **********************************************************************/
  768. X/* typedef a 32-bit type */
  769. Xtypedef unsigned long int UINT4;
  770. X
  771. X/* Data structure for MD5 (Message-Digest) computation */
  772. Xtypedef struct {
  773. X  UINT4 i[2];                   /* number of _bits_ handled mod 2^64 */
  774. X  UINT4 buf[4];                                    /* scratch buffer */
  775. X  unsigned char in[64];                              /* input buffer */
  776. X  unsigned char digest[16];     /* actual digest after MD5Final call */
  777. X} MD5_CTX;
  778. X
  779. Xvoid MD5Init();
  780. Xvoid MD5Update();
  781. Xvoid MD5Final();
  782. X
  783. Xint sig_md5_get();
  784. END_OF_FILE
  785. if test 1019 -ne `wc -c <'tripwire-1.0/sigs/md5/md5.h'`; then
  786.     echo shar: \"'tripwire-1.0/sigs/md5/md5.h'\" unpacked with wrong size!
  787. fi
  788. # end of 'tripwire-1.0/sigs/md5/md5.h'
  789. fi
  790. if test -f 'tripwire-1.0/configs/conf-umaxv.h' -a "${1}" != "-c" ; then 
  791.   echo shar: Will not clobber existing file \"'tripwire-1.0/configs/conf-umaxv.h'\"
  792. else
  793. echo shar: Extracting \"'tripwire-1.0/configs/conf-umaxv.h'\" \(1019 characters\)
  794. sed "s/^X//" >'tripwire-1.0/configs/conf-umaxv.h' <<'END_OF_FILE'
  795. X/* $Id: conf-umaxv.h,v 1.1.1.3 92/11/03 15:39:28 genek Exp $ */
  796. X
  797. X/*
  798. X * conf-umaxv.h
  799. X *
  800. X *    Tripwire configuration file
  801. X *
  802. X * Gene Kim
  803. X * Purdue University
  804. X *
  805. X * Modified by Michael Barnett (mikeb@rmit.edu.au) for UMAX V R2.4.1.
  806. X *
  807. X */
  808. X
  809. X/***
  810. X *** Operating System specifics
  811. X ***    
  812. X ***    If the answer to a question in the comment is "Yes", then
  813. X ***    change the corresponding "#undef" to a "#define"
  814. X ***/
  815. X
  816. X/*
  817. X * is your OS a System V derivitive?  if so, what version?
  818. X *            (e.g., define SYSV 4)
  819. X */
  820. X
  821. X#define SYSV 2
  822. X
  823. X/* 
  824. X * does your system have a <malloc.h> like System V? 
  825. X */
  826. X
  827. X#define MALLOCH     
  828. X
  829. X/* 
  830. X * does your system have a <stdlib.h> like POSIX says you should? 
  831. X */
  832. X
  833. X#undef STDLIBH
  834. X
  835. X/*
  836. X * does your system use readdir(3) that returns (struct dirent *)?
  837. X */
  838. X
  839. X#define DIRENT
  840. X
  841. X/*
  842. X * is #include <string.h> ok?  (as opposed to <strings.h>)
  843. X */
  844. X
  845. X#define STRINGH
  846. X/* 
  847. X * does your system have gethostname(2) (instead of uname(2))?
  848. X */
  849. X
  850. X#undef GETHOSTNAME
  851. X
  852. X/*
  853. X * miscellaneous stuff - mnb
  854. X */
  855. X
  856. X#define MAXPATHLEN PATH_MAX
  857. END_OF_FILE
  858. if test 1019 -ne `wc -c <'tripwire-1.0/configs/conf-umaxv.h'`; then
  859.     echo shar: \"'tripwire-1.0/configs/conf-umaxv.h'\" unpacked with wrong size!
  860. fi
  861. # end of 'tripwire-1.0/configs/conf-umaxv.h'
  862. fi
  863. if test -f 'tripwire-1.0/configs/conf-aux3.h' -a "${1}" != "-c" ; then 
  864.   echo shar: Will not clobber existing file \"'tripwire-1.0/configs/conf-aux3.h'\"
  865. else
  866. echo shar: Extracting \"'tripwire-1.0/configs/conf-aux3.h'\" \(1014 characters\)
  867. sed "s/^X//" >'tripwire-1.0/configs/conf-aux3.h' <<'END_OF_FILE'
  868. X/* $Id: conf-aux3.h,v 1.1.1.3 92/11/03 15:37:27 genek Exp $ */
  869. X
  870. X/*
  871. X * conf-aux3.h
  872. X *
  873. X *    Tripwire configuration file
  874. X *
  875. X * Gene Kim
  876. X * Purdue University
  877. X *
  878. X * A/UX port provided by:
  879. X *    Phillip Porch (root@raidernet.com)
  880. X */
  881. X
  882. X/***
  883. X *** Operating System specifics
  884. X ***    
  885. X ***    If the answer to a question in the comment is "Yes", then
  886. X ***    change the corresponding "#undef" to a "#define"
  887. X ***/
  888. X
  889. X/*
  890. X * is your OS a System V derivitive?  if so, what version?
  891. X *            (e.g., define SYSV 4)
  892. X */
  893. X
  894. X#define SYSV 2
  895. X
  896. X/* 
  897. X * does your system have a <malloc.h> like System V? 
  898. X */
  899. X
  900. X#define MALLOCH     
  901. X
  902. X/* 
  903. X * does your system have a <stdlib.h> like POSIX says you should? 
  904. X */
  905. X
  906. X/* #define STDLIBH */
  907. X
  908. X/*
  909. X * does your system use readdir(3) that returns (struct dirent *)?
  910. X */
  911. X
  912. X#define DIRENT
  913. X
  914. X/*
  915. X * is #include <string.h> ok?  (as opposed to <strings.h>)
  916. X */
  917. X
  918. X#define STRINGH 
  919. X/* 
  920. X * does your system have gethostname(2) (instead of uname(2))?
  921. X */
  922. X
  923. X#undef GETHOSTNAME
  924. X
  925. X/*
  926. X * missing defines 
  927. X */
  928. X
  929. X/* #define MAXPATHLEN PATH_MAX */
  930. X
  931. END_OF_FILE
  932. if test 1014 -ne `wc -c <'tripwire-1.0/configs/conf-aux3.h'`; then
  933.     echo shar: \"'tripwire-1.0/configs/conf-aux3.h'\" unpacked with wrong size!
  934. fi
  935. # end of 'tripwire-1.0/configs/conf-aux3.h'
  936. fi
  937. if test -f 'tripwire-1.0/configs/conf-hpux.h' -a "${1}" != "-c" ; then 
  938.   echo shar: Will not clobber existing file \"'tripwire-1.0/configs/conf-hpux.h'\"
  939. else
  940. echo shar: Extracting \"'tripwire-1.0/configs/conf-hpux.h'\" \(995 characters\)
  941. sed "s/^X//" >'tripwire-1.0/configs/conf-hpux.h' <<'END_OF_FILE'
  942. X/* $Id: conf-hpux.h,v 1.1.1.3 92/11/03 15:37:52 genek Exp $ */
  943. X
  944. X/*
  945. X * conf-hpux.h
  946. X *
  947. X *      Tripwire configuration file
  948. X *
  949. X * Gene Kim
  950. X * Purdue University
  951. X *
  952. X * HP/UX port by:
  953. X *     Lance Bailey <lrb@ctrg.rri.uwo.ca>
  954. X */
  955. X
  956. X#define _HPUX_SOURCE
  957. X
  958. X/***
  959. X *** Operating System specifics
  960. X ***    
  961. X ***    If the answer to a question in the comment is "Yes", then
  962. X ***    change the corresponding "#undef" to a "#define"
  963. X ***/
  964. X
  965. X/*
  966. X * is your OS a System V derivitive?  if so, what version?
  967. X *                      (e.g., define SYSV 4)
  968. X */
  969. X
  970. X#undef SYSV
  971. X
  972. X/* 
  973. X * does your system have a <malloc.h> like System V? 
  974. X */
  975. X
  976. X#define MALLOCH         
  977. X
  978. X/* 
  979. X * does your system have a <stdlib.h> like POSIX says you should? 
  980. X */
  981. X
  982. X#define STDLIBH
  983. X
  984. X/*
  985. X * does your system use readdir(3) that returns (struct dirent *)?
  986. X */
  987. X
  988. X#define DIRENT
  989. X
  990. X/*
  991. X * is #include <string.h> ok?  (as opposed to <strings.h>)
  992. X */
  993. X
  994. X#define STRINGH
  995. X
  996. X/* 
  997. X * does your system have gethostname(2) (instead of uname(2))?
  998. X */
  999. X
  1000. X#define GETHOSTNAME
  1001. END_OF_FILE
  1002. if test 995 -ne `wc -c <'tripwire-1.0/configs/conf-hpux.h'`; then
  1003.     echo shar: \"'tripwire-1.0/configs/conf-hpux.h'\" unpacked with wrong size!
  1004. fi
  1005. # end of 'tripwire-1.0/configs/conf-hpux.h'
  1006. fi
  1007. if test -f 'tripwire-1.0/src/nullsig.c' -a "${1}" != "-c" ; then 
  1008.   echo shar: Will not clobber existing file \"'tripwire-1.0/src/nullsig.c'\"
  1009. else
  1010. echo shar: Extracting \"'tripwire-1.0/src/nullsig.c'\" \(992 characters\)
  1011. sed "s/^X//" >'tripwire-1.0/src/nullsig.c' <<'END_OF_FILE'
  1012. X#ifndef lint
  1013. Xstatic char rcsid[] = "$Id: nullsig.c,v 1.2 92/11/03 02:43:55 genek Exp $";
  1014. X#endif
  1015. X
  1016. X/*
  1017. X * nullsig.c
  1018. X *
  1019. X *    hook for null signature
  1020. X *
  1021. X * Gene Kim
  1022. X * Purdue University
  1023. X */
  1024. X
  1025. X#include "../include/config.h"
  1026. X#include <stdio.h>
  1027. X#ifdef STDLIBH
  1028. X#include <stdlib.h>
  1029. X#include <unistd.h>
  1030. X#endif
  1031. X#include <sys/types.h>
  1032. X#include <sys/stat.h>
  1033. X#include "../include/tripwire.h"
  1034. X#include "../include/sigs.h"
  1035. X
  1036. X/*
  1037. X * int
  1038. X * pf_signature(int fd_in, char *ps_signature, int siglen)
  1039. X *
  1040. X *    fd_in:         pointer to input file descriptor
  1041. X *    ps_signature:     pointer to array where signature will be stored
  1042. X *    siglen:     length of the signature array (for overflow checking)
  1043. X */
  1044. X
  1045. Xint
  1046. Xsig_null_get (fd_in, ps_signature, siglen)
  1047. X    int fd_in;
  1048. X    char *ps_signature;
  1049. X    int siglen;
  1050. X{
  1051. X    /* rewind the file descriptor */
  1052. X    if (lseek(fd_in, 0, SEEK_SET) < 0) {
  1053. X    die_with_err("sig_null_get: lseek()", (char *) NULL);
  1054. X    }
  1055. X
  1056. X    /* lint pacifier */
  1057. X    siglen += 0;
  1058. X
  1059. X    sprintf(ps_signature, "0");
  1060. X    return 0;
  1061. X}
  1062. END_OF_FILE
  1063. if test 992 -ne `wc -c <'tripwire-1.0/src/nullsig.c'`; then
  1064.     echo shar: \"'tripwire-1.0/src/nullsig.c'\" unpacked with wrong size!
  1065. fi
  1066. # end of 'tripwire-1.0/src/nullsig.c'
  1067. fi
  1068. if test -f 'tripwire-1.0/configs/conf-aix.h' -a "${1}" != "-c" ; then 
  1069.   echo shar: Will not clobber existing file \"'tripwire-1.0/configs/conf-aix.h'\"
  1070. else
  1071. echo shar: Extracting \"'tripwire-1.0/configs/conf-aix.h'\" \(985 characters\)
  1072. sed "s/^X//" >'tripwire-1.0/configs/conf-aix.h' <<'END_OF_FILE'
  1073. X/* $Id: conf-aix.h,v 1.1.1.3 92/11/03 15:37:20 genek Exp $ */
  1074. X
  1075. X/*
  1076. X * conf-aix.h
  1077. X *
  1078. X *    Tripwire configuration file
  1079. X *
  1080. X * Gene Kim
  1081. X * Purdue University
  1082. X */
  1083. X
  1084. X/***
  1085. X *** Operating System specifics
  1086. X ***    
  1087. X ***    If the answer to a question in the comment is "Yes", then
  1088. X ***    change the corresponding "#undef" to a "#define"
  1089. X ***/
  1090. X
  1091. X/*
  1092. X * is your OS a System V derivitive?  if so, what version?
  1093. X *            (e.g., define SYSV 4)
  1094. X */
  1095. X
  1096. X#undef SYSV
  1097. X
  1098. X/* 
  1099. X * does your system have a <malloc.h> like System V? 
  1100. X */
  1101. X
  1102. X#undef MALLOCH     
  1103. X
  1104. X/* 
  1105. X * does your system have a <stdlib.h> like POSIX says you should? 
  1106. X */
  1107. X
  1108. X#undef STDLIBH
  1109. X
  1110. X/* 
  1111. X * does your system have gethostname(2) (instead of uname(2))?
  1112. X */
  1113. X
  1114. X#define GETHOSTNAME
  1115. X
  1116. X/*
  1117. X * does your system use readdir(3) that returns (struct dirent *)?
  1118. X */
  1119. X
  1120. X#define DIRENT
  1121. X
  1122. X/*
  1123. X * is #include <string.h> ok?  (as opposed to <strings.h>)
  1124. X */
  1125. X
  1126. X#define STRINGH
  1127. X/* 
  1128. X * miscellaneous stuff
  1129. X *
  1130. X *    AIX redefines much of <sys/types> typedefs as unsigned longs.
  1131. X */
  1132. X
  1133. X#define AIX        
  1134. END_OF_FILE
  1135. if test 985 -ne `wc -c <'tripwire-1.0/configs/conf-aix.h'`; then
  1136.     echo shar: \"'tripwire-1.0/configs/conf-aix.h'\" unpacked with wrong size!
  1137. fi
  1138. # end of 'tripwire-1.0/configs/conf-aix.h'
  1139. fi
  1140. if test -f 'tripwire-1.0/configs/conf-xenix.h' -a "${1}" != "-c" ; then 
  1141.   echo shar: Will not clobber existing file \"'tripwire-1.0/configs/conf-xenix.h'\"
  1142. else
  1143. echo shar: Extracting \"'tripwire-1.0/configs/conf-xenix.h'\" \(977 characters\)
  1144. sed "s/^X//" >'tripwire-1.0/configs/conf-xenix.h' <<'END_OF_FILE'
  1145. X/* $Id: conf-xenix.h,v 1.1.1.3 92/11/03 15:39:45 genek Exp $ */
  1146. X
  1147. X/*
  1148. X * conf-xenix.h
  1149. X *
  1150. X *    Tripwire configuration file
  1151. X *
  1152. X * Gene Kim
  1153. X * Purdue University
  1154. X *
  1155. X * Xenix port by:
  1156. X *    Daniel Ray <norstar@tnl.com>
  1157. X */
  1158. X
  1159. X/***
  1160. X *** Operating System specifics
  1161. X ***    
  1162. X ***    If the answer to a question in the comment is "Yes", then
  1163. X ***    change the corresponding "#undef" to a "#define"
  1164. X ***/
  1165. X
  1166. X/*
  1167. X * is your OS a System V derivitive?  if so, what version?
  1168. X *            (e.g., define SYSV 4)
  1169. X */
  1170. X
  1171. X#define SYSV 3
  1172. X
  1173. X/* 
  1174. X * does your system have a <malloc.h> like System V? 
  1175. X */
  1176. X
  1177. X#define MALLOCH     
  1178. X
  1179. X/* 
  1180. X * does your system have a <stdlib.h> like POSIX says you should? 
  1181. X */
  1182. X
  1183. X#define STDLIBH
  1184. X
  1185. X/*
  1186. X * does your system use readdir(3) that returns (struct dirent *)?
  1187. X */
  1188. X
  1189. X#undef DIRENT
  1190. X
  1191. X/*
  1192. X * is #include <string.h> ok?  (as opposed to <strings.h>)
  1193. X */
  1194. X
  1195. X#define STRINGH
  1196. X/* 
  1197. X * does your system have gethostname(2) (instead of uname(2))?
  1198. X */
  1199. X
  1200. X#undef GETHOSTNAME
  1201. X
  1202. X/*
  1203. X * miscallaneous stuff 
  1204. X */
  1205. X
  1206. X#define XENIX
  1207. END_OF_FILE
  1208. if test 977 -ne `wc -c <'tripwire-1.0/configs/conf-xenix.h'`; then
  1209.     echo shar: \"'tripwire-1.0/configs/conf-xenix.h'\" unpacked with wrong size!
  1210. fi
  1211. # end of 'tripwire-1.0/configs/conf-xenix.h'
  1212. fi
  1213. if test -f 'tripwire-1.0/configs/conf-convex.h' -a "${1}" != "-c" ; then 
  1214.   echo shar: Will not clobber existing file \"'tripwire-1.0/configs/conf-convex.h'\"
  1215. else
  1216. echo shar: Extracting \"'tripwire-1.0/configs/conf-convex.h'\" \(961 characters\)
  1217. sed "s/^X//" >'tripwire-1.0/configs/conf-convex.h' <<'END_OF_FILE'
  1218. X/* $Id: conf-convex.h,v 1.1.1.3 92/11/03 15:37:36 genek Exp $ */
  1219. X
  1220. X/*
  1221. X * conf-convex.h
  1222. X *
  1223. X *    Tripwire configuration file
  1224. X *
  1225. X * Gene Kim
  1226. X * Purdue University
  1227. X * 
  1228. X * Ported to COnvexos 9.1 
  1229. X *    by Adrian P van Bloois at ACCU <adrian@cc.ruu.nl>
  1230. X */
  1231. X
  1232. X/***
  1233. X *** Operating System specifics
  1234. X ***    
  1235. X ***    If the answer to a question in the comment is "Yes", then
  1236. X ***    change the corresponding "#undef" to a "#define"
  1237. X ***/
  1238. X
  1239. X/*
  1240. X * is your OS a System V derivitive?  if so, what version?
  1241. X *            (e.g., define SYSV 4)
  1242. X */
  1243. X
  1244. X#undef SYSV
  1245. X
  1246. X/* 
  1247. X * does your system have a <malloc.h> like System V? 
  1248. X */
  1249. X
  1250. X#undef MALLOCH     
  1251. X
  1252. X/* 
  1253. X * does your system have a <stdlib.h> like POSIX says you should? 
  1254. X */
  1255. X
  1256. X#define STDLIBH
  1257. X
  1258. X/*
  1259. X * does your system use readdir(3) that returns (struct dirent *)?
  1260. X */
  1261. X
  1262. X#define DIRENT
  1263. X
  1264. X/*
  1265. X * is #include <string.h> ok?  (as opposed to <strings.h>)
  1266. X */
  1267. X
  1268. X#define STRINGH
  1269. X/* 
  1270. X * does your system have gethostname(2) (instead of uname(2))?
  1271. X */
  1272. X
  1273. X#define GETHOSTNAME
  1274. END_OF_FILE
  1275. if test 961 -ne `wc -c <'tripwire-1.0/configs/conf-convex.h'`; then
  1276.     echo shar: \"'tripwire-1.0/configs/conf-convex.h'\" unpacked with wrong size!
  1277. fi
  1278. # end of 'tripwire-1.0/configs/conf-convex.h'
  1279. fi
  1280. if test -f 'tripwire-1.0/configs/conf-riscos.h' -a "${1}" != "-c" ; then 
  1281.   echo shar: Will not clobber existing file \"'tripwire-1.0/configs/conf-riscos.h'\"
  1282. else
  1283. echo shar: Extracting \"'tripwire-1.0/configs/conf-riscos.h'\" \(960 characters\)
  1284. sed "s/^X//" >'tripwire-1.0/configs/conf-riscos.h' <<'END_OF_FILE'
  1285. X/* $Id: conf-riscos.h,v 1.1.1.3 92/11/03 15:38:43 genek Exp $ */
  1286. X
  1287. X/*
  1288. X * conf-riscos4.h (for SYSTYPE_BSD43)
  1289. X *
  1290. X *    Tripwire configuration file
  1291. X *
  1292. X * Gene Kim
  1293. X * Purdue University
  1294. X *
  1295. X * Ported to RiscOS 
  1296. X *    Harlan Stenn <harlan@mumps.pfcs.com>
  1297. X */
  1298. X
  1299. X/***
  1300. X *** Operating System specifics
  1301. X ***    
  1302. X ***    If the answer to a question in the comment is "Yes", then
  1303. X ***    change the corresponding "#undef" to a "#define"
  1304. X ***/
  1305. X
  1306. X/*
  1307. X * is your OS a System V derivitive?  if so, what version?
  1308. X *            (e.g., define SYSV 4)
  1309. X */
  1310. X
  1311. X#undef SYSV
  1312. X
  1313. X/* 
  1314. X * does your system have a <malloc.h> like System V? 
  1315. X */
  1316. X
  1317. X#undef MALLOCH     
  1318. X
  1319. X/* 
  1320. X * does your system have a <stdlib.h> like POSIX says you should? 
  1321. X */
  1322. X
  1323. X#undef STDLIBH
  1324. X
  1325. X/*
  1326. X * does your system use readdir(3) that returns (struct dirent *)?
  1327. X */
  1328. X
  1329. X#undef DIRENT
  1330. X
  1331. X/*
  1332. X * is #include <string.h> ok?  (as opposed to <strings.h>)
  1333. X */
  1334. X
  1335. X#define STRINGH
  1336. X/* 
  1337. X * does your system have gethostname(2) (instead of uname(2))?
  1338. X */
  1339. X
  1340. X#define GETHOSTNAME
  1341. END_OF_FILE
  1342. if test 960 -ne `wc -c <'tripwire-1.0/configs/conf-riscos.h'`; then
  1343.     echo shar: \"'tripwire-1.0/configs/conf-riscos.h'\" unpacked with wrong size!
  1344. fi
  1345. # end of 'tripwire-1.0/configs/conf-riscos.h'
  1346. fi
  1347. if test -f 'tripwire-1.0/configs/conf-irix4.h' -a "${1}" != "-c" ; then 
  1348.   echo shar: Will not clobber existing file \"'tripwire-1.0/configs/conf-irix4.h'\"
  1349. else
  1350. echo shar: Extracting \"'tripwire-1.0/configs/conf-irix4.h'\" \(951 characters\)
  1351. sed "s/^X//" >'tripwire-1.0/configs/conf-irix4.h' <<'END_OF_FILE'
  1352. X/* $Id: conf-irix4.h,v 1.1.1.3 92/11/03 15:37:56 genek Exp $ */
  1353. X
  1354. X/*
  1355. X * conf-irix4.h
  1356. X *
  1357. X *    Tripwire configuration file
  1358. X *
  1359. X * Gene Kim
  1360. X * Purdue University
  1361. X *
  1362. X * IRIX4 port by:
  1363. X *     Simon Leinen <simon@lia.di.epfl.ch>
  1364. X *     Ecole Polytechnique Federale de Lausanne
  1365. X */
  1366. X
  1367. X/***
  1368. X *** Operating System specifics
  1369. X ***    
  1370. X ***    If the answer to a question in the comment is "Yes", then
  1371. X ***    change the corresponding "#undef" to a "#define"
  1372. X ***/
  1373. X
  1374. X/*
  1375. X * is your OS a System V derivitive?  if so, what version?
  1376. X *            (e.g., define SYSV 4)
  1377. X */
  1378. X
  1379. X#define SYSV 3
  1380. X
  1381. X/* 
  1382. X * does your system have a <malloc.h> like System V? 
  1383. X */
  1384. X
  1385. X#define MALLOCH     
  1386. X
  1387. X/* 
  1388. X * does your system have a <stdlib.h> like POSIX says you should? 
  1389. X */
  1390. X
  1391. X#define STDLIBH
  1392. X
  1393. X/*
  1394. X * does your system use readdir(3) that returns (struct dirent *)?
  1395. X */
  1396. X
  1397. X#define DIRENT
  1398. X
  1399. X/*
  1400. X * does your system have lstat()
  1401. X */
  1402. X#define HAVE_LSTAT
  1403. X
  1404. X/*
  1405. X * is #include <string.h> ok?  (as opposed to <strings.h>)
  1406. X */
  1407. X
  1408. X#define STRINGH
  1409. END_OF_FILE
  1410. if test 951 -ne `wc -c <'tripwire-1.0/configs/conf-irix4.h'`; then
  1411.     echo shar: \"'tripwire-1.0/configs/conf-irix4.h'\" unpacked with wrong size!
  1412. fi
  1413. # end of 'tripwire-1.0/configs/conf-irix4.h'
  1414. fi
  1415. if test -f 'tripwire-1.0/configs/conf-svr3.h' -a "${1}" != "-c" ; then 
  1416.   echo shar: Will not clobber existing file \"'tripwire-1.0/configs/conf-svr3.h'\"
  1417. else
  1418. echo shar: Extracting \"'tripwire-1.0/configs/conf-svr3.h'\" \(936 characters\)
  1419. sed "s/^X//" >'tripwire-1.0/configs/conf-svr3.h' <<'END_OF_FILE'
  1420. X/* $Id: conf-svr3.h,v 1.1.1.3 92/11/03 15:39:10 genek Exp $ */
  1421. X
  1422. X/*
  1423. X * conf-svr3.h
  1424. X *
  1425. X *    Tripwire configuration file
  1426. X *
  1427. X * Gene Kim
  1428. X * Purdue University
  1429. X *
  1430. X */
  1431. X
  1432. X/***
  1433. X *** Operating System specifics
  1434. X ***    
  1435. X ***    If the answer to a question in the comment is "Yes", then
  1436. X ***    change the corresponding "#undef" to a "#define"
  1437. X ***/
  1438. X
  1439. X/*
  1440. X * is your OS a System V derivitive?  if so, what version?
  1441. X *            (e.g., define SYSV 4)
  1442. X */
  1443. X
  1444. X#define SYSV 3
  1445. X
  1446. X/* 
  1447. X * does your system have a <malloc.h> like System V? 
  1448. X */
  1449. X
  1450. X#define MALLOCH     
  1451. X
  1452. X/* 
  1453. X * does your system have a <stdlib.h> like POSIX says you should? 
  1454. X */
  1455. X
  1456. X#define STDLIBH
  1457. X
  1458. X/*
  1459. X * does your system use readdir(3) that returns (struct dirent *)?
  1460. X */
  1461. X
  1462. X#define DIRENT
  1463. X
  1464. X/*
  1465. X * is #include <string.h> ok?  (as opposed to <strings.h>)
  1466. X */
  1467. X
  1468. X#define STRINGH
  1469. X/* 
  1470. X * does your system have gethostname(2) (instead of uname(2))?
  1471. X */
  1472. X
  1473. X#undef GETHOSTNAME
  1474. X
  1475. X/*
  1476. X * missing defines 
  1477. X */
  1478. X
  1479. X#define MAXPATHLEN PATH_MAX
  1480. END_OF_FILE
  1481. if test 936 -ne `wc -c <'tripwire-1.0/configs/conf-svr3.h'`; then
  1482.     echo shar: \"'tripwire-1.0/configs/conf-svr3.h'\" unpacked with wrong size!
  1483. fi
  1484. # end of 'tripwire-1.0/configs/conf-svr3.h'
  1485. fi
  1486. if test -f 'tripwire-1.0/configs/conf-osf1.h' -a "${1}" != "-c" ; then 
  1487.   echo shar: Will not clobber existing file \"'tripwire-1.0/configs/conf-osf1.h'\"
  1488. else
  1489. echo shar: Extracting \"'tripwire-1.0/configs/conf-osf1.h'\" \(921 characters\)
  1490. sed "s/^X//" >'tripwire-1.0/configs/conf-osf1.h' <<'END_OF_FILE'
  1491. X/* $Id: conf-osf1.h,v 1.1.1.3 92/11/03 15:38:10 genek Exp $ */
  1492. X
  1493. X/*
  1494. X * conf-osf1.h
  1495. X *
  1496. X *    Tripwire configuration file
  1497. X *
  1498. X * Gene Kim
  1499. X * Purdue University
  1500. X *
  1501. X * OSF/1 port by:
  1502. X *    Rich Salz <rsalz@osf.org>
  1503. X */
  1504. X
  1505. X/***
  1506. X *** Operating System specifics
  1507. X ***    
  1508. X ***    If the answer to a question in the comment is "Yes", then
  1509. X ***    change the corresponding "#undef" to a "#define"
  1510. X ***/
  1511. X
  1512. X/*
  1513. X * is your OS a System V derivitive?  if so, what version?
  1514. X *            (e.g., define SYSV 4)
  1515. X */
  1516. X
  1517. X#undef SYSV
  1518. X
  1519. X/* 
  1520. X * does your system have a <malloc.h> like System V? 
  1521. X */
  1522. X
  1523. X#undef MALLOCH     
  1524. X
  1525. X/* 
  1526. X * does your system have a <stdlib.h> like POSIX says you should? 
  1527. X */
  1528. X
  1529. X#undef STDLIBH
  1530. X
  1531. X/* 
  1532. X * does your system have gethostname(2) (instead of uname(2))?
  1533. X */
  1534. X
  1535. X#define GETHOSTNAME
  1536. X
  1537. X/*
  1538. X * does your system use readdir(3) that returns (struct dirent *)?
  1539. X */
  1540. X
  1541. X#define DIRENT
  1542. X
  1543. X/*
  1544. X * is #include <string.h> ok?  (as opposed to <strings.h>)
  1545. X */
  1546. X
  1547. X#define STRINGH
  1548. END_OF_FILE
  1549. if test 921 -ne `wc -c <'tripwire-1.0/configs/conf-osf1.h'`; then
  1550.     echo shar: \"'tripwire-1.0/configs/conf-osf1.h'\" unpacked with wrong size!
  1551. fi
  1552. # end of 'tripwire-1.0/configs/conf-osf1.h'
  1553. fi
  1554. if test -f 'tripwire-1.0/configs/conf-sunos-4.0.h' -a "${1}" != "-c" ; then 
  1555.   echo shar: Will not clobber existing file \"'tripwire-1.0/configs/conf-sunos-4.0.h'\"
  1556. else
  1557. echo shar: Extracting \"'tripwire-1.0/configs/conf-sunos-4.0.h'\" \(914 characters\)
  1558. sed "s/^X//" >'tripwire-1.0/configs/conf-sunos-4.0.h' <<'END_OF_FILE'
  1559. X/* $Id: conf-sunos-4.0.h,v 1.1.1.3 92/11/03 15:38:57 genek Exp $ */
  1560. X
  1561. X/*
  1562. X * conf-sunos-4.0.h  (SunOS versions prior to 4.1)
  1563. X *
  1564. X *    Tripwire configuration file
  1565. X *
  1566. X * Gene Kim
  1567. X * Purdue University
  1568. X */
  1569. X
  1570. X/***
  1571. X *** Operating System specifics
  1572. X ***    
  1573. X ***    If the answer to a question in the comment is "Yes", then
  1574. X ***    change the corresponding "#undef" to a "#define"
  1575. X ***/
  1576. X
  1577. X/*
  1578. X * is your OS a System V derivitive?  if so, what version?
  1579. X *            (e.g., define SYSV 4)
  1580. X */
  1581. X
  1582. X#undef SYSV
  1583. X
  1584. X/* 
  1585. X * does your system have a <malloc.h> like System V? 
  1586. X */
  1587. X
  1588. X#define MALLOCH     
  1589. X
  1590. X/* 
  1591. X * does your system have a <stdlib.h> like POSIX says you should? 
  1592. X */
  1593. X
  1594. X#undef STDLIBH
  1595. X
  1596. X/*
  1597. X * does your system use readdir(3) that returns (struct dirent *)?
  1598. X */
  1599. X
  1600. X#define DIRENT
  1601. X
  1602. X/*
  1603. X * is #include <string.h> ok?  (as opposed to <strings.h>)
  1604. X */
  1605. X
  1606. X#define STRINGH
  1607. X/* 
  1608. X * does your system have gethostname(2) (instead of uname(2))?
  1609. X */
  1610. X
  1611. X#define GETHOSTNAME
  1612. END_OF_FILE
  1613. if test 914 -ne `wc -c <'tripwire-1.0/configs/conf-sunos-4.0.h'`; then
  1614.     echo shar: \"'tripwire-1.0/configs/conf-sunos-4.0.h'\" unpacked with wrong size!
  1615. fi
  1616. # end of 'tripwire-1.0/configs/conf-sunos-4.0.h'
  1617. fi
  1618. if test -f 'tripwire-1.0/configs/conf-sunos-4.1.h' -a "${1}" != "-c" ; then 
  1619.   echo shar: Will not clobber existing file \"'tripwire-1.0/configs/conf-sunos-4.1.h'\"
  1620. else
  1621. echo shar: Extracting \"'tripwire-1.0/configs/conf-sunos-4.1.h'\" \(909 characters\)
  1622. sed "s/^X//" >'tripwire-1.0/configs/conf-sunos-4.1.h' <<'END_OF_FILE'
  1623. X/* $Id: conf-sunos-4.1.h,v 1.1.1.3 92/11/03 15:39:03 genek Exp $ */
  1624. X
  1625. X/*
  1626. X * conf-sunos-4.1.h  (SunOS versions >= 4.1)
  1627. X *
  1628. X *    Tripwire configuration file
  1629. X *
  1630. X * Gene Kim
  1631. X * Purdue University
  1632. X */
  1633. X
  1634. X/***
  1635. X *** Operating System specifics
  1636. X ***    
  1637. X ***    If the answer to a question in the comment is "Yes", then
  1638. X ***    change the corresponding "#undef" to a "#define"
  1639. X ***/
  1640. X
  1641. X/*
  1642. X * is your OS a System V derivitive?  if so, what version?
  1643. X *            (e.g., define SYSV 4)
  1644. X */
  1645. X
  1646. X#undef SYSV
  1647. X
  1648. X/* 
  1649. X * does your system have a <malloc.h> like System V? 
  1650. X */
  1651. X
  1652. X#define MALLOCH     
  1653. X
  1654. X/* 
  1655. X * does your system have a <stdlib.h> like POSIX says you should? 
  1656. X */
  1657. X
  1658. X#define STDLIBH
  1659. X
  1660. X/*
  1661. X * does your system use readdir(3) that returns (struct dirent *)?
  1662. X */
  1663. X
  1664. X#define DIRENT
  1665. X
  1666. X/*
  1667. X * is #include <string.h> ok?  (as opposed to <strings.h>)
  1668. X */
  1669. X
  1670. X#define STRINGH
  1671. X/* 
  1672. X * does your system have gethostname(2) (instead of uname(2))?
  1673. X */
  1674. X
  1675. X#define GETHOSTNAME
  1676. END_OF_FILE
  1677. if test 909 -ne `wc -c <'tripwire-1.0/configs/conf-sunos-4.1.h'`; then
  1678.     echo shar: \"'tripwire-1.0/configs/conf-sunos-4.1.h'\" unpacked with wrong size!
  1679. fi
  1680. # end of 'tripwire-1.0/configs/conf-sunos-4.1.h'
  1681. fi
  1682. if test -f 'tripwire-1.0/configs/conf-svr4.h' -a "${1}" != "-c" ; then 
  1683.   echo shar: Will not clobber existing file \"'tripwire-1.0/configs/conf-svr4.h'\"
  1684. else
  1685. echo shar: Extracting \"'tripwire-1.0/configs/conf-svr4.h'\" \(876 characters\)
  1686. sed "s/^X//" >'tripwire-1.0/configs/conf-svr4.h' <<'END_OF_FILE'
  1687. X/* $Id: conf-svr4.h,v 1.1.1.3 92/11/03 15:39:18 genek Exp $ */
  1688. X
  1689. X/*
  1690. X * conf-svr4.h
  1691. X *
  1692. X *    Tripwire configuration file
  1693. X *
  1694. X * Gene Kim
  1695. X * Purdue University
  1696. X */
  1697. X
  1698. X/***
  1699. X *** Operating System specifics
  1700. X ***    
  1701. X ***    If the answer to a question in the comment is "Yes", then
  1702. X ***    change the corresponding "#undef" to a "#define"
  1703. X ***/
  1704. X
  1705. X/*
  1706. X * is your OS a System V derivitive?  if so, what version?
  1707. X *            (e.g., define SYSV 4)
  1708. X */
  1709. X
  1710. X#define SYSV 4
  1711. X
  1712. X/* 
  1713. X * does your system have a <malloc.h> like System V? 
  1714. X */
  1715. X
  1716. X#define MALLOCH     
  1717. X
  1718. X/* 
  1719. X * does your system have a <stdlib.h> like POSIX says you should? 
  1720. X */
  1721. X
  1722. X#define STDLIBH
  1723. X
  1724. X/*
  1725. X * does your system use readdir(3) that returns (struct dirent *)?
  1726. X */
  1727. X
  1728. X#define DIRENT
  1729. X
  1730. X/*
  1731. X * is #include <string.h> ok?  (as opposed to <strings.h>)
  1732. X */
  1733. X
  1734. X#define STRINGH
  1735. X/* 
  1736. X * does your system have gethostname(2) (instead of uname(2))?
  1737. X */
  1738. X
  1739. X#undef GETHOSTNAME
  1740. END_OF_FILE
  1741. if test 876 -ne `wc -c <'tripwire-1.0/configs/conf-svr4.h'`; then
  1742.     echo shar: \"'tripwire-1.0/configs/conf-svr4.h'\" unpacked with wrong size!
  1743. fi
  1744. # end of 'tripwire-1.0/configs/conf-svr4.h'
  1745. fi
  1746. if test -f 'tripwire-1.0/configs/conf-dynix.h' -a "${1}" != "-c" ; then 
  1747.   echo shar: Will not clobber existing file \"'tripwire-1.0/configs/conf-dynix.h'\"
  1748. else
  1749. echo shar: Extracting \"'tripwire-1.0/configs/conf-dynix.h'\" \(873 characters\)
  1750. sed "s/^X//" >'tripwire-1.0/configs/conf-dynix.h' <<'END_OF_FILE'
  1751. X/* $Id: conf-dynix.h,v 1.1.1.3 92/11/03 15:37:43 genek Exp $ */
  1752. X
  1753. X/*
  1754. X * conf-dynix.h
  1755. X *
  1756. X *    Tripwire configuration file
  1757. X *
  1758. X * Gene Kim
  1759. X * Purdue University
  1760. X */
  1761. X
  1762. X/***
  1763. X *** Operating System specifics
  1764. X ***    
  1765. X ***    If the answer to a question in the comment is "Yes", then
  1766. X ***    change the corresponding "#undef" to a "#define"
  1767. X ***/
  1768. X
  1769. X/*
  1770. X * is your OS a System V derivitive?  if so, what version?
  1771. X *            (e.g., define SYSV 4)
  1772. X */
  1773. X
  1774. X#undef SYSV
  1775. X
  1776. X/* 
  1777. X * does your system have a <malloc.h> like System V? 
  1778. X */
  1779. X
  1780. X#undef MALLOCH     
  1781. X
  1782. X/* 
  1783. X * does your system have a <stdlib.h> like POSIX says you should? 
  1784. X */
  1785. X
  1786. X#undef STDLIBH
  1787. X
  1788. X/*
  1789. X * does your system use readdir(3) that returns (struct dirent *)?
  1790. X */
  1791. X
  1792. X#undef DIRENT
  1793. X
  1794. X/*
  1795. X * is #include <string.h> ok?  (as opposed to <strings.h>)
  1796. X */
  1797. X
  1798. X#define STRINGH
  1799. X/* 
  1800. X * does your system have gethostname(2) (instead of uname(2))?
  1801. X */
  1802. X
  1803. X#define GETHOSTNAME
  1804. END_OF_FILE
  1805. if test 873 -ne `wc -c <'tripwire-1.0/configs/conf-dynix.h'`; then
  1806.     echo shar: \"'tripwire-1.0/configs/conf-dynix.h'\" unpacked with wrong size!
  1807. fi
  1808. # end of 'tripwire-1.0/configs/conf-dynix.h'
  1809. fi
  1810. if test -f 'tripwire-1.0/configs/conf-bsd.h' -a "${1}" != "-c" ; then 
  1811.   echo shar: Will not clobber existing file \"'tripwire-1.0/configs/conf-bsd.h'\"
  1812. else
  1813. echo shar: Extracting \"'tripwire-1.0/configs/conf-bsd.h'\" \(869 characters\)
  1814. sed "s/^X//" >'tripwire-1.0/configs/conf-bsd.h' <<'END_OF_FILE'
  1815. X/* $Id: conf-bsd.h,v 1.1.1.3 92/11/03 15:37:31 genek Exp $ */
  1816. X
  1817. X/*
  1818. X * conf-bsd.h
  1819. X *
  1820. X *    Tripwire configuration file
  1821. X *
  1822. X * Gene Kim
  1823. X * Purdue University
  1824. X */
  1825. X
  1826. X/***
  1827. X *** Operating System specifics
  1828. X ***    
  1829. X ***    If the answer to a question in the comment is "Yes", then
  1830. X ***    change the corresponding "#undef" to a "#define"
  1831. X ***/
  1832. X
  1833. X/*
  1834. X * is your OS a System V derivitive?  if so, what version?
  1835. X *            (e.g., define SYSV 4)
  1836. X */
  1837. X
  1838. X#undef SYSV
  1839. X
  1840. X/* 
  1841. X * does your system have a <malloc.h> like System V? 
  1842. X */
  1843. X
  1844. X#undef MALLOCH     
  1845. X
  1846. X/* 
  1847. X * does your system have a <stdlib.h> like POSIX says you should? 
  1848. X */
  1849. X
  1850. X#undef STDLIBH
  1851. X
  1852. X/*
  1853. X * does your system use readdir(3) that returns (struct dirent *)?
  1854. X */
  1855. X
  1856. X#undef DIRENT
  1857. X
  1858. X/*
  1859. X * is #include <string.h> ok?  (as opposed to <strings.h>)
  1860. X */
  1861. X
  1862. X#define STRINGH
  1863. X/* 
  1864. X * does your system have gethostname(2) (instead of uname(2))?
  1865. X */
  1866. X
  1867. X#define GETHOSTNAME
  1868. END_OF_FILE
  1869. if test 869 -ne `wc -c <'tripwire-1.0/configs/conf-bsd.h'`; then
  1870.     echo shar: \"'tripwire-1.0/configs/conf-bsd.h'\" unpacked with wrong size!
  1871. fi
  1872. # end of 'tripwire-1.0/configs/conf-bsd.h'
  1873. fi
  1874. if test -f 'tripwire-1.0/sigs/md2/global.h' -a "${1}" != "-c" ; then 
  1875.   echo shar: Will not clobber existing file \"'tripwire-1.0/sigs/md2/global.h'\"
  1876. else
  1877. echo shar: Extracting \"'tripwire-1.0/sigs/md2/global.h'\" \(858 characters\)
  1878. sed "s/^X//" >'tripwire-1.0/sigs/md2/global.h' <<'END_OF_FILE'
  1879. X/* $Id: global.h,v 1.1.1.2 92/11/02 18:21:18 genek Exp $ */
  1880. X
  1881. X/* GLOBAL.H - RSAREF types and constants
  1882. X */
  1883. X
  1884. X/* PROTOTYPES should be set to one if and only if the compiler supports
  1885. X     function argument prototyping.
  1886. X   The following makes PROTOTYPES default to 0 if it has not already
  1887. X     been defined with C compiler flags.
  1888. X */
  1889. X
  1890. X#ifndef PROTOTYPES
  1891. X#define PROTOTYPES 0
  1892. X#endif
  1893. X
  1894. X/* POINTER defines a generic pointer type */
  1895. Xtypedef unsigned char *POINTER;
  1896. X
  1897. X/* UINT2 defines a two byte word */
  1898. Xtypedef unsigned short int UINT2;
  1899. X
  1900. X/* UINT4 defines a four byte word */
  1901. Xtypedef unsigned long int UINT4;
  1902. X
  1903. X/* PROTO_LIST is defined depending on how PROTOTYPES is defined above.
  1904. X   If using PROTOTYPES, then PROTO_LIST returns the list, otherwise it
  1905. X     returns an empty list.
  1906. X */
  1907. X#if PROTOTYPES
  1908. X#define PROTO_LIST(list) list
  1909. X#else
  1910. X#define PROTO_LIST(list) ()
  1911. X#endif
  1912. END_OF_FILE
  1913. if test 858 -ne `wc -c <'tripwire-1.0/sigs/md2/global.h'`; then
  1914.     echo shar: \"'tripwire-1.0/sigs/md2/global.h'\" unpacked with wrong size!
  1915. fi
  1916. # end of 'tripwire-1.0/sigs/md2/global.h'
  1917. fi
  1918. if test -f 'tripwire-1.0/configs/conf-epix.h' -a "${1}" != "-c" ; then 
  1919.   echo shar: Will not clobber existing file \"'tripwire-1.0/configs/conf-epix.h'\"
  1920. else
  1921. echo shar: Extracting \"'tripwire-1.0/configs/conf-epix.h'\" \(844 characters\)
  1922. sed "s/^X//" >'tripwire-1.0/configs/conf-epix.h' <<'END_OF_FILE'
  1923. X/* $Id: conf-epix.h,v 1.1.1.3 92/11/03 15:37:47 genek Exp $ */
  1924. X
  1925. X/*
  1926. X * conf-umips.h
  1927. X *
  1928. X *    Tripwire configuration file
  1929. X *
  1930. X */
  1931. X
  1932. X/***
  1933. X *** Operating System specifics
  1934. X ***    
  1935. X ***    If the answer to a question in the comment is "Yes", then
  1936. X ***    change the corresponding "#undef" to a "#define"
  1937. X ***/
  1938. X
  1939. X/*
  1940. X * is your OS a System V derivitive?  if so, what version?
  1941. X *            (e.g., define SYSV 4)
  1942. X */
  1943. X
  1944. X#define SYSV 4
  1945. X
  1946. X/* 
  1947. X * does your system have a <malloc.h> like System V? 
  1948. X */
  1949. X
  1950. X#define MALLOCH     
  1951. X
  1952. X/* 
  1953. X * does your system have a <stdlib.h> like POSIX says you should? 
  1954. X */
  1955. X
  1956. X#undef STDLIBH
  1957. X
  1958. X/*
  1959. X * does your system use readdir(3) that returns (struct dirent *)?
  1960. X */
  1961. X
  1962. X#define DIRENT
  1963. X
  1964. X/*
  1965. X * is #include <string.h> ok?  (as opposed to <strings.h>)
  1966. X */
  1967. X
  1968. X#define STRINGH
  1969. X
  1970. X/* 
  1971. X * does your system have gethostname(2) (instead of uname(2))?
  1972. X */
  1973. X
  1974. X#define GETHOSTNAME
  1975. X
  1976. END_OF_FILE
  1977. if test 844 -ne `wc -c <'tripwire-1.0/configs/conf-epix.h'`; then
  1978.     echo shar: \"'tripwire-1.0/configs/conf-epix.h'\" unpacked with wrong size!
  1979. fi
  1980. # end of 'tripwire-1.0/configs/conf-epix.h'
  1981. fi
  1982. if test -f 'tripwire-1.0/configs/conf-osx-ucb.h' -a "${1}" != "-c" ; then 
  1983.   echo shar: Will not clobber existing file \"'tripwire-1.0/configs/conf-osx-ucb.h'\"
  1984. else
  1985. echo shar: Extracting \"'tripwire-1.0/configs/conf-osx-ucb.h'\" \(806 characters\)
  1986. sed "s/^X//" >'tripwire-1.0/configs/conf-osx-ucb.h' <<'END_OF_FILE'
  1987. X/* $Id: conf-osx-ucb.h,v 1.1.1.3 92/11/03 15:38:36 genek Exp $ */
  1988. X
  1989. X/*
  1990. X * conf-osx-ucb.h
  1991. X *
  1992. X *    Tripwire configuration file for Pyramid's OSx and ucb universe
  1993. X *
  1994. X * Ken McDonell
  1995. X * Pyramid Technology
  1996. X *
  1997. X */
  1998. X
  1999. X/*
  2000. X * is your OS a System V derivitive?  if so, what version?
  2001. X *            (e.g., define SYSV 4)
  2002. X */
  2003. X
  2004. X#undef SYSV
  2005. X
  2006. X/* 
  2007. X * does your system have a <malloc.h> like System V? 
  2008. X */
  2009. X
  2010. X#undef MALLOCH     
  2011. X
  2012. X/* 
  2013. X * does your system have a <stdlib.h> like POSIX says you should? 
  2014. X */
  2015. X
  2016. X#undef STDLIBH
  2017. X
  2018. X/*
  2019. X * does your system use readdir(3) that returns (struct dirent *)?
  2020. X * -- yes, but we do not have a <dirent.h> to #include
  2021. X */
  2022. X
  2023. X#undef DIRENT
  2024. X
  2025. X/*
  2026. X * is #include <string.h> ok?  (as opposed to <strings.h>)
  2027. X */
  2028. X
  2029. X#undef STRINGH
  2030. X
  2031. X/* 
  2032. X * does your system have gethostname(2) (instead of uname(2))?
  2033. X */
  2034. X
  2035. X#define GETHOSTNAME
  2036. END_OF_FILE
  2037. if test 806 -ne `wc -c <'tripwire-1.0/configs/conf-osx-ucb.h'`; then
  2038.     echo shar: \"'tripwire-1.0/configs/conf-osx-ucb.h'\" unpacked with wrong size!
  2039. fi
  2040. # end of 'tripwire-1.0/configs/conf-osx-ucb.h'
  2041. fi
  2042. if test -f 'tripwire-1.0/man/sigfetch.8' -a "${1}" != "-c" ; then 
  2043.   echo shar: Will not clobber existing file \"'tripwire-1.0/man/sigfetch.8'\"
  2044. else
  2045. echo shar: Extracting \"'tripwire-1.0/man/sigfetch.8'\" \(761 characters\)
  2046. sed "s/^X//" >'tripwire-1.0/man/sigfetch.8' <<'END_OF_FILE'
  2047. X.\" $Id: sigfetch.8,v 1.1.1.2 92/11/02 18:20:10 genek Exp $
  2048. X.\"
  2049. X.TH SIGFETCH 8 "October 14, 1992"
  2050. X.SH NAME
  2051. Xsigfetch \- signature gathering routine for Tripwire
  2052. X.SH SYNOPSIS
  2053. X.B sigfetch
  2054. Xsigfetch [-0123456789aqv] [ 
  2055. X.I file 
  2056. X\&... ]
  2057. X.SH DESCRIPTION
  2058. X.LP
  2059. X\fIsigfetch\fP is a utility that fetches signatures used by Tripwire.
  2060. X.SH OPTIONS
  2061. X.LP
  2062. XWhen run without any arguments, \fIsigfetch\fP collects all the signatures
  2063. Xon the specified files in a verbose manner.
  2064. X.TP 
  2065. X.B \-a
  2066. XCollect all signatures.
  2067. X.TP
  2068. X.B \-q
  2069. XQuiet mode.  Prints out all signatures in one line with no extraneous
  2070. Xinformation.
  2071. X.TP
  2072. X.B \-v
  2073. XVerbose mode.  (default)
  2074. X.TP
  2075. X.B \-[0-9]
  2076. XSeletively collects specified signature number.
  2077. X.SH AUTHORS
  2078. X.nf
  2079. XGene Kim
  2080. XPurdue University
  2081. Xgenek@mentor.cc.purdue.edu
  2082. X.fi
  2083. X
  2084. X
  2085. END_OF_FILE
  2086. if test 761 -ne `wc -c <'tripwire-1.0/man/sigfetch.8'`; then
  2087.     echo shar: \"'tripwire-1.0/man/sigfetch.8'\" unpacked with wrong size!
  2088. fi
  2089. # end of 'tripwire-1.0/man/sigfetch.8'
  2090. fi
  2091. if test -f 'tripwire-1.0/configs/conf-osx-att.h' -a "${1}" != "-c" ; then 
  2092.   echo shar: Will not clobber existing file \"'tripwire-1.0/configs/conf-osx-att.h'\"
  2093. else
  2094. echo shar: Extracting \"'tripwire-1.0/configs/conf-osx-att.h'\" \(755 characters\)
  2095. sed "s/^X//" >'tripwire-1.0/configs/conf-osx-att.h' <<'END_OF_FILE'
  2096. X/* $Id: conf-osx-att.h,v 1.1.1.3 92/11/03 15:38:22 genek Exp $ */
  2097. X
  2098. X/*
  2099. X * conf-osx-att.h
  2100. X *
  2101. X *    Tripwire configuration file for Pyramid's OSx and att universe
  2102. X *
  2103. X * Ken McDonell
  2104. X * Pyramid Technology
  2105. X *
  2106. X */
  2107. X
  2108. X/*
  2109. X * is your OS a System V derivitive?  if so, what version?
  2110. X *            (e.g., define SYSV 4)
  2111. X */
  2112. X
  2113. X#define SYSV 3
  2114. X
  2115. X/* 
  2116. X * does your system have a <malloc.h> like System V? 
  2117. X */
  2118. X
  2119. X#define MALLOCH     
  2120. X
  2121. X/* 
  2122. X * does your system have a <stdlib.h> like POSIX says you should? 
  2123. X */
  2124. X
  2125. X#undef STDLIBH
  2126. X
  2127. X/*
  2128. X * does your system use readdir(3) that returns (struct dirent *)?
  2129. X */
  2130. X
  2131. X#define DIRENT
  2132. X
  2133. X/*
  2134. X * is #include <string.h> ok?  (as opposed to <strings.h>)
  2135. X */
  2136. X
  2137. X#undef STRINGH
  2138. X
  2139. X/* 
  2140. X * does your system have gethostname(2) (instead of uname(2))?
  2141. X */
  2142. X
  2143. X#undef GETHOSTNAME
  2144. END_OF_FILE
  2145. if test 755 -ne `wc -c <'tripwire-1.0/configs/conf-osx-att.h'`; then
  2146.     echo shar: \"'tripwire-1.0/configs/conf-osx-att.h'\" unpacked with wrong size!
  2147. fi
  2148. # end of 'tripwire-1.0/configs/conf-osx-att.h'
  2149. fi
  2150. if test -f 'tripwire-1.0/aux/ntohl.h' -a "${1}" != "-c" ; then 
  2151.   echo shar: Will not clobber existing file \"'tripwire-1.0/aux/ntohl.h'\"
  2152. else
  2153. echo shar: Extracting \"'tripwire-1.0/aux/ntohl.h'\" \(741 characters\)
  2154. sed "s/^X//" >'tripwire-1.0/aux/ntohl.h' <<'END_OF_FILE'
  2155. X#if BYTEORDER == 0x4321
  2156. X
  2157. X#define ntohl(x)
  2158. X#define htonl(x)
  2159. X#else
  2160. X#if ((BYTEORDER - 0x1111) & 0x444) || !(BYTEORDER & 0xf)
  2161. X#define ntohl(x)    fatal("Unknown BYTEORDER\n")
  2162. X#define htonl(x)    fatal("Unknown BYTEORDER\n")
  2163. X#else
  2164. X#define BYTEREVERSE(x)  {register unsigned char __t, \
  2165. X        *__c = (unsigned char *) &(x); \
  2166. X    __t = __c[3]; __c[3] = *__c; *__c++ = __t; \
  2167. X    __t = *__c; *__c = __c[1]; *++__c = __t; }
  2168. X#define ntohl(x) BYTEREVERSE(x)
  2169. X#define htonl(x) BYTEREVERSE(x)
  2170. X#endif
  2171. X#endif
  2172. X
  2173. X
  2174. X/* $Id: ntohl.h,v 1.2 92/11/03 02:48:31 genek Exp $
  2175. X
  2176. XThen, wherever you use the value, replace:
  2177. X
  2178. Xi = ntohl(j);
  2179. X -with-
  2180. Xi = j;
  2181. Xntohl(i);
  2182. X
  2183. XThe resulting code will be faster that using a subroutine,
  2184. X especially if these routines are called often.
  2185. X
  2186. X--spaf
  2187. X*/
  2188. END_OF_FILE
  2189. if test 741 -ne `wc -c <'tripwire-1.0/aux/ntohl.h'`; then
  2190.     echo shar: \"'tripwire-1.0/aux/ntohl.h'\" unpacked with wrong size!
  2191. fi
  2192. # end of 'tripwire-1.0/aux/ntohl.h'
  2193. fi
  2194. if test -f 'tripwire-1.0/aux/byteorder.c' -a "${1}" != "-c" ; then 
  2195.   echo shar: Will not clobber existing file \"'tripwire-1.0/aux/byteorder.c'\"
  2196. else
  2197. echo shar: Extracting \"'tripwire-1.0/aux/byteorder.c'\" \(687 characters\)
  2198. sed "s/^X//" >'tripwire-1.0/aux/byteorder.c' <<'END_OF_FILE'
  2199. X#ifndef lint
  2200. Xstatic char rcsid[] = "$Id: byteorder.c,v 1.1.1.2 92/11/02 18:16:38 genek Exp $";
  2201. X#endif
  2202. X
  2203. X#include "../include/config.h"
  2204. X#include <stdio.h>
  2205. X#ifdef STDLIBH
  2206. X#include <stdlib.h>
  2207. X#endif
  2208. X
  2209. X/*
  2210. X * byteorder.c
  2211. X *
  2212. X *    lifted and hacked from Larry Wall's Configure program.
  2213. X *
  2214. X * Gene Kim
  2215. X * Purdue University
  2216. X * October 14, 1992
  2217. X */
  2218. X
  2219. Xmain()
  2220. X{
  2221. X    int i;
  2222. X    union {
  2223. X    unsigned long l;
  2224. X    char c[sizeof(long)];
  2225. X    } u;
  2226. X
  2227. X    if (sizeof(long) > 4)
  2228. X    u.l = (0x08070605L << 32) | 0x04030201L;
  2229. X    else
  2230. X    u.l = 0x04030201L;
  2231. X
  2232. X    (void)printf("#define BYTEORDER 0x");
  2233. X    for (i=0; i < sizeof(long); i++)
  2234. X    (void)printf("%c",u.c[i]+'0');
  2235. X    (void)printf("\n");
  2236. X
  2237. X    exit(0);
  2238. X    /*NOTREACHED*/
  2239. X}
  2240. END_OF_FILE
  2241. if test 687 -ne `wc -c <'tripwire-1.0/aux/byteorder.c'`; then
  2242.     echo shar: \"'tripwire-1.0/aux/byteorder.c'\" unpacked with wrong size!
  2243. fi
  2244. # end of 'tripwire-1.0/aux/byteorder.c'
  2245. fi
  2246. if test -f 'tripwire-1.0/contrib/README.chk' -a "${1}" != "-c" ; then 
  2247.   echo shar: Will not clobber existing file \"'tripwire-1.0/contrib/README.chk'\"
  2248. else
  2249. echo shar: Extracting \"'tripwire-1.0/contrib/README.chk'\" \(622 characters\)
  2250. sed "s/^X//" >'tripwire-1.0/contrib/README.chk' <<'END_OF_FILE'
  2251. X# $Id: README.chk,v 1.1.1.2 92/11/02 18:19:03 genek Exp $ 
  2252. X
  2253. XFrom shabby Sun Sep 27 18:48:33 1992
  2254. XReceived: from localhost by mentor.cc.purdue.edu (5.61/Purdue_CC)
  2255. X    id AA10476; Sun, 27 Sep 92 18:48:32 -0500
  2256. XMessage-Id: <9209272348.AA10476@mentor.cc.purdue.edu>
  2257. XTo: genek
  2258. XSubject: README for tripwire.chk
  2259. XDate: Sun, 27 Sep 92 18:48:31 -0500
  2260. XFrom: shabby
  2261. XStatus: OR
  2262. X
  2263. X
  2264. X"tripwire.chk" is a COPS-style driver for tripwire.  It's laughably
  2265. Xsimple but I happened to write it, so I thought I would save anyone else
  2266. Xthe trouble.  It should work with the "reconfig" script that COPS uses.
  2267. X
  2268. X-Shabbir J. Safdar (shabby@cc.purdue.edu)
  2269. X
  2270. END_OF_FILE
  2271. if test 622 -ne `wc -c <'tripwire-1.0/contrib/README.chk'`; then
  2272.     echo shar: \"'tripwire-1.0/contrib/README.chk'\" unpacked with wrong size!
  2273. fi
  2274. # end of 'tripwire-1.0/contrib/README.chk'
  2275. fi
  2276. if test -f 'tripwire-1.0/contrib/CheckConfig' -a "${1}" != "-c" ; then 
  2277.   echo shar: Will not clobber existing file \"'tripwire-1.0/contrib/CheckConfig'\"
  2278. else
  2279. echo shar: Extracting \"'tripwire-1.0/contrib/CheckConfig'\" \(618 characters\)
  2280. sed "s/^X//" >'tripwire-1.0/contrib/CheckConfig' <<'END_OF_FILE'
  2281. X#!/bin/sh
  2282. X# "analyze" a config file 
  2283. X#
  2284. X# Lance Bailey <lrb@ctrg.rri.uwo.ca>
  2285. X#
  2286. X
  2287. Xif [ ".$1" = ".-v" ];then verbose="yes";shift
  2288. Xelse verbose="";fi
  2289. X
  2290. Xfile="$1"
  2291. X
  2292. Xsed -e "s/#.*//" \
  2293. X    -e "/^$/d" \
  2294. X    -e "s=[^/]*\(/[^     ]*\).*=\1=" \
  2295. X    $file |
  2296. X    while read line
  2297. X    do if [ ! -s $line ];then
  2298. X           if [ $verbose ];then echo ${line}:    not found;fi
  2299. X           continue
  2300. X       fi
  2301. X    
  2302. X       case `ls -ld $line` in
  2303. X           d*) if [ $verbose ];then echo "${line}:    directory";fi ;;
  2304. X           l*) echo "${line}:    symlink";;
  2305. X           *)  if [ $verbose ];then echo "${line}:    file";fi ;;
  2306. X       esac
  2307. X    done
  2308. X
  2309. X#
  2310. X# EOF
  2311. X#
  2312. END_OF_FILE
  2313. if test 618 -ne `wc -c <'tripwire-1.0/contrib/CheckConfig'`; then
  2314.     echo shar: \"'tripwire-1.0/contrib/CheckConfig'\" unpacked with wrong size!
  2315. fi
  2316. chmod +x 'tripwire-1.0/contrib/CheckConfig'
  2317. # end of 'tripwire-1.0/contrib/CheckConfig'
  2318. fi
  2319. if test -f 'tripwire-1.0/include/sigs.h' -a "${1}" != "-c" ; then 
  2320.   echo shar: Will not clobber existing file \"'tripwire-1.0/include/sigs.h'\"
  2321. else
  2322. echo shar: Extracting \"'tripwire-1.0/include/sigs.h'\" \(613 characters\)
  2323. sed "s/^X//" >'tripwire-1.0/include/sigs.h' <<'END_OF_FILE'
  2324. X/* $Id: sigs.h,v 1.1.1.2 92/11/02 18:19:47 genek Exp $ */
  2325. X
  2326. X/*
  2327. X * sigs.h
  2328. X *
  2329. X *    common header definitions for signature wrappers.
  2330. X *
  2331. X * Gene Kim
  2332. X * Purdue University
  2333. X * October 12, 1992
  2334. X */
  2335. X
  2336. X#include <stdio.h>
  2337. X#include <fcntl.h>
  2338. X#if !defined(SYSV) || (SYSV > 3)
  2339. X# include <sys/file.h>
  2340. X#else
  2341. X# include <unistd.h>
  2342. X#endif     /* SYSV */
  2343. X#if (defined(SYSV) && (SYSV < 3))
  2344. X# include <limits.h>
  2345. X# include <unistd.h>
  2346. X#endif    /* SVR2 */
  2347. X
  2348. X#ifndef SEEK_SET
  2349. X# define SEEK_SET L_SET
  2350. X#endif
  2351. X
  2352. Xchar *ltob64();
  2353. Xextern int printhex;
  2354. X
  2355. X/* prototypes */
  2356. X#ifdef __STDC__
  2357. Xint sig_null_get(int, char *, int);
  2358. X#else
  2359. Xint sig_null_get();
  2360. X#endif
  2361. END_OF_FILE
  2362. if test 613 -ne `wc -c <'tripwire-1.0/include/sigs.h'`; then
  2363.     echo shar: \"'tripwire-1.0/include/sigs.h'\" unpacked with wrong size!
  2364. fi
  2365. # end of 'tripwire-1.0/include/sigs.h'
  2366. fi
  2367. if test -f 'tripwire-1.0/configs/tw.conf.ultrix' -a "${1}" != "-c" ; then 
  2368.   echo shar: Will not clobber existing file \"'tripwire-1.0/configs/tw.conf.ultrix'\"
  2369. else
  2370. echo shar: Extracting \"'tripwire-1.0/configs/tw.conf.ultrix'\" \(592 characters\)
  2371. sed "s/^X//" >'tripwire-1.0/configs/tw.conf.ultrix' <<'END_OF_FILE'
  2372. X# 
  2373. X# Ultrix tw.config file
  2374. X# John Wagner <JIW2@PSUVM.PSU.EDU>
  2375. X#
  2376. X
  2377. X/etc/crontab
  2378. X/etc/disktab
  2379. X/etc/exports
  2380. X/etc/fstab
  2381. X/etc/gettytab
  2382. X/etc/hosts
  2383. X/etc/hosts.equiv
  2384. X/etc/hosts.lpd
  2385. X/etc/inetd.conf
  2386. X### Protect these two files if you are
  2387. X### running ntp:
  2388. X/etc/ntp.conf
  2389. X/usr/etc/ntpd
  2390. X###
  2391. X/etc/printcap
  2392. X/etc/rc
  2393. X/etc/rc.local
  2394. X/etc/resolv.conf
  2395. X/etc/sendmail.cf
  2396. X/etc/services
  2397. X/etc/svc.conf
  2398. X/etc/ttys
  2399. X/usr/etc/fingerd
  2400. X/usr/etc/mountd
  2401. X/usr/etc/ftpd
  2402. X### These files should be protected if you
  2403. X### have Ultrix Upgraded or Enhanced security
  2404. X### installed.
  2405. X/etc/sec/audit_events
  2406. X/etc/sec/auditd
  2407. X/etc/sec/auditmask
  2408. END_OF_FILE
  2409. if test 592 -ne `wc -c <'tripwire-1.0/configs/tw.conf.ultrix'`; then
  2410.     echo shar: \"'tripwire-1.0/configs/tw.conf.ultrix'\" unpacked with wrong size!
  2411. fi
  2412. # end of 'tripwire-1.0/configs/tw.conf.ultrix'
  2413. fi
  2414. if test -f 'tripwire-1.0/contrib/TRIPWIRE' -a "${1}" != "-c" ; then 
  2415.   echo shar: Will not clobber existing file \"'tripwire-1.0/contrib/TRIPWIRE'\"
  2416. else
  2417. echo shar: Extracting \"'tripwire-1.0/contrib/TRIPWIRE'\" \(569 characters\)
  2418. sed "s/^X//" >'tripwire-1.0/contrib/TRIPWIRE' <<'END_OF_FILE'
  2419. X#!/bin/sh
  2420. X# run tripwire from safe sources
  2421. X# 
  2422. X# Lance Bailey <lrb@ctrg.rri.uwo.ca>
  2423. X#
  2424. X
  2425. Xumask 077
  2426. XHOSTNAME=`hostname`
  2427. XEXE=tripwires/${HOSTNAME}
  2428. XDB=Databases/tripwire.database_${HOSTNAME}
  2429. XSRC=/usr/local/adm/tcheck
  2430. XWRK=/tmp 
  2431. X
  2432. Xcd ${WRK}
  2433. Xrm -rf ./tcheck.run; mkdir tcheck.run; cd tcheck.run;mkdir Databases
  2434. X
  2435. Xif [ ! -s ${SRC}/${EXE} ];then echo cannot access ${SRC}/${EXE}; exit-127; fi
  2436. X
  2437. Xuncompress <${SRC}/${EXE} > ./tripwire; chmod +x tripwire
  2438. Xuncompress <${SRC}/${DB} > ./Databases/`basename ${DB}`
  2439. X
  2440. X./tripwire $* 2>&1 | mail root
  2441. Xcd ${WRK} # ;rm -rf tcheck.run
  2442. X
  2443. X#
  2444. X# EOF
  2445. X#
  2446. END_OF_FILE
  2447. if test 569 -ne `wc -c <'tripwire-1.0/contrib/TRIPWIRE'`; then
  2448.     echo shar: \"'tripwire-1.0/contrib/TRIPWIRE'\" unpacked with wrong size!
  2449. fi
  2450. chmod +x 'tripwire-1.0/contrib/TRIPWIRE'
  2451. # end of 'tripwire-1.0/contrib/TRIPWIRE'
  2452. fi
  2453. if test -f 'tripwire-1.0/aux/Makefile' -a "${1}" != "-c" ; then 
  2454.   echo shar: Will not clobber existing file \"'tripwire-1.0/aux/Makefile'\"
  2455. else
  2456. echo shar: Extracting \"'tripwire-1.0/aux/Makefile'\" \(492 characters\)
  2457. sed "s/^X//" >'tripwire-1.0/aux/Makefile' <<'END_OF_FILE'
  2458. X# $Id: Makefile,v 1.1.1.2 92/11/02 18:16:34 genek Exp $
  2459. X#
  2460. X#     Tripwire aux program build
  2461. X#
  2462. X
  2463. XBORDER    = ../include/byteorder.h
  2464. XINODE    = ../include/inode.h
  2465. X
  2466. Xall:    $(BORDER) $(INODE)
  2467. X
  2468. X$(BORDER): byteorder.c ntohl.h
  2469. X    $(CC) $(CFLAGS) $(LDFLAGS) byteorder.c -o byteorder
  2470. X    (./byteorder; cat ./ntohl.h) > $(BORDER)
  2471. X
  2472. X$(INODE): types.sh types.c types
  2473. X    $(SHELL) ./types.sh "$(CPP)" > $(INODE)
  2474. X
  2475. Xtypes:    types.c
  2476. X    $(CC) $(CFLAGS) $(LDFLAGS) types.c -o types
  2477. X    
  2478. Xclean:    
  2479. X    rm -f types byteorder *.o core ourtypes.h
  2480. X
  2481. END_OF_FILE
  2482. if test 492 -ne `wc -c <'tripwire-1.0/aux/Makefile'`; then
  2483.     echo shar: \"'tripwire-1.0/aux/Makefile'\" unpacked with wrong size!
  2484. fi
  2485. # end of 'tripwire-1.0/aux/Makefile'
  2486. fi
  2487. if test -f 'tripwire-1.0/TODO' -a "${1}" != "-c" ; then 
  2488.   echo shar: Will not clobber existing file \"'tripwire-1.0/TODO'\"
  2489. else
  2490. echo shar: Extracting \"'tripwire-1.0/TODO'\" \(485 characters\)
  2491. sed "s/^X//" >'tripwire-1.0/TODO' <<'END_OF_FILE'
  2492. X# $Id: TODO,v 1.4 92/11/03 13:34:56 genek Exp $
  2493. X
  2494. Xfirst net release
  2495. Xv1.0:                 Tue Nov  3 04:37:39 EST 1992
  2496. X
  2497. X    fix byte "mangling" on MD2, MD4 and Snefru for Cray machines
  2498. X    fix lurking bug that surfaces in ETA-10 versions
  2499. X    find out why malloc() sometimes fails in Cray versions
  2500. X
  2501. X    regular expression handling in tw.config file
  2502. X    hook for tar and cpio file parsing
  2503. X    inclusion of complete and authorative documentation
  2504. X    add "information mode" that explains inode fields
  2505. X
  2506. END_OF_FILE
  2507. if test 485 -ne `wc -c <'tripwire-1.0/TODO'`; then
  2508.     echo shar: \"'tripwire-1.0/TODO'\" unpacked with wrong size!
  2509. fi
  2510. # end of 'tripwire-1.0/TODO'
  2511. fi
  2512. if test -f 'tripwire-1.0/contrib/tripwire.chk' -a "${1}" != "-c" ; then 
  2513.   echo shar: Will not clobber existing file \"'tripwire-1.0/contrib/tripwire.chk'\"
  2514. else
  2515. echo shar: Extracting \"'tripwire-1.0/contrib/tripwire.chk'\" \(458 characters\)
  2516. sed "s/^X//" >'tripwire-1.0/contrib/tripwire.chk' <<'END_OF_FILE'
  2517. X# $Id: tripwire.chk,v 1.1.1.2 92/11/02 18:19:12 genek Exp $
  2518. X#
  2519. X# tripwire.chk - S.J. Safdar (shabby@cc.purdue.edu)
  2520. X# Provide a cops-style interface to tripwire.
  2521. X#
  2522. Xumask 077
  2523. X
  2524. XTEST=/bin/test
  2525. XECHO=/bin/echo
  2526. X
  2527. Xif $TEST ! -f ./tripwire ; then
  2528. X    $ECHO "Tripwire not compiled here, exiting.";
  2529. Xfi
  2530. X
  2531. Xif $TEST ! -d ./Databases ; then
  2532. X    mkdir ./Databases
  2533. X    ./tripwire -initialize
  2534. X    exit 0
  2535. Xfi
  2536. X
  2537. Xif $TEST ! -f ./Databases/tw.* ; then
  2538. X    ./tripwire -initialize
  2539. Xelse
  2540. X    ./tripwire
  2541. Xfi
  2542. X
  2543. END_OF_FILE
  2544. if test 458 -ne `wc -c <'tripwire-1.0/contrib/tripwire.chk'`; then
  2545.     echo shar: \"'tripwire-1.0/contrib/tripwire.chk'\" unpacked with wrong size!
  2546. fi
  2547. chmod +x 'tripwire-1.0/contrib/tripwire.chk'
  2548. # end of 'tripwire-1.0/contrib/tripwire.chk'
  2549. fi
  2550. if test -f 'tripwire-1.0/tests/Makefile' -a "${1}" != "-c" ; then 
  2551.   echo shar: Will not clobber existing file \"'tripwire-1.0/tests/Makefile'\"
  2552. else
  2553. echo shar: Extracting \"'tripwire-1.0/tests/Makefile'\" \(280 characters\)
  2554. sed "s/^X//" >'tripwire-1.0/tests/Makefile' <<'END_OF_FILE'
  2555. X# $Id: Makefile,v 1.1.1.2 92/11/02 18:23:47 genek Exp $
  2556. X#
  2557. X#     Tripwire test
  2558. X
  2559. XDIST=tripwire-0.92
  2560. X
  2561. Xall:    ../src/tripwire
  2562. X    @HOST=`echo $(HOSTNAME)`; \
  2563. X    CURRPATH=`pwd`;    \
  2564. X    $(SHELL) test1.sh $(HOSTNAME) $(DIST)
  2565. X
  2566. X../src/tripwire:
  2567. X    (cd ..; make all)
  2568. X
  2569. Xclean:
  2570. X    rm -f tw.db_TEST.@ @tw.config
  2571. END_OF_FILE
  2572. if test 280 -ne `wc -c <'tripwire-1.0/tests/Makefile'`; then
  2573.     echo shar: \"'tripwire-1.0/tests/Makefile'\" unpacked with wrong size!
  2574. fi
  2575. # end of 'tripwire-1.0/tests/Makefile'
  2576. fi
  2577. if test -f 'tripwire-1.0/sigs/snefru/Makefile' -a "${1}" != "-c" ; then 
  2578.   echo shar: Will not clobber existing file \"'tripwire-1.0/sigs/snefru/Makefile'\"
  2579. else
  2580. echo shar: Extracting \"'tripwire-1.0/sigs/snefru/Makefile'\" \(246 characters\)
  2581. sed "s/^X//" >'tripwire-1.0/sigs/snefru/Makefile' <<'END_OF_FILE'
  2582. X# $Id: Makefile,v 1.1.1.2 92/11/02 18:22:37 genek Exp $
  2583. X#
  2584. X# Makefile for snefru wrapper
  2585. X#
  2586. X# Gene Kim
  2587. X# Purdue University
  2588. X# October 18, 1992
  2589. X#
  2590. X
  2591. Xall:    snefru.o
  2592. X
  2593. X.c.o:
  2594. X    $(CC) $(CFLAGS) -c $<
  2595. X    
  2596. Xclean:
  2597. X    -rm -rf *.o
  2598. X
  2599. Xsnefru.o: ../../include/byteorder.h
  2600. END_OF_FILE
  2601. if test 246 -ne `wc -c <'tripwire-1.0/sigs/snefru/Makefile'`; then
  2602.     echo shar: \"'tripwire-1.0/sigs/snefru/Makefile'\" unpacked with wrong size!
  2603. fi
  2604. # end of 'tripwire-1.0/sigs/snefru/Makefile'
  2605. fi
  2606. if test -f 'tripwire-1.0/sigs/crc32/Makefile' -a "${1}" != "-c" ; then 
  2607.   echo shar: Will not clobber existing file \"'tripwire-1.0/sigs/crc32/Makefile'\"
  2608. else
  2609. echo shar: Extracting \"'tripwire-1.0/sigs/crc32/Makefile'\" \(238 characters\)
  2610. sed "s/^X//" >'tripwire-1.0/sigs/crc32/Makefile' <<'END_OF_FILE'
  2611. X# $Id: Makefile,v 1.1.1.2 92/11/02 18:20:54 genek Exp $
  2612. X#
  2613. X# Makefile for crc32 wrapper
  2614. X#
  2615. X# Gene Kim
  2616. X# Purdue University
  2617. X# October 18, 1992
  2618. X#
  2619. X
  2620. Xall:    crc32.o
  2621. X
  2622. X.c.o:
  2623. X    $(CC) $(CFLAGS) -c $<
  2624. X
  2625. Xclean:
  2626. X    -rm *.o
  2627. X
  2628. Xcrc32.o: ../../include/byteorder.h
  2629. END_OF_FILE
  2630. if test 238 -ne `wc -c <'tripwire-1.0/sigs/crc32/Makefile'`; then
  2631.     echo shar: \"'tripwire-1.0/sigs/crc32/Makefile'\" unpacked with wrong size!
  2632. fi
  2633. # end of 'tripwire-1.0/sigs/crc32/Makefile'
  2634. fi
  2635. if test -f 'tripwire-1.0/sigs/crc/Makefile' -a "${1}" != "-c" ; then 
  2636.   echo shar: Will not clobber existing file \"'tripwire-1.0/sigs/crc/Makefile'\"
  2637. else
  2638. echo shar: Extracting \"'tripwire-1.0/sigs/crc/Makefile'\" \(238 characters\)
  2639. sed "s/^X//" >'tripwire-1.0/sigs/crc/Makefile' <<'END_OF_FILE'
  2640. X# $Id: Makefile,v 1.1.1.2 92/11/02 18:20:32 genek Exp $
  2641. X#
  2642. X# Makefile for crc32 wrapper
  2643. X#
  2644. X# Gene Kim
  2645. X# Purdue University
  2646. X# October 18, 1992
  2647. X#
  2648. X
  2649. Xall:    crc.o
  2650. X
  2651. X.c.o:
  2652. X    $(CC) $(CFLAGS) -c $<
  2653. X
  2654. Xclean:
  2655. X    -rm -rf *.o
  2656. X
  2657. Xcrc.o: ../../include/byteorder.h
  2658. END_OF_FILE
  2659. if test 238 -ne `wc -c <'tripwire-1.0/sigs/crc/Makefile'`; then
  2660.     echo shar: \"'tripwire-1.0/sigs/crc/Makefile'\" unpacked with wrong size!
  2661. fi
  2662. # end of 'tripwire-1.0/sigs/crc/Makefile'
  2663. fi
  2664. if test -f 'tripwire-1.0/man/Makefile' -a "${1}" != "-c" ; then 
  2665.   echo shar: Will not clobber existing file \"'tripwire-1.0/man/Makefile'\"
  2666. else
  2667. echo shar: Extracting \"'tripwire-1.0/man/Makefile'\" \(176 characters\)
  2668. sed "s/^X//" >'tripwire-1.0/man/Makefile' <<'END_OF_FILE'
  2669. X# Makefile for man pages
  2670. X
  2671. Xall:
  2672. X    $(INSTALL) -m 644 sigfetch.8 $(MANDIR)/man8
  2673. X    $(INSTALL) -m 644 tripwire.8 $(MANDIR)/man8
  2674. X    $(INSTALL) -m 644 tw.config.5 $(MANDIR)/man5
  2675. X
  2676. Xclean:
  2677. X
  2678. END_OF_FILE
  2679. if test 176 -ne `wc -c <'tripwire-1.0/man/Makefile'`; then
  2680.     echo shar: \"'tripwire-1.0/man/Makefile'\" unpacked with wrong size!
  2681. fi
  2682. # end of 'tripwire-1.0/man/Makefile'
  2683. fi
  2684. echo shar: End of archive 8 \(of 8\).
  2685. cp /dev/null ark8isdone
  2686. MISSING=""
  2687. for I in 1 2 3 4 5 6 7 8 ; do
  2688.     if test ! -f ark${I}isdone ; then
  2689.     MISSING="${MISSING} ${I}"
  2690.     fi
  2691. done
  2692. if test "${MISSING}" = "" ; then
  2693.     echo You have unpacked all 8 archives.
  2694.     echo "Now read the README file"
  2695.     rm -f ark[1-9]isdone
  2696. else
  2697.     echo You still need to unpack the following archives:
  2698.     echo "        " ${MISSING}
  2699. fi
  2700. ##  End of shell archive.
  2701. exit 0
  2702. -- 
  2703. Gene Spafford
  2704. Software Engineering Research Center & Dept. of Computer Sciences
  2705. Purdue University, W. Lafayette IN 47907-1398
  2706. Internet:  spaf@cs.purdue.edu    phone:  (317) 494-7825
  2707.