https://github.com/dobin/disablewinr
https://github.com/dobin/disablewinr
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dobin/disablewinr
- Owner: dobin
- License: bsd-2-clause
- Created: 2025-05-13T18:06:08.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-05-13T18:37:26.000Z (about 1 year ago)
- Last Synced: 2025-05-13T19:39:13.619Z (about 1 year ago)
- Language: C++
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Disable Win-R
This disables the `Win-R` shortcut, which is used to open the Run dialog in Windows.
Because of how common ClickFix execbait attacks are.
No more:

Update: Can disable it in windows, see [this toot](https://infosec.exchange/@mttaggart/114503066592856224):
`HKEY_CURRENT_USER\SOFTWARE\Microsoft\CurrentVersion\Explorer\Advanced\DisabledHotkeys = R`.
# Usage
Execute as user. No privileges are required.
Win-R is only blocked as long as the program is running.
Start:
```
> DisableWinR.exe
Hook installed.
Blocked Win+R
Blocked Win+R
```
To open a URL in the browser when `Win-R` is pressed,
give URL as first argument:
```
> DisableWinR.exe https://example.com
```
To make it start but not do anything:
```
> DisableWinR.exe --disable https://example.com
> DisableWinR.exe --disable
```
# How it works
It will silently eat the `R` when `Win` is pressed.
Using `SetWindowsHookEx()` callback.