mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-04-27 00:30:44 +00:00
Scan whole folder for MSCab
This commit is contained in:
@@ -36,24 +36,14 @@ namespace BurnOutSharp.FileType
|
||||
{
|
||||
string tempFile = Path.Combine(tempPath, sub.Filename);
|
||||
sub.ExtractTo(tempFile);
|
||||
|
||||
// Collect and format all found protections
|
||||
var fileProtections = ProtectionFind.Scan(tempFile, includePosition);
|
||||
string protection = string.Join("\r\n", fileProtections.Select(kvp => kvp.Key + ": " + kvp.Value.TrimEnd()));
|
||||
|
||||
// If tempfile cleanup fails
|
||||
try
|
||||
{
|
||||
File.Delete(tempFile);
|
||||
}
|
||||
catch { }
|
||||
|
||||
if (!string.IsNullOrEmpty(protection))
|
||||
protections.Add($"\r\n{sub.Filename} - {protection}");
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
|
||||
// Collect and format all found protections
|
||||
var fileProtections = ProtectionFind.Scan(tempPath, includePosition);
|
||||
protections = fileProtections.Select(kvp => kvp.Key + ": " + kvp.Value.TrimEnd()).ToList();
|
||||
|
||||
// If temp directory cleanup fails
|
||||
try
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user