parsing dump from pefile

14 views
Skip to first unread message

Martin Zibricky

unread,
Nov 5, 2010, 6:19:14 AM11/5/10
to pef...@googlegroups.com
Hi,

thanks for the pefile library. It's really handy.

Is it possible with pefile to parse the output of dump() function and
write parsed values back to an EXE file?

I would like to do the following:
- read versioninfo from an EXE
- write versioninfo to a txt file
- read modified txt file and write version info to an EXE

Is it possible to do this only with pefile or will I need to implement
parsing from txt myself?

Thanks in advance,
Martin Zibricky

Ero Carrera

unread,
Nov 5, 2010, 12:09:48 PM11/5/10
to pef...@googlegroups.com

Hi,

Might this help in some way?

http://code.google.com/p/pefile/wiki/ReadingResourceStrings

At least reading the stings should not be too hard. Writing new strings could be accomplished by modifying the data directly, although if you are adding strings that are longer than the existing ones you'll need to rebuild some structures to reflect the new offsets/lengths.

While pefile might be able to deal with some modifications it's mainly oriented towards overwriting values and not rebuilding PEs.

--
ero

> --
> You received this message because you are subscribed to the Google Groups "pefile" group.
> To post to this group, send email to pef...@googlegroups.com.
> To unsubscribe from this group, send email to pefile+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/pefile?hl=en.
>

Reply all
Reply to author
Forward
0 new messages