[sleuthkit-users] Patches
Brought to you by:
carrier
|
From: Brandon L. <bla...@gm...> - 2014-05-20 20:45:30
|
How does one add patches to SleuthKit? Specifically, ones that are only
code such as this:
diff -aurN sleuthkit-1.69/src/fstools/fls.c
sleuthkit-1.69-frss/src/fstools/fls.c
--- sleuthkit-1.69/src/fstools/fls.c 2004-01-06 17:50:52.000000000 -0500
+++ sleuthkit-1.69-frss/src/fstools/fls.c 2004-05-20 14:15:51.000000000
-0400
@@ -58,7 +58,7 @@
void usage(char *myProg) {
- printf("usage: %s [-adDFlpruvV] [-f fstype] [-m dir/] [-z ZONE] [-s
seconds] image
[inode]\n",
+ printf("usage: %s [-adDFlxpruvV] [-f fstype] [-m dir/] [-z ZONE] [-s
seconds]
image [inode]\n",
myProg);
printf("\tIf [inode] is not given, the root directory is used\n");
printf("\t-a: Display \".\" and \"..\" entries\n");
@@ -68,6 +68,7 @@
printf("\t-l: Display long version (like ls -l)\n");
printf("\t-m: Display output in mactime input format with\n");
printf("\t dir/ as the actual mount point of the image\n");
+ printf("\t-x: Display FRSS Scoring\n");
printf("\t-p: Display full path for each file\n");
printf("\t-r: Recurse on directory entries\n");
printf("\t-u: Display undeleted entries only\n");
@@ -273,7 +274,7 @@
localFlags = LCL_DIR | LCL_FILE;
- while ((ch = getopt(argc, argv, "adDf:Fm:lprs:uvVz:")) > 0) {
+ while ((ch = getopt(argc, argv, "adDf:Fm:lxprs:uvVz:")) > 0) {
switch (ch) {
case '?':
default:
@@ -298,6 +299,9 @@
case 'l':
localFlags |= LCL_LONG;
break;
+ case 'x':
+ ent_report =1;
+ break;
case 'm':
localFlags |= LCL_MAC;
macpre = optarg;
diff -aurN sleuthkit-1.69/src/fstools/frss.c
sleuthkit-1.69-frss/src/fstools/frss.c
--- sleuthkit-1.69/src/fstools/frss.c 1969-12-31 19:00:00.000000000 -0500
+++ sleuthkit-1.69-frss/src/fstools/frss.c 2004-05-23 14:46:48.000000000
-0400
@@ -0,0 +1,233 @@
+/*
+** frss
+** The Sleuth Kit
+**
+** Given a block number, compute the Forensic Relative Strength Scoring
+** values of the block, return them to calling function.
+**
+** Matthew Shannon [msh...@ag...]
+** Copyright (c) 2004 Matthew Shannon. All rights reserved.
+**
+** Brian Carrier [ca...@sl...]
+** Copyright (c) 2003 Brian Carrier. All rights reserved
+**
+** TASK
+** Copyright (c) 2002 Brian Carrier, @stake Inc. All rights reserved
+**
+** TCTUTILs
|