pecoff4j | COFF 4J is a java engineering library
kandi X-RAY | pecoff4j Summary
kandi X-RAY | pecoff4j Summary
PE/COFF 4J is a java engineering library for portable executables, the format used by Windows. It has the following features:. This is a fork of Imported from CVS on May 24th, 2014.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Extract an iconcoff from a file
- Recursively find all resources in parent directory
- Read a group icon directory entry
- Write fixed file information
- Parses an instruction from an input stream
- Prints a string representation of an object
- Parses an instruction
- Compute the difference between two byte arrays
- Dumps the contents of a byte array into a table
- Dump a row of data
- Read a unicode string
- Reads a unicode
- Find the section with the given name
- Gets the value associated with the specified key
- Writes a string
- Writes a UTF - 8 string
- Read an import directory table
- Read an Import entry
- Get the index of the first section in the section
- Gets constant name
- Read bitmap header
- Remove the specified key from the hashtable
- Returns an Intel assembly string for this machine
- Read UTF - 8 bytes
- Writes the given instructions to the given PrintStream
- Region OutputStream Implementation
pecoff4j Key Features
pecoff4j Examples and Code Snippets
Community Discussions
Trending Discussions on pecoff4j
QUESTION
We are looking for an approach to extract our application JARs and resources from an EXE installer built with install4j. We are trying to automate installers testing though without actual installation - we want to run our application main JAR unpacked from an installer.
With help of PE file format parser https://github.com/kichik/pecoff4j I've found the major part of content is placed in some kind of preamble of an image. The same entry with the same size is shown when I opened the installer in 7-Zip: But the format of the entry is unknown to 7-Zip and I can't to go deeper. When I opened the entry in a hex editor I found some of the application resources content, classes names, etc.
The question is - what is a format of the entry and how can I parse it?
P.S.: It seems there should be no issues with DMG for Apple and SH for Linux - as they are regular archives and I hope I can read them in my Java code.
...ANSWER
Answered 2021-May-07 at 06:56This is not a documented format, it is internal to the installer. You could build an additional Windows ZIP archive media file and extract that. It will have the same contents as the installer.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pecoff4j
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page