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

tool to remove VBA password protection #97

Open
decalage2 opened this issue Oct 3, 2016 · 0 comments
Open

tool to remove VBA password protection #97

decalage2 opened this issue Oct 3, 2016 · 0 comments
Assignees

Comments

@decalage2
Copy link
Owner

VBA projects may be protected with a password. That password is only enforced by MS Office, the VBA source code is not actually encrypted. Therefore, it should be possible to remove that password to unlock the VBA source code.

According to @bontchev: "you have to edit the PROJECT stream and remove the ID, CMG, DPB and GC lines."

At least two options:

  • improve olefile to be able to write MiniStreams (the PROJECT stream is usually smaller than 4KB)
  • use pywin32, which is only available on Windows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant