2023-10-18 06:35:04 +00:00
|
|
|
EXTENSION WINDOWS_ELEVATED_EXECUTION
|
2023-08-28 12:17:25 +00:00
|
|
|
REM VERSION 1.1
|
2024-05-28 17:25:26 +00:00
|
|
|
REM Author: 0i41E
|
2022-11-14 10:23:39 +00:00
|
|
|
REM Executes the desired program with elevated privileges
|
|
|
|
REM Conformation via keyboard shortcut for (currently) english, german and spanish layouts
|
|
|
|
REM additional extensions
|
|
|
|
|
|
|
|
REM CONFIGURATION:
|
|
|
|
REM Used to wait for the UAC prompt to react to input
|
2023-08-28 12:17:25 +00:00
|
|
|
DEFINE #INPUT_WAIT 2000
|
2022-11-14 10:23:39 +00:00
|
|
|
REM Shortcut for YES across multiple languages
|
2023-08-28 12:17:25 +00:00
|
|
|
DEFINE #ENGLISH_ACCEPT ALT y
|
|
|
|
DEFINE #GERMAN_ACCEPT ALT j
|
|
|
|
DEFINE #SPAIN_ACCEPT ALT s
|
2022-11-14 10:23:39 +00:00
|
|
|
|
|
|
|
FUNCTION Elevated_Execution()
|
2023-08-28 12:17:25 +00:00
|
|
|
DELAY #INPUT_WAIT
|
2022-11-14 10:23:39 +00:00
|
|
|
CTRL-SHIFT ENTER
|
2023-08-28 12:17:25 +00:00
|
|
|
DELAY #INPUT_WAIT
|
2022-11-14 10:23:39 +00:00
|
|
|
REM Change below for appropriate language
|
2023-08-28 12:17:25 +00:00
|
|
|
#GERMAN_ACCEPT
|
|
|
|
DELAY #INPUT_WAIT
|
2022-11-14 10:23:39 +00:00
|
|
|
END_FUNCTION
|
|
|
|
|
|
|
|
REM EXAMPLE USAGE AFTER EXTENSION
|
|
|
|
REM DELAY 2000
|
|
|
|
REM GUI r
|
|
|
|
REM DELAY 2000
|
|
|
|
REM STRING powershell
|
|
|
|
REM Elevated_Execution()
|
|
|
|
REM STRINGLN whoami /priv
|
|
|
|
|
|
|
|
END_EXTENSION
|