From 9bd9a6b561e05fd314f3ab42ed2838334e40a0e9 Mon Sep 17 00:00:00 2001 From: katjahahn Date: Sat, 19 Aug 2023 20:50:29 +0200 Subject: [PATCH] timedatestamp printed for imports and delay load imports --- build.sbt | 2 +- src/main/java/com/github/katjahahn/parser/PELoader.java | 6 ++++-- .../github/katjahahn/parser/sections/idata/ImportDLL.java | 1 - 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/build.sbt b/build.sbt index 81c4a96c..9525ca25 100644 --- a/build.sbt +++ b/build.sbt @@ -2,7 +2,7 @@ name := "PortEx" -version := "4.0.6" +version := "4.0.7" scalaVersion := "2.12.13" diff --git a/src/main/java/com/github/katjahahn/parser/PELoader.java b/src/main/java/com/github/katjahahn/parser/PELoader.java index 2b0b55c3..e1af3542 100644 --- a/src/main/java/com/github/katjahahn/parser/PELoader.java +++ b/src/main/java/com/github/katjahahn/parser/PELoader.java @@ -18,6 +18,7 @@ import com.github.katjahahn.parser.coffheader.COFFFileHeader; import com.github.katjahahn.parser.msdos.MSDOSHeader; import com.github.katjahahn.parser.optheader.OptionalHeader; +import com.github.katjahahn.parser.sections.SectionLoader; import com.github.katjahahn.parser.sections.SectionTable; import com.github.katjahahn.tools.ReportCreator; import com.github.katjahahn.tools.visualizer.ImageUtil; @@ -253,10 +254,11 @@ private OptionalHeader loadOptionalHeader(PESignature pesig, */ public static void main(String[] args) throws IOException, AWTException { - File file = new File("C:\\Users\\strup\\Downloads\\poco.dll"); + File file = new File("C:\\Users\\strup\\Downloads\\Binaries\\pidgin.exe"); PEData data = PELoader.loadPE(file); + //System.out.println((new SectionLoader(data)).loadImportSection().getInfo()); new ReportCreator(data).printReport(); - show(createImage(data)); + //show(createImage(data)); } private static BufferedImage createImage(PEData peData) { diff --git a/src/main/java/com/github/katjahahn/parser/sections/idata/ImportDLL.java b/src/main/java/com/github/katjahahn/parser/sections/idata/ImportDLL.java index a0a582e8..9ee6b925 100644 --- a/src/main/java/com/github/katjahahn/parser/sections/idata/ImportDLL.java +++ b/src/main/java/com/github/katjahahn/parser/sections/idata/ImportDLL.java @@ -18,7 +18,6 @@ import com.github.katjahahn.parser.IOUtil; import com.github.katjahahn.parser.PhysicalLocation; import com.google.common.base.Optional; -import com.sun.xml.internal.ws.resources.UtilMessages; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger;