Skip to content

Commit

Permalink
'#2277 Classify automatic and custom destinations links in respective
Browse files Browse the repository at this point in the history
category.
  • Loading branch information
patrickdalla committed Aug 2, 2024
1 parent b403d94 commit c782c3f
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion iped-app/resources/scripts/tasks/RefineCategoryTask.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
* Script of Category Specialization based on item properties.
* Uses javascript language to allow flexibility in definitions.
*/
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -456,6 +468,7 @@ function process(e){
e.addCategory("E-Mule");
}
}


// Custom Regripper Reports

Expand Down

0 comments on commit c782c3f

Please sign in to comment.