cckuailong / HackChrome

:snowman: Get the User:Password from Chrome(include version < 80 and version > 80)
MIT License
332 stars 55 forks source link
chrome hack security

HackChrome

Build Status

English ReadMe || 中文 ReadMe

Get the User:Password from Chrome(include version < 80 and version > 80)

Chrome version Affact

All version

Platform

Windows

Usage

Hackone.exe > res.txt

Demo

demo

Theory

User:Password pairs were stored in the file named "Login Data".

Password was encrypted, But we can use "CryptUnprotectData" Function in "Crypt32.dll" to decrypt them.

Finally, We get the plaintext of the User:Password pairs stored in Chrome

Based on the Algorithm used by "version < 80", It use AES-GCM to encrypt the password via a and a .

The can be found in the "Local State" file, and can be decypted by "CryptUnprotectData" mentioned above.

The can be found at the begin of the encrypted_password.

Therefore, we can decrpted all the password.

If someone update the Chrome recently, we need to find the two ways of User:Password pairs.

What's more, I use some rules to merge the results into an array.

LICENSE

The Project follows MIT LICENSE.