Add ELF structures and detection.

This commit is contained in:
2018-03-13 03:20:12 +00:00
parent dbb936c760
commit 803973496b
8 changed files with 1669 additions and 0 deletions

View File

@@ -113,6 +113,7 @@ namespace exeinfogui
IExecutable coffExe = new COFF(dlgOpen.FileName);
IExecutable peExe = new libexeinfo.PE(dlgOpen.FileName);
IExecutable geosExe = new Geos(dlgOpen.FileName);
IExecutable elfExe = new ELF(dlgOpen.FileName);
IExecutable recognizedExe = null;
if(mzExe.Recognized)
@@ -176,6 +177,7 @@ namespace exeinfogui
}
}
else if(coffExe.Recognized) recognizedExe = coffExe;
else if(elfExe.Recognized) recognizedExe = elfExe;
else if(geosExe.Recognized) recognizedExe = geosExe;
else txtType.Text = "Format not recognized";