mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
Update itempos.pl
Fix getting long file name string. If the extension verison was not a x03, x07 or x08 the start position was set to null to get the string so it would start at the beginning of the block so would get junk data. This change has also been pushed to the Regripper2.8 repo as well
This commit is contained in:
parent
fa8265876b
commit
ef15ad1f48
20
thirdparty/rr-full/plugins/itempos.pl
vendored
20
thirdparty/rr-full/plugins/itempos.pl
vendored
@ -1,10 +1,8 @@
|
||||
#-----------------------------------------------------------
|
||||
# shellbags.pl
|
||||
# RR plugin to parse (Vista, Win7/Win2008R2) shell bags
|
||||
#
|
||||
# itempos.pl
|
||||
#
|
||||
# History:
|
||||
# 20130514 - added checking of ShellNoRoam\Bags subkeys for WinXP
|
||||
# 20120814 - created
|
||||
# 20191111 - Added default value to $jmp if $item{extver} cannot be determined.
|
||||
#
|
||||
# References
|
||||
# http://c0nn3ct0r.blogspot.com/2011/11/windows-shellbag-forensics.html
|
||||
@ -21,8 +19,7 @@
|
||||
# provided, Andrew Case for posting the Registry Decoder code, and Kevin
|
||||
# Moore for writing the shell bag parser for Registry Decoder, as well as
|
||||
# assistance with some parsing.
|
||||
#
|
||||
# License: GPL v3
|
||||
#
|
||||
# copyright 2013 Quantum Analytics Research, LLC
|
||||
# Author: H. Carvey, keydet89@yahoo.com
|
||||
#-----------------------------------------------------------
|
||||
@ -228,7 +225,6 @@ sub parseFolderItem {
|
||||
my $str = "";
|
||||
while($tag) {
|
||||
my $s = substr($data,$ofs_shortname + $cnt,1);
|
||||
return %item unless (defined $s);
|
||||
if ($s =~ m/\x00/ && ((($cnt + 1) % 2) == 0)) {
|
||||
$tag = 0;
|
||||
}
|
||||
@ -244,9 +240,7 @@ sub parseFolderItem {
|
||||
$tag = 1;
|
||||
$cnt = 0;
|
||||
while ($tag) {
|
||||
my $s = substr($data,$ofs + $cnt,2);
|
||||
return %item unless (defined $s);
|
||||
if (unpack("v",$s) == 0xbeef) {
|
||||
if (unpack("v",substr($data,$ofs + $cnt,2)) == 0xbeef) {
|
||||
$tag = 0;
|
||||
}
|
||||
else {
|
||||
@ -272,7 +266,9 @@ sub parseFolderItem {
|
||||
elsif ($item{extver} == 0x08) {
|
||||
$jmp = 30;
|
||||
}
|
||||
else {}
|
||||
else {
|
||||
$jmp = 34;
|
||||
}
|
||||
|
||||
$ofs += $jmp;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user