Package org.boris.pecoff4j

Examples of org.boris.pecoff4j.PE


    private static String PF4 = "C:\\windows\\system32\\exe2bin.exe";
    private static String PF5 = "C:\\windows\\system32\\dosx.exe";
    private static String U32 = "C:\\windows\\system32\\user32.dll";

    public static void main(String[] args) throws Exception {
        PE pe = PEParser.parse(U32);
        System.out.println(pe);
    }
View Full Code Here


import org.boris.pecoff4j.resources.IconImage;

public class IconExtractor
{
    public static void extract(File pecoff, File outputDir) throws IOException {
        PE pe = PEParser.parse(pecoff);
        ResourceDirectory rd = pe.getImageData().getResourceTable();
        if (rd == null)
            return;
        ResourceEntry[] entries = ResourceHelper.findResources(rd,
                ResourceType.GROUP_ICON);
        for (int i = 0; i < entries.length; i++) {
View Full Code Here

import org.boris.pecoff4j.io.PEParser;

public class ResourceStripper
{
    public static void remove(File pecoff, File output) throws Exception {
        PE pe = PEParser.parse(pecoff);
    }
View Full Code Here

            setSplash(args[1], args[2]);
        }
    }

    private static void addIcon(String exe, String icon) throws IOException {
        PE pe = PEParser.parse(exe);
        IconFile ic = IconFile.parse(icon);
    }
View Full Code Here

        PE pe = PEParser.parse(exe);
        IconFile ic = IconFile.parse(icon);
    }

    private static void setIni(String exe, String ini) throws IOException {
        PE pe = PEParser.parse(exe);
        byte[] inib = IO.toBytes(new File(ini));
        ResourceDirectory rd = pe.getImageData().getResourceTable();
        if (rd != null) {

        }
    }
View Full Code Here

        }
    }

    private static void setSplash(String exe, String splash) throws IOException {
        PE pe = PEParser.parse(exe);
        byte[] spb = IO.toBytes(new File(splash));
        ResourceDirectory rd = pe.getImageData().getResourceTable();

    }
View Full Code Here

TOP

Related Classes of org.boris.pecoff4j.PE

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.