Skip to content

Commit

Permalink
added dump_mft_entry.pl
Browse files Browse the repository at this point in the history
  • Loading branch information
superponible committed Mar 26, 2014
1 parent a18089c commit 5b3315d
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions dump_mft_entry.pl
@@ -0,0 +1,25 @@
#!/usr/bin/perl

#------------------------------
#dump_mft_entry.pl
#
#Dave Lassalle, @superponible
#email: dave@superponible.com
#------------------------------
#
#This will dump the contents of the MFT entry number in the provided file using hexdump
#

if (@ARGV != 2) {
print "Usage: dump_mft_entry.pl MFT_Entry_Number MFT_File\n";
exit 1;
}

($inode,$mft) = @ARGV;

$hex_offset = sprintf("%x", $inode * 1024);

system("hexdump -s 0x$hex_offset -v -n 1024 -e '/1024 \"%010_ax\"\"\n\"\"\"' -e '512/1 \"%02X \"\"\n\"\"\"' -e '1024/1 \"%_p\"\"\n\"' $mft");
exit 0;


0 comments on commit 5b3315d

Please sign in to comment.