Skip to content

Brave Custom path on linux #485

@doc1623

Description

@doc1623

Describe the bug

I'm trying to decrypt from a non-running brave profile directory. It worked perfectly for Firefox but Brave isn't working. It creates the brave_fault_passwords.csv but the passwords are missing. It does seem like it's using the custom path, but it's not renaming the output file nor able to decrypt the passwords.

%./hack-browser-data --vv -b brave -p "/home/myname/nas/mycomp/home/myname/.config/BraveSoftware/Brave-Browser/Default" 2>&1 |tee hack-browser-data_output

Log Output

---removed duplicate lines of which there are many with the "invalid padding size"

level=ERROR source=browserdata.go:26 msg="parse error" source_data=extension err="cannot find extensions in settings"
level=ERROR source=cookie.go:90 msg="decrypt chromium cookie error" err="AES128CBCDecrypt: pkcs5UnPadding: invalid padding size"
level=ERROR source=creditcard.go:77 msg="decrypt chromium credit card error" err="AES128CBCDecrypt: pkcs5UnPadding: invalid padding size"
level=ERROR source=password.go:82 msg="decrypt chromium password error" err="AES128CBCDecrypt: pkcs5UnPadding: invalid padding size"
level=INFO source=chromium_linux.go:74 msg="get master key success" browser=brave_default
level=WARN source=browserdata.go:56 msg="export success" filename=brave_default_bookmark.csv
level=WARN source=browserdata.go:56 msg="export success" filename=brave_default_cookie.csv
level=WARN source=browserdata.go:56 msg="export success" filename=brave_default_creditcard.csv
level=WARN source=browserdata.go:56 msg="export success" filename=brave_default_download.csv
level=WARN source=browserdata.go:56 msg="export success" filename=brave_default_history.csv
level=WARN source=browserdata.go:56 msg="export success" filename=brave_default_localstorage.csv
level=WARN source=browserdata.go:56 msg="export success" filename=brave_default_password.csv
level=WARN source=browserdata.go:56 msg="export success" filename=brave_default_sessionstorage.csv
level=WARN source=browser.go:73 msg="find browser success" browser=brave_default

Expected vs Actual Behavior

passwords decrypted and in brave password csv output file with custom name and no parse errors

Desktop

Both the computer running from and the original profile directory are Ubuntu

running FROM: Ubuntu 20.04.6 LTS
5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux

running ON: profile directory from Ubuntu 24.04.2 LTS

Not sure where to find browser version in profile directory

Additional Details

Again running on a profile directory copied from a drive that is no longer booting. I don't know if this is supposed to work or not

Checklist

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions