Mark McKinnon ac34265b9e Plugins new to our copy of Regripper
Plugins that are new to our copy of Regripper.
2020-04-24 14:30:34 -04:00

61 lines
1.4 KiB
Perl

#-----------------------------------------------------------
# watp
#
# Change history:
# 20190506 - created
#
# Ref:
#
#
# copyright 2019 QAR,LLC
# Author: H. Carvey, keydet89@yahoo.com
#-----------------------------------------------------------
package watp;
use strict;
my %config = (hive => "Software",
category => "config",
hasShortDescr => 1,
hasDescr => 0,
hasRefs => 0,
osmask => 22,
version => 20190506);
sub getConfig{return %config}
sub getShortDescr {
return "Gets contents of Windows Advanced Threat Protection key";
}
sub getDescr{}
sub getRefs {
}
sub getHive {return $config{hive};}
sub getVersion {return $config{version};}
my $VERSION = getVersion();
sub pluginmain {
my $class = shift;
my $hive = shift;
::rptMsg("Launching watp v.".$VERSION);
::rptMsg("watp v.".$VERSION); # banner
::rptMsg("(".$config{hive}.") ".getShortDescr()."\n"); # banner
my $key_path = ('Microsoft\\Windows Advanced Protection');
my $reg = Parse::Win32Registry->new($hive);
my $root_key = $reg->get_root_key;
my $key;
if ($key = $root_key->get_subkey($key_path)) {
::rptMsg($key_path);
::rptMsg("LastWrite Time ".gmtime($key->get_timestamp())." (UTC)");
my @vals = $key->get_list_of_values();
foreach my $v (@vals) {
::rptMsg($v->get_name()." ".$v->get_data());
}
}
else {
::rptMsg($key_path." not found.");
}
}
1;