Re: keystroke logger for Mac OS X
Use a CGEventTap for the keystroke capturing, and the NSWorkspace class to get the info you need about the frontmost app. Writing it to a file is trivial. Dave On Oct 13, 2008, at 5:16 AM, apple apple wrote: I need to write a keystroke logger for Mac OS X. I am debating which architecture to use. Can this be accomplished efficiently from user space or would a KEXT be needed? It needs to be fast and efficient. Ideally the logger will not impact system performance in any way. Also ideally it should comply with the following: - Runs under 10.5 and 10.4 would also be nice. - Must log every keystroke typed to a file. - Should capture the name of the app in which the keystrokes were typed. - Should capture the title of the window in which the keystrokes are typed. - Ideally the logger should use notifications rather than polling so that the logger code only gets called when an actual keystroke happens. Any ideas on what the best architecture would be to accomplish this? Thanks ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: keystroke logger for Mac OS X
FYI: the system will hide keyboard input from you in password fields (as well as any input in Terminal if the user turns on Secure Keyboard Entry). On Mon, Oct 13, 2008 at 7:24 AM, Dave DeLong [EMAIL PROTECTED] wrote: Use a CGEventTap for the keystroke capturing, and the NSWorkspace class to get the info you need about the frontmost app. Writing it to a file is trivial. Dave On Oct 13, 2008, at 5:16 AM, apple apple wrote: I need to write a keystroke logger for Mac OS X. I am debating which architecture to use. Can this be accomplished efficiently from user space or would a KEXT be needed? It needs to be fast and efficient. Ideally the logger will not impact system performance in any way. Also ideally it should comply with the following: - Runs under 10.5 and 10.4 would also be nice. - Must log every keystroke typed to a file. - Should capture the name of the app in which the keystrokes were typed. - Should capture the title of the window in which the keystrokes are typed. - Ideally the logger should use notifications rather than polling so that the logger code only gets called when an actual keystroke happens. Any ideas on what the best architecture would be to accomplish this? Thanks ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/clarkcox3%40gmail.com This email sent to [EMAIL PROTECTED] -- Clark S. Cox III [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: keystroke logger for Mac OS X
Note that this technic will not be able to catch secured events: http://developer.apple.com/technotes/tn2007/tn2150.html Le 13 oct. 08 à 16:24, Dave DeLong a écrit : Use a CGEventTap for the keystroke capturing, and the NSWorkspace class to get the info you need about the frontmost app. Writing it to a file is trivial. Dave On Oct 13, 2008, at 5:16 AM, apple apple wrote: I need to write a keystroke logger for Mac OS X. I am debating which architecture to use. Can this be accomplished efficiently from user space or would a KEXT be needed? It needs to be fast and efficient. Ideally the logger will not impact system performance in any way. Also ideally it should comply with the following: - Runs under 10.5 and 10.4 would also be nice. - Must log every keystroke typed to a file. - Should capture the name of the app in which the keystrokes were typed. - Should capture the title of the window in which the keystrokes are typed. - Ideally the logger should use notifications rather than polling so that the logger code only gets called when an actual keystroke happens. Any ideas on what the best architecture would be to accomplish this? Thanks ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/devlists%40shadowlab.org This email sent to [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: keystroke logger for Mac OS X
You can catch all keyboard events with a KEXT, since your operating in the kernel youll catch events that go to password fields as well. If you want you can even inject or modify events. See IOHIKeyboard's _keyboardEventAction hook. http://74.125.45.104/search?q=cache:gFhW3FJ3xlgJ:src.gnu-darwin.org/DarwinSourceArchive/expanded/IOHIDFamily/IOHIDFamily-86/IOHIDSystem/IOHIKeyboard.cpp+iohikeyboard+_keyboardeventactionhl=enct=clnkcd=3gl=usclient=safari On Oct 13, 2008, at 6:16 AM, apple apple wrote: I need to write a keystroke logger for Mac OS X. I am debating which architecture to use. Can this be accomplished efficiently from user space or would a KEXT be needed? It needs to be fast and efficient. Ideally the logger will not impact system performance in any way. Also ideally it should comply with the following: - Runs under 10.5 and 10.4 would also be nice. - Must log every keystroke typed to a file. - Should capture the name of the app in which the keystrokes were typed. - Should capture the title of the window in which the keystrokes are typed. - Ideally the logger should use notifications rather than polling so that the logger code only gets called when an actual keystroke happens. Any ideas on what the best architecture would be to accomplish this? Thanks, ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/matt.w.burnett%40gmail.com This email sent to [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]