From c26e6df304d481ec5f8c918ad3e481cb9989ef7b Mon Sep 17 00:00:00 2001 From: CedArctic Date: Tue, 25 Apr 2017 22:36:13 +0300 Subject: [PATCH] Added RickRoll_Update and WallpaperChanger RickRoll_Update : Plays Never Gonna Give you up while performing a fake windows update. WallpaperChanger : Downloads and applies a wallpaper via powershell. --- RickRoll_Update/RickRoll_Update.ino | 21 +++++++++++++++++ WallpaperChanger/WallpaperChanger.ino | 33 +++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 RickRoll_Update/RickRoll_Update.ino create mode 100644 WallpaperChanger/WallpaperChanger.ino diff --git a/RickRoll_Update/RickRoll_Update.ino b/RickRoll_Update/RickRoll_Update.ino new file mode 100644 index 0000000..c0ee229 --- /dev/null +++ b/RickRoll_Update/RickRoll_Update.ino @@ -0,0 +1,21 @@ +//This DigiSpark script opens up Rick Astley's - Never Gonna Give You Up and also a fake Windows update screen and then maximizes it using F11 +#include "DigiKeyboard.h" +void setup() { + //empty +} +void loop() { + DigiKeyboard.delay(2000); + DigiKeyboard.sendKeyStroke(0); + DigiKeyboard.sendKeyStroke(KEY_R, MOD_GUI_LEFT); + DigiKeyboard.delay(600); + DigiKeyboard.print("https://youtu.be/dQw4w9WgXcQ?t=43s"); + DigiKeyboard.sendKeyStroke(KEY_ENTER); + DigiKeyboard.delay(5000); + DigiKeyboard.sendKeyStroke(KEY_R, MOD_GUI_LEFT); + DigiKeyboard.delay(3000); + DigiKeyboard.print("http://fakeupdate.net/win10u/index.html"); + DigiKeyboard.sendKeyStroke(KEY_ENTER); + DigiKeyboard.delay(2000); + DigiKeyboard.sendKeyStroke(KEY_F11); + for(;;){ /*empty*/ } +} diff --git a/WallpaperChanger/WallpaperChanger.ino b/WallpaperChanger/WallpaperChanger.ino new file mode 100644 index 0000000..ecfc1d6 --- /dev/null +++ b/WallpaperChanger/WallpaperChanger.ino @@ -0,0 +1,33 @@ +//This DigiKeyboard Script downloads and sets a wallpaper through the Windows PowerShell. It has been tested successfully on Windows 10 +//and should probably work with Windows 7/8/8.1 etc. + +#include "DigiKeyboard.h" +void setup() { + //empty +} +void loop() { + DigiKeyboard.sendKeyStroke(0); + DigiKeyboard.sendKeyStroke(KEY_D, MOD_GUI_LEFT); + DigiKeyboard.delay(500); + DigiKeyboard.sendKeyStroke(KEY_R, MOD_GUI_LEFT); + DigiKeyboard.delay(500); + DigiKeyboard.print("powershell"); + DigiKeyboard.sendKeyStroke(KEY_ENTER); + DigiKeyboard.delay(500); + DigiKeyboard.print("$client = new-object System.Net.WebClient"); + DigiKeyboard.sendKeyStroke(KEY_ENTER); + DigiKeyboard.delay(500); + DigiKeyboard.print("$client.DownloadFile(\"https://tr3.cbsistatic.com/hub/i/2014/05/15/f8964afd-bd82-4e0e-bcbe-e927363dcdc1/3b858e39e2cf183b878f54cad0073a67/codedoge.jpg\" , \"doge.jpg\")"); + DigiKeyboard.sendKeyStroke(KEY_ENTER); + DigiKeyboard.delay(500); + DigiKeyboard.print("reg add \"HKCU\\Control Panel\\Desktop\" /v WallPaper /d \"%USERPROFILE%\\doge.jpg\" /f"); + DigiKeyboard.delay(500); + DigiKeyboard.sendKeyStroke(KEY_ENTER); + DigiKeyboard.delay(500); + DigiKeyboard.print("RUNDLL32.EXE USER32.DLL,UpdatePerUserSystemParameters ,1 ,True"); + DigiKeyboard.sendKeyStroke(KEY_ENTER); + DigiKeyboard.delay(500); + DigiKeyboard.print("exit"); + DigiKeyboard.sendKeyStroke(KEY_ENTER); + for(;;){ /*empty*/ } +}