Once it has done that it can post a comment on the reddit post with a link to the image.
Business Insider's James Cook : The original leaker behind the celebrity photos claimed that they accessed the images using the iCloud accounts of various celebrities.
The images are also easily findable on Twitter, where users have been posting them throughout the day.
It's unlikely that someone has broken into Apple's iCloud service.
I am aware the code is not in good shape, I keep just patching it manually to keep up with new image hosts, it is just intended to be a fun script, not a work of art! It works by using phantom.