Excel VBA Password Via Hex Editor
Excel VBA Password Via Hex Editor
stackoverflow.com
~3 minutes
I have used the "Hex Editor to modify DPB to DPx" many times in
the past to bypass VBA project security on my old Excel VBA
projects (.xls), so I definitely know how to do it and know that I can
do it.
Opening the VBA editor gave a message saying that the project is
corrupted and that the project will be removed. The VBA editor
then opens and, sure enough, all VBA is stripped out from
modules and worksheets.
But find that the length of the "GC" key created on my 'dummy'
spreadsheet is shorter than the "GC" key on the spreadsheet that I
am wishing to access (the "target"). I had read elsewhere that in
1 of 3 13-Apr-2023, 8:45 PM
Excel VBA Password via Hex Editor - Stack Overflow about:reader?url=https%3A%2F%2Ffanyv88.com%3A443%2Fhttps%2Fstackoverflow.com%2Fquestions...
cases where the "target" keys were longer, you could pad the
"dummy" keys to the same length but there is nothing i can find to
say what to do in the reverse case.
So - my questions (s);
• Is anyone aware if a patch has been applied that makes the "hex
editor" approach invalid?
• Can anyone help with what to do when the dummy keys are longer
than the target keys?
• Can anyone else provide any updated onsite into this issue?
EDIT Having now solved this (to some degree) i thought i'd add a
summary here.
I HAVE NOT been able to get this to work on Mac Excel 2011.
Something about changing the file from filname.xlsm to
fielname.zip and back again results in a corrupted excel file which
Excel 2011 refuses to recognise.
ORIGINAL: GC="0F0DA36FAF938494849484"
NEW: (TEST) GC="BAB816BBF4BCF4BCF4" (from Ricko
below)
NEW: (TEST) GC="BAB816BBF4BCF4BCF40000" (what i
used and what worked)
2 of 3 13-Apr-2023, 8:45 PM
Excel VBA Password via Hex Editor - Stack Overflow about:reader?url=https%3A%2F%2Ffanyv88.com%3A443%2Fhttps%2Fstackoverflow.com%2Fquestions...
3 of 3 13-Apr-2023, 8:45 PM