Skip to content

Instantly share code, notes, and snippets.

@stephenprater
Created November 29, 2016 18:37
Show Gist options
  • Save stephenprater/d73b212ed55848852f7e604fbc8f5c10 to your computer and use it in GitHub Desktop.
Save stephenprater/d73b212ed55848852f7e604fbc8f5c10 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>localhost.pbcopy</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/pbcopy</string>
</array>
<key>inetdCompatibility</key>
<dict>
<key>Wait</key>
<false/>
</dict>
<key>Sockets</key>
<dict>
<key>Listeners</key>
<dict>
<key>SockServiceName</key>
<string>2224</string>
<key>SockNodeName</key>
<string>0.0.0.0</string>
</dict>
</dict>
</dict>
</plist>
@stephenprater
Copy link
Author

Put this in /Users/<your_username>/LaunchAgents/pbcopy.plist of your mac to get remote keyboard access.

I wouldn't do this on a untrusted network. 🙉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment