Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DocuBleach - Add .ppt file support #25

Open
Patterbear opened this issue Jul 4, 2024 · 0 comments
Open

DocuBleach - Add .ppt file support #25

Patterbear opened this issue Jul 4, 2024 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@Patterbear
Copy link
Member

Patterbear commented Jul 4, 2024

The DocuBleach tool already supports all BFF office formats EXCEPT .ppt.

Support has not yet been added as .ppt files embed their macros within the 'Presentation' stream of the file.

This is problematic, as the current method of removing macros for BFF files is by finding the VBA stream and replacing its contents with empty bytes. Attempting this on a .ppt corrrupts it.

olefile only allows us to access these streams, and not whats within them. A way must be found to delve into the stream and wipe VBA content.

To add this functionality, you must first add 'ppt' to the global 'bff_formats' array in the start of bleach.py.

Then, you can add your logic to the 'if file_type == "ppt"' if statement, located at the bottom of the 'remove_bff_macros' function.

I have left a single line of code that returns a list of all the streams found within the file. The resulting variable can then be printed.

@Patterbear Patterbear added the help wanted Extra attention is needed label Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
Development

No branches or pull requests

1 participant