mintty / wsltty

Mintty as a terminal for Bash on Ubuntu on Windows / WSL
Other
3.11k stars 104 forks source link

(Suggestion) Automate adding necessary ASLR exclusions #326

Closed magic-spearmint closed 1 year ago

magic-spearmint commented 1 year ago

Most binaries from the Cygwin project tend to not play nice with Windows' ASLR exploit mitigation features which are enabled system-wide by default. The usual symptom is that they'll immediately and - most importantly - silently fail to run.

Disabling mandatory and bottom-up ASLR for specific executables can be automated using PowerShell's Set-ProcessMitigation command/cmdlet. Windows 10 Home and Pro have PowerShell 5.x (which has the aforementioned cmdlet) installed and enabled by default.

If wanted, I would be more than willing to adapt an existing small PS script I've written for inclusion with WSLtty. I only need to adjust it so that the code is formalized and abides by strict mode, is triggerable by an installer/external process, and supports checking for, creating, and removing necessary overrides on end users' systems.

Screenshot 2023-02-06 140017

Biswa96 commented 1 year ago

Would you like to provide some background? For example,

mintty commented 1 year ago

Related to #6 and #239. Would global disabling also be required as described in https://github.com/mintty/wsltty/issues/6#issuecomment-361281467 ? If so, would installation work for a non-admin user?

mintty commented 1 year ago

What's the command to adjust the property properly?

mintty commented 1 year ago

Closing as duplicate and missing prospect of a remedy.