Hi,
Contributions are always welcome.
Regarding 1) I don't know what your exact needs may be but you can
have pefile take a string buffer by invoking it as:
pe = pefile.PE(data=your_buffer)
The pe.write() method will return a string if invoked without a
filename argument.
2) can be usually achieved via set_bytes_at_rva() and
set_bytes_at_offset(). If the RVA of the beginning of section is
provided, the given data will overwrite the section's contents. A more
convenient method may come handy, so feel free to implement it.
Something more elaborate, like automatically resizing and adjusting
all headers and resources (if necessary) is a bit trickier and would
be a great contribution!
Best regards,
--
Ero Carrera
> --
> You received this message because you are subscribed to the Google Groups
> "pefile" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
pefile+un...@googlegroups.com.
> To post to this group, send email to
pef...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/pefile.
> For more options, visit
https://groups.google.com/groups/opt_out.