Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
hak5
GitHub Repository: hak5/usbrubberducky-payloads
Path: blob/master/payloads/library/prank/PlayASongThroughSpotify_Windows/payload.txt
2968 views
1
REM ##################################################
2
REM # |
3
REM # Title : Play A Song Through Spotify |
4
REM # Author : Aleff |
5
REM # Version : 1.0 |
6
REM # Category : Prank |
7
REM # Target : Windows 10-11 |
8
REM # |
9
REM ##################################################
10
11
12
REM Requirements:
13
REM - Internet Connection
14
REM - Spotify installed and user logged-in
15
REM - ExecutionPolicy Bypass
16
17
18
REM REQUIRED - Set your song name
19
DEFINE SONG-NAME example
20
21
22
DELAY 1000
23
GUI r
24
DELAY 1000
25
STRING powershell
26
ENTER
27
DELAY 2000
28
29
STRINGLN Start-Process "spotify://"
30
DELAY 5000
31
TAB
32
DELAY 500
33
TAB
34
DELAY 500
35
TAB
36
DELAY 500
37
TAB
38
DELAY 500
39
ENTER
40
DELAY 500
41
42
REM Some times popups of advertisements may come out and usually they will click on the search screen, if you want you can uncomment line 42 so that the popup closes but in case the popup does not click then the rest of the script will not work because escaping it takes it out of its scope.
43
REM ESCAPE
44
REM DELAY 500
45
46
STRING SONG-NAME
47
ENTER
48
DELAY 1000
49
TAB
50
DELAY 500
51
TAB
52
DELAY 500
53
TAB
54
DELAY 500
55
ENTER
56
DELAY 500
57
GUI m
58
59