CounterfeitLlama / OSX-Keylogger

Python keylogger designed for Mac
9 stars 7 forks source link

Unable to close the application from terminal on pressing ctrl+C #4

Open DoomTaper opened 7 years ago

DoomTaper commented 7 years ago

I use python Keylogger2.py when I press ctrl+C i get following error and app is still running.

^C2017-06-13 16:20:22.390 Python[1094:45293] An uncaught exception was raised 2017-06-13 16:20:22.390 Python[1094:45293] <type 'exceptions.KeyboardInterrupt'>: 2017-06-13 16:20:22.392 Python[1094:45293] ( 0 CoreFoundation 0x00007fff9d033452 __exceptionPreprocess + 178 1 libobjc.A.dylib 0x00007fff9da53f7e objc_exception_throw + 48 2 CoreFoundation 0x00007fff9d033399 -[NSException raise] + 9 3 _objc.so 0x0000000104283ba4 PyObjCErr_ToObjCWithGILState + 46 4 _objc.so 0x0000000104270792 PyObjCFFI_MakeClosure + 5033 5 libffi.dylib 0x00007fff93924a24 ffi_closure_unix64_inner + 516 6 libffi.dylib 0x00007fff93924096 ffi_closure_unix64 + 70 7 HIToolbox 0x00007fff92d0c7be _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 1231 8 HIToolbox 0x00007fff92d0bc48 _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 404 9 HIToolbox 0x00007fff92d0baab SendEventToEventTargetWithOptions + 43 10 HIToolbox 0x00007fff92d4908d _ZL29ToolboxEventDispatcherHandlerP25OpaqueEventHandlerCallRefP14OpaqueEventRefPv + 2029 11 HIToolbox 0x00007fff92d0ce0f _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 2848 12 HIToolbox 0x00007fff92d0bc48 _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 404 13 HIToolbox 0x00007fff92d219e6 SendEventToEventTarget + 40 14 AppKit 0x00007fff947fa5e9 _DPSNextEvent + 3102 15 AppKit 0x00007fff947f9226 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454 16 AppKit 0x00007fff947edd80 -[NSApplication run] + 682 17 libffi.dylib 0x00007fff93923f14 ffi_call_unix64 + 76 18 ??? 0x00007ff99e1626b0 0x0 + 140710075836080 )

gabycperezdias commented 6 years ago

Hey, even tough you can't finish with a ctrl+C can you make the program work? Because in my case, the terminal gets locked (as in your case) but no log file is generated :(

twotabsofacid commented 5 years ago

In case anyone finds themselves here not knowing what to do: closing the terminal window stops the program for me.

(as a side note, the mouse logging works in my case but i have to comment out import keycode in order to get the program to run and that seems to prevent any actual key logging)