There is a python script that will modify windows PE executables ([url removed, login to view])
I need a script that will use this module to do the following:
1. Accept 3 parameters:
A) Source Directory of Image (JPG) files.
B) Source Directory of stub screensaver to modify.
C) Output directory/filename of the modified screensaver.
The script will use the pefile module to remove any JPG resources that are in the screensaver and then add the ones that are in the source directory given above.
Once modified it would save the screensaver in the output folder given above.
P.S. I have attached the screensaver as an example. You'll need to rename the extension from .sc_ to .scr to run it but I'd recommend just looking at it with a resource viewer :)