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

@@ -55,6 +55,7 @@ namespace exeinfo
IExecutable coffExe = new COFF(args[0]);
IExecutable peExe = new PE(args[0]);
IExecutable geosExe = new Geos(args[0]);
IExecutable elfExe = new ELF(args[0]);
if(neExe.Recognized)
{
@@ -284,6 +285,17 @@ namespace exeinfo
foreach(string str in coffExe.Strings) Console.WriteLine("\t\t{0}", str);
}
}
else if(elfExe.Recognized)
{
recognized = true;
Console.Write(elfExe.Information);
if(elfExe.Strings != null && elfExe.Strings.Any())
{
Console.WriteLine("\tStrings:");
foreach(string str in elfExe.Strings) Console.WriteLine("\t\t{0}", str);
}
}
if(geosExe.Recognized)
{