mirror of
https://github.com/claunia/libexeinfo.git
synced 2025-12-16 19:14:24 +00:00
Add ELF structures and detection.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user