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

Remove Chrome dependency in cyberchef.vm thank to new changes #1021

Open
Ana06 opened this issue Apr 30, 2024 · 3 comments
Open

Remove Chrome dependency in cyberchef.vm thank to new changes #1021

Ana06 opened this issue Apr 30, 2024 · 3 comments
Assignees
Labels
💎 enhancement It is working, but it could be better ❔ discussion Further discussion is needed

Comments

@Ana06
Copy link
Member

Ana06 commented Apr 30, 2024

Details

I think with the changes in #1016 we could now remove the Chrome dependency in Cyberchef and the code to open it with chrome and set the icon (simplifying the installer code). I think we would keep the current behavior if both cyberchef.vm and googlechrome.vm are installed and remove the chrome dependency would allow to have a different browser as default (and to open cyberchef) if only cyberchef.vm is installed. This would need to add googlechrome.vm explicitly in flare-vm.

@emtuls what do you think?

@Ana06 Ana06 added 💎 enhancement It is working, but it could be better ❔ discussion Further discussion is needed labels Apr 30, 2024
@emtuls
Copy link
Member

emtuls commented May 23, 2024

@Ana06 Looking at this some more, I can't get a .html to open up with the specified browser using the VM-Set-Open-With-Association unfortunately. This runs into the same issue we had previously where it requires modification of a few specific registry keys that can't be changed unless the proper hash is generated and placed in the right location (along with a few other tweaks). In this case, it shows that it wants to open the file using Google Chrome, but then still displays the popup of if we want to always associated .html with this browser still, which can be seen in the screenshots below, which I'm not sure if this is preferred.

To bypass this, we can attempt to use the tool we discussed here, called SetDefaultBrowser, but I'll leave that up to you to determine if that's acceptable. :)

image

image

@Ana06
Copy link
Member Author

Ana06 commented May 27, 2024

VM-Set-Open-With-Association $exePath ".html" changes the icon but not the default icon, right? I think this is confusing, we should change the icon of html + default browser or remove the icon association. Let's discuss in #822 if we can change the default browser.

@emtuls
Copy link
Member

emtuls commented Jul 27, 2024

I may have a semi-working solution for this. It makes the popup not be displayed anymore, which means opening a .html just "works" (by this, I mean it opens up in chrome without a popup stopping you), but it still does not set the default browser for Windows.

I still need to test how this would work if chrome was not installed, but at least for the chrome case...
After using VM-Set-Open-With-Association $exePath ".html", we just need to create the following registry key and then restart explorer.exe:

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Explorer]
“NoNewAppAlert”=dword:00000001

NOTE: This does not make chrome the default browser still, which also makes the popup asking to make chrome the default browser still appear. I can look into seeing if I can bypass that as well, without actually setting the default browser, but it may not be possible.
I have now also found a way to bypass the popup in chrome for this to not be displayed anymore as well. 😊
Need to add "default_browser_infobar_declined_count":1 to the Local State under browser and "default_browser_infobar_last_declined":"1" to Preferences under browser as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💎 enhancement It is working, but it could be better ❔ discussion Further discussion is needed
Projects
None yet
Development

No branches or pull requests

2 participants