moonD4rk / HackBrowserData

Extract and decrypt browser data, supporting multiple data types, runnable on various operating systems (macOS, Windows, Linux).
MIT License
11.19k stars 1.57k forks source link

Panicked while decrypt passwords data #87

Closed dwisiswant0 closed 3 years ago

dwisiswant0 commented 3 years ago

Describe the bug A clear and concise description of what the bug is. 描述一下遇到的 Bug,和对应的报错信息 ./hack-browser-data -vv

Unable to decrypt password, everything display: parse.go:639: debug https://REDACTED/ have empty password decrypt failed, password is empty.

Then its panic:

...
...
...
// SNIPPED
parse.go:639: debug https://REDACTED/ have empty password decrypt failed, password is empty
parse.go:639: debug https://REDACTED/ have empty password decrypt failed, password is empty
parse.go:639: debug https://REDACTED/ have empty password decrypt failed, password is empty
...
panic: runtime error: slice bounds out of range [:-81]

goroutine 1 [running]:
hack-browser-data/core/decrypt.PKCS5UnPadding(...)
        /root/Tools/HackBrowserData/core/decrypt/decrypt.go:176
hack-browser-data/core/decrypt.aes128CBCDecrypt(0xc000238750, 0x10, 0x14, 0xc0004cd2d0, 0x10, 0x10, 0xc0009ca183, 0x20, 0x20, 0x41acb8, ...)
        /root/Tools/HackBrowserData/core/decrypt/decrypt.go:169 +0x1b1
hack-browser-data/core/decrypt.ChromePass(0xc000238750, 0x10, 0x14, 0xc0009ca180, 0x23, 0x23, 0xc0004cd220, 0xf, 0x10, 0x0, ...)
        /root/Tools/HackBrowserData/core/decrypt/decrypt_linux.go:9 +0x10a
hack-browser-data/core/data.(*passwords).ChromeParse(0xc000012e80, 0xc000238750, 0x10, 0x14, 0x0, 0x0)
        /root/Tools/HackBrowserData/core/data/parse.go:636 +0x70a
hack-browser-data/cmd.Execute.func1(0xc000012840, 0x0, 0xe)
        /root/Tools/HackBrowserData/cmd/cmd.go:86 +0x5c2
github.com/urfave/cli/v2.(*App).RunContext(0xc000001980, 0x885b30, 0xc0000181e0, 0xc000012080, 0x4, 0x4, 0x0, 0x0)
        /root/.go/pkg/mod/github.com/urfave/cli/v2@v2.2.0/app.go:315 +0x6fe
github.com/urfave/cli/v2.(*App).Run(...)
        /root/.go/pkg/mod/github.com/urfave/cli/v2@v2.2.0/app.go:215
hack-browser-data/cmd.Execute()
        /root/Tools/HackBrowserData/cmd/cmd.go:115 +0x7c5
main.main()
        /root/Tools/HackBrowserData/main.go:8 +0x25

Desktop (please complete the following information):

Additional context Add any other context about the problem here. 其他有用的信息

dwisiswant0 commented 3 years ago

I'm not sure why, but the Login Data file is there.

dwisiswant0 commented 3 years ago

Cookies, history, download, creditcard & bookmark are successfully exported, except passwords.

dwisiswant0 commented 3 years ago

Previously showing parse.go:254: debug decrypt failed, password is empty multiple times.