Skip to content

Commit

Permalink
Added extra path catch handle and more edr products
Browse files Browse the repository at this point in the history
  • Loading branch information
PwnDexter committed Aug 13, 2020
1 parent 085d39f commit 235d490
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions SharpEDRChecker/DriverChecker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ internal static string CheckDriver(string driverFileName, string driverBaseName)
{
fixedDriverPath = fixedDriverPath.Replace(@"\windows\".ToLower(), @"c:\windows\".ToLower());
}
else if (fixedDriverPath.ToLower().StartsWith(@"\??\"))
{
fixedDriverPath = fixedDriverPath.ToLower().Replace(@"\??\", @"");
}
var metadata = $"{FileChecker.GetFileInfo(fixedDriverPath)}";
var allattribs = $"{driverBaseName} - {metadata}";

Expand Down
5 changes: 4 additions & 1 deletion SharpEDRChecker/EDRData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class EDRData
"anti virus",
"anti-virus",
"antivirus",
"appsense",
"authtap",
"avast",
"avecto",
Expand Down Expand Up @@ -47,6 +48,7 @@ class EDRData
"groundling",
"GRRservic",
"inspector",
"ivanti",
"kaspersky",
"lacuna",
"logrhythm",
Expand Down Expand Up @@ -94,7 +96,8 @@ class EDRData
"windowssensor",
"wireshark",
"threat",
"xagt"
"xagt.exe",
"xagtnotif.exe"
};
}
}
2 changes: 1 addition & 1 deletion SharpEDRChecker/FileChecker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ internal static string GetFileInfo(string filePath)
{
if (filePath.ToLower().StartsWith(@"c:\windows\system32\"))
{
filePath = filePath.ToLower().Replace(@"c:\windows\system32\", @"C:\Windows\Sysnative\");
filePath = filePath.ToLower().Replace(@"c:\windows\system32\", @"c:\Windows\Sysnative\");
return GetFileInfo(filePath);
}
else
Expand Down

0 comments on commit 235d490

Please sign in to comment.