From c782c3f6dc40fed3a9ba4885b1de5c740b876faf Mon Sep 17 00:00:00 2001 From: "patrick.pdb" Date: Fri, 2 Aug 2024 16:36:40 -0400 Subject: [PATCH] '#2277 Classify automatic and custom destinations links in respective category. --- .../resources/scripts/tasks/RefineCategoryTask.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/iped-app/resources/scripts/tasks/RefineCategoryTask.js b/iped-app/resources/scripts/tasks/RefineCategoryTask.js index 35d07da9fb..dd357b9ef4 100644 --- a/iped-app/resources/scripts/tasks/RefineCategoryTask.js +++ b/iped-app/resources/scripts/tasks/RefineCategoryTask.js @@ -1,4 +1,4 @@ -/* +/* * Script of Category Specialization based on item properties. * Uses javascript language to allow flexibility in definitions. */ @@ -180,6 +180,18 @@ function process(e){ if(length == 0) e.addCategory("Empty Files"); + + if (mime.equals("application/x-lnk")){ + if (path.endsWith(".customdestinations-ms>>"+e.getName())){ + e.setMediaTypeStr("application/x-customdestinations-entry"); + e.addCategory("Custom Destinations"); + } + if (path.endsWith(".automaticdestinations-ms>>"+e.getName())){ + e.setMediaTypeStr("application/x-automaticdestinations-entry"); + e.addCategory("Automatic Destinations"); + } + } + if(inRecycle(e)){ e.addCategory("Windows Recycle"); if(e.getName().indexOf("$I") == 0) @@ -456,6 +468,7 @@ function process(e){ e.addCategory("E-Mule"); } } + // Custom Regripper Reports