Merge pull request #139 from aleff-github/patch-6

Change Windows User Name
pull/178/head
Kalani Helekunihi 2023-06-12 15:30:59 -04:00 committed by GitHub
commit b90ac678ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 62 additions and 0 deletions

View File

@ -0,0 +1,21 @@
# Change Windows User Name
This script can be used to change the windows user name.
**Category**: Execution
## Description
This script can be used to change the windows user name.
The script opens the research app and go to User Accounts settings using the default path `Control Panel\All Control Panel Items\User Accounts`, then go to "Change your account name" option and set the new name, save it and close the app.
It is absurd that you can do so many things on windows without asking for permissions.
### Dependencies
* Set the new name that you want to set
```DuckyScript
DEFINE NEW_NAME example
```

View File

@ -0,0 +1,41 @@
REM #############################################
REM # |
REM # Title : Change Windows User Name |
REM # Author : Aleff |
REM # Version : 1.0 |
REM # Category : Execution |
REM # Target : Windows 10/11 |
REM # |
REM #############################################
REM Requirements:
REM - Nothing
REM Note:
REM - Payload tested on Windows 11 Eng
REM Set the new name that you want to set
DEFINE NEW_NAME example
DEFAULT_DELAY 500
REM Open Windows research
GUI
DELAY 1000
REM Search and opern explorer app
STRINGLN explorer
REM Goto search bar and open User Accounts settings
REPEAT 3 TAB
ENTER
STRINGLN Control Panel\All Control Panel Items\User Accounts
DELAY 1500
REM Goto "Change you account name"
TAB
ENTER
STRING NEW_NAME
TAB
ENTER
ALT F4