-
Not sure if it was dealed in another issue, but I want to know if the latest version of LED (1.29) is incompatible to IPED? Tried to run some processing using it, but got some errors. If it is, I would like to ask to gently leave an issue about that opened (if there isn't one already...) in order to keep track on this and other people be aware of that. |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 2 replies
-
In fact it is intentionally incompatible, so I guess it is not a issue. The new IPED version (4.x) won't be compatible as it was before (pointing to LED's folder), but I will release a CSV file with LED's database to be used with IPED. That being said, I am fine with keeping this issue open until IPED 4.x is released, but I am not sure how helpful it would be. |
Beta Was this translation helpful? Give feedback.
-
I honestly don't remember reading email about that (If I did, I couldn't recall that). So I spent some time to discover that it wasn't compatible to IPED on purpose (shame on me I didn't look up for LED Releases Notes, my bad for sure). At first sight, looking IPED output, I thought it could be a bug. Maybe other people can think the same, that's why I suggested to keep an issue opened. You said that IPED 4.x won't be compatible? Is there a plan to make it compatible? Sharing CSV file along LED database will be appreciated since IPED is able to import it AFAIK. |
Beta Was this translation helpful? Give feedback.
-
The current compatibility is convenient in the sense that users of both tools can just point to LED's database when setting IPED.
The idea for the new IPED version is to have a simpler and unique way to handle all hash sets (LED, NSRL, ProjectVIC, PhotoDNA, and possibly user custom hash sets). By the way, I plan to release LED 1.29.01 this week. |
Beta Was this translation helpful? Give feedback.
-
@thalespr see #118 for the new centralized hash database details. I agree and will move this to discussions. As IPED-3.18.8 is around, I will add a warning to state that LED >= 1.29 format is not compatible anymore. |
Beta Was this translation helpful? Give feedback.
-
Thanks @tc-wleite and @lfcnassif! |
Beta Was this translation helpful? Give feedback.
-
@tc-wleite, I am using LED 1.32, is there any script to convert TXT to CSV format, so i can add LEDs database to iped hashset database? |
Beta Was this translation helpful? Give feedback.
-
Hi @vtgdias! I have the following Java code. import java.io.*;
import java.util.*;
public class LedHashesToCSV {
public static void main(String[] args) throws Exception {
if (args.length != 2) return;
String str = null;
File[] files = new File(args[0]).listFiles();
List<String> lines = new ArrayList<String>();
for (File f : files) {
String grp = f.getName();
int p = grp.lastIndexOf('.');
if (p > 0) grp = grp.substring(0, p);
int n = 0;
BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream(f)));
StringBuilder sb = new StringBuilder();
while ((str = in.readLine()) != null) {
if (str.charAt(0) == '#') continue;
n++;
String[] s = str.trim().split(" \\*");
if (s.length < 7) {
System.err.println("Invalid format in file " + f.getName() + ", line " + n);
in.close();
return;
}
String ext = s[9];
int q = ext.lastIndexOf('.');
if (q >= 0) ext = ext.substring(q + 1).toLowerCase();
else ext = "";
if (ext.length() > 16) ext = "";
String cat = s[8];
sb.append(s[0].toUpperCase()).append(",");
sb.append(s[3].toUpperCase()).append(",");
sb.append(s[2].toUpperCase()).append(",");
sb.append(s[6].toUpperCase()).append(",");
sb.append(cat.equals("1") ? "pedo" : "").append(",");
sb.append("LED").append(",");
sb.append(s[4].toUpperCase()).append(",");
sb.append(s[1].toUpperCase()).append(",");
sb.append(String.valueOf(Long.parseLong(s[7]))).append(",");
sb.append(ext).append(",");
sb.append(grp).append(",");
sb.append(cat);
lines.add(sb.toString());
sb.delete(0, sb.length());
}
in.close();
System.err.println(f.getName() + " : " + n);
}
BufferedWriter out = new BufferedWriter(new FileWriter(args[1]), 1 << 20);
out.write("MD5,SHA1,EDONKEY,SHA256,status,set,md5_512,md5_64k,fileLength,fileExt,ledGroup,ledCategory");
out.newLine();
Collections.sort(lines);
for (String s : lines) {
out.write(s);
out.newLine();
}
out.close();
}
} |
Beta Was this translation helpful? Give feedback.
@thalespr see #118 for the new centralized hash database details. I agree and will move this to discussions. As IPED-3.18.8 is around, I will add a warning to state that LED >= 1.29 format is not compatible anymore.