-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
find browser Chrome failed, profile folder is not exist #134
Comments
@Amir-78 ok, I will try fix it. |
Thank you <3 |
Can you tell me what's your browser profile path? |
@moonD4rk |
Very happy to hear your suggestios. @Amir-78 |
@moonD4rk Alright, so instead of setting the default profile path, you need to filter all directories in
//Windows;
const fs = require('fs');
let homeDir = `C:/Users/${require("os").userInfo().username}`
let chromeProfilesPath = homeDir + "/AppData/Local/Google/Chrome/User Data/"
let chromeProfiles = [];
//Show all dirs in chromeProfilesPath;
fs.readdir(chromeProfilesPath, function (err, dirs) {
//Filter all directories in chromeProfilesPath and show only the directory who includes "Login Data" file!
dirs = dirs.filter(dir => fs.existsSync(`${chromeProfilesPath}${dir}/Login\ Data`) && dir != "System Profile")
// Push results to chromeProfiles;
for (var i = 0; i < dirs.length; i++) {
chromeProfiles.push(`${chromeProfilesPath}/${dirs[i]}`)
}
//Show extracted profiles!
console.log(chromeProfiles)
}); And to extract all the data from all the profiles you can use:
for (var i = 0; i < chromeProfiles.length; i++) {
console.log(`Getting Data from ${chromeProfiles[i]}`);
extractData(chromeProfiles[i])// Your extractData function;
} |
@Amir-78 Thx, this makes perfect sense and I will try to refactor the code using this approach. |
@moonD4rk Alright, if you need any help feel free to contact me. <3 |
wah amir 78 |
:) |
Hi @Amir-78 , i think this issuse has been fixed in v0.4.3, please check |
@moonD4rk still not working, have you used my PR ? |
@Amir-78 Test fine on macOS and Linux, I'll find a Windows computer later to try |
Describe the bug
./hack-browser-data -vv
:Cannot find Chrome folder:
find browser Chrome failed, profile folder is not exist
101.0.4951.54 (Official Build) (64-bit)
Cannot find Chromium folder:
find browser Chromium failed, profile folder is not exist
Cannot find OperaGX folder:
find browser OperaGX failed, profile folder is not exist
LVL3 (core: 77.0.4054.298)
Desktop (please complete the following information):
Windows 8.1 Pro
Chrome
101.0.4951.54 (Official Build) (64-bit)
OperaGX
LVL3 (core: 77.0.4054.298)
Additional context
Browsers profile folders are not recognized even though I use them and all data is saved in them.
The text was updated successfully, but these errors were encountered: