Tema: Re: uzlokintas VBA. Kaip gauti slaptazodi
Autorius: Audrius
Data: 2014-07-16 11:24:23
Hack VBA Project Password


This article will discuss bypassing the password on an Excel VBA module.  These methods may or may not work for you.  As always, be sure to save your work before modifying the file.
This method will go over recovering the password from a file saved in an xls formatted file.  Note: If you have an xlsm formatted file, you maybe be able to simply save the file as an xls format using Excel and breach the file with this method.  You may also want to know, xlsm files are zip files.  You can rename them to .zip and browse their contents (when not protected).


Now open Excel, password protect a blank workbook, and save that blank workbook.  Now you can open the newly created Excel file, get the aforementioned lines of code, and use them to overwrite the password in the original file.  It is probably best to use a Hex editor to make the changes.  If the length of the three strings combined do not match the length of the unknown password, using the newly generated strings will corrupt the file.  If the string that was generated is shorter than the original, you may be able to pad the string with trailing 0's and use it to overwrite the password.  If not, keep making new Excel files with known passwords to generate new strings until you get one that has the same number of bytes as the unknown password.


You may also have some luck trying to get Excel to crash and resume by changing DPB to DPx.  It has been reported that in some cases this will cause Excel to discover an invalid key, and ask whether or not to continue loading the project, thus ignoring the password.


If none of the above methods worked, you may yet still be able to access that file.  If you need that file bad enough.  You can use VBA and SendKeys to write a subroutine that could attempt to breach the password through brute force.   This method will not be covered here.
Brute Force SendKeys Error 1004: http://support.microsoft.com/kb/282033


The Last Resort
It is important to note that an xlsm file can be renamed to zip and handled as such.  Excel uses RSA encryption to encrypt the file.  (The file of interest in an xlsm(zip) file is named vbaProject.bin.)

> butent gauti slaptazodi, o ne atrakint VBA.
> 
> 
>