Fix Undefined Value in Autopsy Regripper Plugins

Check for undefined values in Autopsy regripper plugins, this is for Autopsy version of regripper not full version of regripper.
This commit is contained in:
Mark McKinnon 2020-06-19 14:34:32 -04:00
parent fbcb565b3a
commit 01494b3fb2
7 changed files with 485 additions and 471 deletions

View File

@ -36,6 +36,7 @@ sub pluginmain {
my $class = shift;
my $ntuser = shift;
#::logMsg("autospyrunmru");
if (defined(Parse::Win32Registry->new($ntuser))) {
my $reg = Parse::Win32Registry->new($ntuser);
my $root_key = $reg->get_root_key;
@ -72,7 +73,7 @@ sub pluginmain {
#::rptMsg($key_path." not found.");
#::logMsg($key_path." not found.");
}
}
}
1;

View File

@ -35,6 +35,7 @@ sub pluginmain {
my $class = shift;
my $ntuser = shift;
#::logMsg("||logonusername||");
if (defined(Parse::Win32Registry->new($ntuser))) {
my $reg = Parse::Win32Registry->new($ntuser);
my $root_key = $reg->get_root_key;
@ -66,5 +67,6 @@ sub pluginmain {
#::logMsg($key_path." not found.");
}
}
}
1;

View File

@ -31,6 +31,8 @@ sub pluginmain {
#::logMsg("Launching ntusernetwork v.".$VERSION);
#::rptMsg("ntusernetwork v.".$VERSION); # banner
#::rptMsg("(".$config{hive}.") ".getShortDescr()."\n"); # banner
if (defined(Parse::Win32Registry->new($ntuser))) {
my $reg = Parse::Win32Registry->new($ntuser);
my $root_key = $reg->get_root_key;
@ -90,4 +92,5 @@ sub pluginmain {
}
::rptMsg("</artifacts></NtuserNetwork>");
}
}
1;

View File

@ -41,6 +41,7 @@ sub pluginmain {
my $class = shift;
my $ntuser = shift;
#::logMsg("||recentdocs||");
if (defined(Parse::Win32Registry->new($ntuser))) {
my $reg = Parse::Win32Registry->new($ntuser);
my $root_key = $reg->get_root_key;
my $key_path = "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\RecentDocs";
@ -116,6 +117,7 @@ sub pluginmain {
#::rptMsg($key_path." not found.");
}
}
}
sub getRDValues {

View File

@ -41,7 +41,9 @@ sub pluginmain {
my $class = shift;
my $hive = shift;
#::logMsg("Launching shellfolders v.".$VERSION);
if (defined(Parse::Win32Registry->new($hive))) {
my $reg = Parse::Win32Registry->new($hive);
my $root_key = $reg->get_root_key;
my $key_path = "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders";
@ -69,4 +71,5 @@ sub pluginmain {
#::logMsg($key_path." not found.");
}
}
}
1;

View File

@ -37,6 +37,7 @@ sub pluginmain {
# ::rptMsg("officedocs v.".$VERSION); # 20110830 [fpi] + banner
# ::rptMsg("(".getHive().") ".getShortDescr()."\n"); # 20110830 [fpi] + banner
::rptMsg("<office>");
if (defined(Parse::Win32Registry->new($ntuser))) {
my $reg = Parse::Win32Registry->new($ntuser);
my $root_key = $reg->get_root_key;
#::rptMsg("officedocs v.".$VERSION);
@ -146,6 +147,7 @@ sub pluginmain {
#::logMsg("MSOffice version not found.");
#::rptMsg("MSOffice version not found.");
}
}
::rptMsg("</office>");
}

View File

@ -72,7 +72,7 @@ sub pluginmain {
#::logMsg("Launching officedocs2010 v.".$VERSION);
#::rptMsg("officedocs2010 v.".$VERSION); # 20110830 [fpi] + banner
#::rptMsg("(".getHive().") ".getShortDescr()."\n"); # 20110830 [fpi] + banner
if (defined(Parse::Win32Registry->new($ntuser))) {
my $reg = Parse::Win32Registry->new($ntuser);
my $root_key = $reg->get_root_key;
# ::rptMsg("officedocs v.".$VERSION); # 20110830 [fpi] - redundant
@ -217,5 +217,6 @@ sub pluginmain {
# ::rptMsg("MSOffice version not found.");
}
}
}
1;