Skip to content
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

Problem with Chrome default profile #70

Open
ThePirateWhoSmellsOfSunflowers opened this issue Apr 16, 2024 · 6 comments
Open

Problem with Chrome default profile #70

ThePirateWhoSmellsOfSunflowers opened this issue Apr 16, 2024 · 6 comments

Comments

@ThePirateWhoSmellsOfSunflowers
Copy link
Contributor

ThePirateWhoSmellsOfSunflowers commented Apr 16, 2024

Hello,

During an engagement I found that DonPAPI looks for the Default user profile. However, many of my targets has non default profile name (such as "Profile 1") or multiple profiles. Current profile name can be found within the Local State file:

Renamed profile

{
  "info_cache": {
    "Profile 5": {
      "active_time": REDACTED.135468,
      "avatar_icon": "chrome://theme/IREDACTED",
      "background_apps": false,
      "first_account_name_hash": 477,
      "force_signin_profile_locked": false,
      "gaia_given_name": "REDACTED",
      "gaia_id": "REDACTED",
      "gaia_name": "REDACTED",
      "gaia_picture_file_name": "Google Profile Picture.png",
      "hosted_domain": "REDACTED",
      "is_consented_primary_account": false,
      "is_ephemeral": false,
      "is_using_default_avatar": true,
      "is_using_default_name": true,
      "last_downloaded_gaia_picture_url_with_size": "REDACTED",
      "managed_user_id": "",
      "metrics_bucket_index": 5,
      "name": "Personne 2",
      "shortcut_name": "REDACTED",
      "signin.with_credential_provider": false,
      "user_accepted_account_management": false,
      "user_name": "REDACTED"
    }
  },
  "last_active_profiles": [
    "Profile 5"
  ],
  "last_used": "Profile 5",
  "metrics": {
    "next_bucket_index": 6
  },
  "picker_shown": true,
  "profile_counts_reported": "REDACTED",
  "profiles_created": 6,
  "profiles_order": [
    "Profile 5"
  ]
}

Multiple Profiles

{
  "info_cache": {
    "Default": {
      "active_time": REDACTED.728178,
      "avatar_icon": "chrome://theme/REDACTED",
      "background_apps": false,
      "first_account_name_hash": 822,
      "force_signin_profile_locked": false,
      "gaia_given_name": "REDACTED",
      "gaia_id": "REDACTED",
      "gaia_name": "REDACTED REDACTED",
      "gaia_picture_file_name": "Google Profile Picture.png",
      "has_multiple_account_names": true,
      "hosted_domain": "REDACTED",
      "is_consented_primary_account": true,
      "is_ephemeral": false,
      "is_using_default_avatar": true,
      "is_using_default_name": true,
      "last_downloaded_gaia_picture_url_with_size": "REDACTED",
      "managed_user_id": "",
      "metrics_bucket_index": 1,
      "name": "Personne 1",
      "shortcut_name": "REDACTED",
      "signin.with_credential_provider": false,
      "user_accepted_account_management": true,
      "user_name": "REDACTED"
    },
    "Profile 1": {
      "active_time": REDACTED.65364,
      "avatar_icon": "chrome://theme/REDACTED",
      "background_apps": false,
      "first_account_name_hash": 822,
      "force_signin_profile_locked": false,
      "gaia_given_name": "",
      "gaia_id": "",
      "gaia_name": "",
      "gaia_picture_file_name": "",
      "hosted_domain": "",
      "is_consented_primary_account": false,
      "is_ephemeral": false,
      "is_using_default_avatar": true,
      "is_using_default_name": false,
      "last_downloaded_gaia_picture_url_with_size": "",
      "managed_user_id": "",
      "metrics_bucket_index": 2,
      "name": "REDACTED REDACTED",
      "shortcut_name": "REDACTED REDACTED",
      "user_accepted_account_management": false,
      "user_name": ""
    },
    "Profile 3": {
      "active_time": REDACTED.08738,
      "avatar_icon": "chrome://theme/REDACTED",
      "background_apps": false,
      "default_avatar_fill_color": -10831423,
      "default_avatar_stroke_color": -16248044,
      "first_account_name_hash": 655,
      "force_signin_profile_locked": false,
      "gaia_given_name": "",
      "gaia_id": "",
      "gaia_name": "",
      "gaia_picture_file_name": "",
      "hosted_domain": "",
      "is_consented_primary_account": false,
      "is_ephemeral": false,
      "is_using_default_avatar": true,
      "is_using_default_name": false,
      "last_downloaded_gaia_picture_url_with_size": "",
      "managed_user_id": "",
      "metrics_bucket_index": 4,
      "name": "REDACTED",
      "profile_highlight_color": -10831423,
      "shortcut_name": "REDACTED",
      "signin.with_credential_provider": false,
      "user_accepted_account_management": false,
      "user_name": ""
    },
[...]
  },
  "last_active_profiles": [
    "Default"
  ],
  "last_used": "Default",
  "metrics": {
    "next_bucket_index": 7
  },
  "picker_shown": true,
  "profile_counts_reported": "REDACTED",
  "profiles_created": 10,
  "profiles_order": [
    "Profile 2",
    "Profile 4",
    "Profile 3",
    "Default",
    "Profile 1",
    "Profile 8"
  ]
}

Maybe it is possible to loop through the profiles or just dump the last_active_profiles ?

🌻

@Dfte
Copy link
Contributor

Dfte commented Oct 22, 2024

Hey man! I'm interested in this. Do you think it's better to get the last one or get them all ? I'd say get them all no ?

@ThePirateWhoSmellsOfSunflowers
Copy link
Contributor Author

Hey! In my opinion, I think it's better to dump the last one by default but also allow user to dump them all (via a command line arg ?) 😆

🌻

@Dfte
Copy link
Contributor

Dfte commented Oct 22, 2024

I'd say that if you let people choose, they won't use the arg because you know... People don't RTFM ahah

@ThePirateWhoSmellsOfSunflowers
Copy link
Contributor Author

It's up to you! But thanks in advance for your work

🌻

@8BitLogic
Copy link
Contributor

I'd say that if you let people choose, they won't use the arg because you know... People don't RTFM ahah

Hi, have you done any work on this issue? So far I see that this is the default functionality of dploot, and to realize the work with profiles it will be necessary to make PR in dploot repo or move part of the code to DonPAPI. I think I could do it.

@Dfte
Copy link
Contributor

Dfte commented Nov 2, 2024

Hey @8BitLogic, yeah it has to be changed directly in dploot. I'm waiting for Zblurx, who's not available for now, and once he is back we will work on that! ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants