Skip to content
Browse files

cleaned up some duplicate files

  • Loading branch information...
1 parent 5a83416 commit 36d6094c085036da9d970dc81b704a6ed71bfe80 @superponible committed Nov 8, 2011
Showing with 5 additions and 2 deletions.
  1. +5 −2 srch_strings_wrap
View
7 srch_strings_wrap
@@ -9,6 +9,9 @@
# this script is available.
#TODO
+# accept piped output of "srch_strings -a -t d" so that you could run that on a whole image
+# then use that as a base and run multiple "greps" with differents words
+# -- basically, replace FTK's string search functionality, without the index
# accept piped image, with offset
# update srch_strings_pipe
# loop through hash of all arguments, find the one that is all #s, and use for -n arg to srch_strings
@@ -538,8 +541,8 @@ sub carve_inode {
$file =~ s/^_+//g;
$key = "00" if ($key eq "N/A");
my $dir = dirname($filename);
- $filename = "ROOTDIR" if ($filename eq "/");
- my $outfile = "$output_dir/$file/$key/$filename";
+ $filename = "ROOTDIR" if ($filename eq "/");
+ my $outfile = "$output_dir/$file/$key/$filename";
mkpath("$output_dir/$file/$key/$dir");
open (OUT, ">$outfile") or die "couldn't create output file $outfile: $!\n";
print OUT join("",<IN>);

0 comments on commit 36d6094

Please sign in to comment.
Something went wrong with that request. Please try again.