Prey in MacOS Mojave

Let us help you. Please tell us about…

  • Affected device (desktop, laptop, tablet, phone): Laptop
  • Operating system (Windows, MacOS, Android, iOS, Ubuntu, Fedora): MacOS
  • Part of Prey not working (Prey account, mobile app, a specific action or module, reports): Taking photos

Could you please describe the problem?

Hi! I made the jump to the new MacOS Mojave and I decided to check if Prey still works, knowing that Apple introduced new security measures such as asking the user if he/she wants to give an application access to the camera, microphone, etc. and that I could use one of my Time Machine backups to go back to High Sierra if it didn’t. While it does get the location and the screenshots, it won’t take any photos with the FaceTime camera. MacOS doesn’t even ask me to grant Prey permission to access it. I tried running the following Terminal command from the Prey Knowledge Base (screenshot attached at bottom of post):

sudo -u prey /usr/local/lib/prey/current/lib/agent/providers/webcam/mac/imagesnap -w 1 /tmp/test.jpg

But, I got this error message:

2018-09-24 21:19:37.092 imagesnap[1986:26315] +[NSXPCSharedListener endpointForReply:withListenerName:]: an error occurred while attempting to obtain endpoint for listener ‘ClientCallsAuxiliary’: Connection interrupted
Capturing image from device “FaceTime HD Camera”…/tmp/test.jpg

Is there a way for me to give Prey permission to use the camera? If nothing else, I may go back to High Sierra, but then again I might just wait for Prey to be updated with full compatibility for Mojave. The screenshot and the location might be sufficient, especially if the screenshot reveals the thief’s name. Still, it would be even better with a photo, so any help would be greatly appreciated! I am running the latest version of Prey, 1.8.1.

And finally, please attach a screenshot if available (you can drag and drop images)

Hi @ghosthaunt11,
I’m already reviewing this, for now could you try running the same command as before but this time as your logged user? For example sudo -u javo /usr/local/lib/prey/current/lib/agent/providers/webcam/mac/imagesnap -w 1 /tmp/test.jpg (in my case javo instead of prey)

Thank you for letting us know the issue.

Thanks, but it didn’t work. It did display the following message, though, and the camera light came on.

Capturing image from device “FaceTime HD Camera”…/tmp/test.jpg

And the image didn’t appeared inside /tmp directory?
That message means it was successful.

What I meant is that Prey still wasn’t taking photos when I marked the computer as missing. It got the location and it took screenshots, but no photos.

Yeah, the command is just to show how prey does it. Now I know how to fix the problem.
I’m gonna test it out prey completely on Mojave and let you know when the new version is available.

Thank you for your help.
Regards,
Javo

So, I guess there isn’t much else that I could do at the moment. Thanks, Javier, for your time, and I’m also glad to help by pointing out the issue!

1 Like