In every IT office I have worked in pulling pranks co-workers has been a standard. They tend to be low tech; co-worker leaves computer unlocked you change their background, maybe change their Windows sound affects. They tend to be small and easy to revert.
Over the summer in our office we had an intern program and a specific intern who wasn’t very wise when it came to locking his computer. We got him probably 10-15 times with picture of David Hasselhoff in a thong. We also installed some fun Google Chrome add-ons that would change every image on the page to something else.
These got boring; which is very unusual when making someone have a sexy background. However because we became so board with it we decided to take it a step further. We thought, wouldn’t it be cool to automate this with PowerShell? So our initial idea was changing the background to a random image. Looking through the ways of doing that was semi-complicated and I was feeling lazy. So we ditched the idea and it was on the back burner for a long time.
One evening I came home from work and stumbled upon this amazing post on the PowerShell Sub-Reddit “A fun script for Friday – make your friend’s computer start talking to him/her.” To sum it up, it’ll use Text to Speech to have the computer talk. In the example that was posted it used PowerShell Remoting. Using PowerShell Remoting for such a malicious intent may cross a line, depends on who the target is and how much you abuse it. In my case the computers were not domain joined and so I couldn’t use that as easily. So I decided to take my Friday night and make it quite a bit more “portable.”
Step 1: The Idea
So the first step had been achieved thanks to Sinisterly on the PowerShell Sub-Reddit.
Step 1: Writing the Script
Now writing the script was going to be easy, it was almost already written for me a few tweaks here and there and boom done. The first iteration of this script read from a file I copied to the system when initially deploying it. I decided that wasn’t nearly as much fun as controlling it remotely. So the current version when executed will download the newest phrase file from a web service and save to burried directory on the file system. Knowing the majority of my targets were male and the phrases I’d be using would have extra affect coming from a male voice I decided to add a Voice Hint of Male.