tpkb icon indicating copy to clipboard operation
tpkb copied to clipboard

Catalina & 'Keyboard Input Monitoring' ability

Open fd1012cd opened this issue 6 years ago • 0 comments

If you run this in Terminal.app on Catalina, it will ask you to grant Terminal.app with 'Keyboard Input Monitoring' ability, resulting other cmd program to also have the ability.

To avoid this:

  1. Install it with SUID
sudo mkdir "/Library/Application Support/tpkb"
sudo cp tpkb "/Library/Application Support/tpkb"
sudo chown root:admin "/Library/Application Support/tpkb/tpkb"
sudo chmod a+rx "/Library/Application Support/tpkb/tpkb"
sudo chmod +s "/Library/Application Support/tpkb/tpkb"
  1. Make an AppleScript application
set the_result to do shell script "/Library/Application\\ Support/tpkb/tpkb"
if the_result is not equal to "" then
	display dialog the_result
end if

fd1012cd avatar Oct 31 '19 10:10 fd1012cd