mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-04-25 23:59:59 +00:00
Add path scanning flag to Test
This commit is contained in:
@@ -18,7 +18,7 @@ namespace Test
|
||||
p.ProgressChanged += Protector.Changed;
|
||||
|
||||
// Set initial values for scanner flags
|
||||
bool debug = false, archives = true, packers = true, info = false, extract = false;
|
||||
bool debug = false, archives = true, packers = true, paths = true, info = false, extract = false;
|
||||
string outputPath = string.Empty;
|
||||
var inputPaths = new List<string>();
|
||||
|
||||
@@ -52,6 +52,11 @@ namespace Test
|
||||
packers = false;
|
||||
break;
|
||||
|
||||
case "-ns":
|
||||
case "--no-paths":
|
||||
paths = false;
|
||||
break;
|
||||
|
||||
case "-i":
|
||||
case "--info":
|
||||
info = true;
|
||||
@@ -83,7 +88,7 @@ namespace Test
|
||||
}
|
||||
|
||||
// Create scanner for all paths
|
||||
var scanner = new Scanner(archives, packers, debug, p);
|
||||
var scanner = new Scanner(archives, packers, paths, debug, p);
|
||||
|
||||
// If we have extraction, check the output path exists and is valid
|
||||
if (extract)
|
||||
@@ -145,6 +150,7 @@ namespace Test
|
||||
Console.WriteLine("-d, --debug Enable debug mode");
|
||||
Console.WriteLine("-na, --no-archives Disable scanning archives");
|
||||
Console.WriteLine("-np, --no-packers Disable scanning for packers");
|
||||
Console.WriteLine("-ns, --no-paths Disable scanning for path checks");
|
||||
Console.WriteLine("-i, --info Print executable info");
|
||||
Console.WriteLine("-x, --extract Extract archive formats");
|
||||
Console.WriteLine("-o, --outdir [PATH] Set output path for extraction (REQUIRED)");
|
||||
|
||||
Reference in New Issue
Block a user