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

UAC #12 - Blocked & Bugged - File Explorer Bug #86

Open
honzapatCZ opened this issue May 10, 2022 · 4 comments
Open

UAC #12 - Blocked & Bugged - File Explorer Bug #86

honzapatCZ opened this issue May 10, 2022 · 4 comments

Comments

@honzapatCZ
Copy link

Hello, many of the UAC elevations are blocked(by WinDefender), but that's not an issue, but the 12th function is real bad. It blocks changing the specific registry key, but other than that leaves it there resulting in explorer not working correctly. The regKey gets written with null and clicking any folder in explorer now spawns a new empty window.
This is just FIY if anyone has a problem with explorer after messing with this.

@rootm0s
Copy link
Owner

rootm0s commented May 10, 2022

If it's an result of Windows Defender killing the process attempting to modify these values/keys its not easy for us to detect unless we run a separate process to watch over the execution and then perform clean-up if a method get's interrupted/killed

@honzapatCZ
Copy link
Author

Well Iam not sure how this should be dealt with, I just wanted to make this a known issue if explorer starts acting weirdly for you.

@haraun977
Copy link

any fix for this btw

@Mininaut
Copy link

Mininaut commented Jan 15, 2024

if someone gets this error, try this code to fix everything.

from winpwnage.core.utils import registry

def fix_registry():
    path = "Software\\Classes\\Folder\\shell\\open\\command"

    if registry().remove_key(hkey="hkcu", path=path, name="DelegateExecute"):
        print("Successfully removed 'DelegateExecute' key")
    else:
        print("Failed to remove 'DelegateExecute' key")

    if registry().modify_key(hkey="hkcu", path=path, name=None, value=""):
        print("Successfully reset the default value for 'Folder\\shell\\open\\command'")
    else:
        print("Failed to reset the default value for 'Folder\\shell\\open\\command'")

if __name__ == "__main__":
    fix_registry()

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

4 participants