Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/slyd0g/SwiftSpy
macOS keylogger, clipboard monitor, and screenshotter
https://github.com/slyd0g/SwiftSpy
Last synced: 27 days ago
JSON representation
macOS keylogger, clipboard monitor, and screenshotter
- Host: GitHub
- URL: https://github.com/slyd0g/SwiftSpy
- Owner: slyd0g
- Created: 2020-10-29T04:55:29.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-09-01T19:08:43.000Z (over 3 years ago)
- Last Synced: 2024-08-04T04:05:36.696Z (4 months ago)
- Language: Swift
- Size: 9.77 KB
- Stars: 73
- Watchers: 5
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-apple-security - SwiftSpy - macOS Keyloger written in Swift. (Tools / Offensive Tools)
README
# SwiftSpy
macOS keylogger, clipboard monitor, and screenshotter written in Swift# Usage
```
SwiftSpy by @slyd0g
Usage:
-h || -help | Print help menu
-keylog | Logs all keystrokes to stdout using IOHIDManager* APIs, requires 'Input Monitoring' permissions
-clipboard | Monitors for changes to the system clipboard and logs to stdout
-allkeys | Runs both the keylog and clipboard modules, requires 'Input Monitoring' permissions
-screenshot /tmp | Takes a screenshot of the user's screen and saves to the /tmp, requires 'Screen Recording` permissions
-screenshot /tmp 5 | Takes a screenshot every 5 seconds and saves to /tmp, requires 'Screen Recording` permissions
```# References
- https://github.com/SkrewEverything/Swift-Keylogger
- https://stackoverflow.com/questions/7190852/using-iohidmanager-to-get-modifier-key-events
- https://stackoverflow.com/questions/30380400/how-to-tap-hook-keyboard-events-in-osx-and-record-which-keyboard-fires-each-even
- https://stackoverflow.com/questions/8676135/osx-hid-filter-for-secondary-keyboard
- https://developer.apple.com/library/archive/documentation/DeviceDrivers/Conceptual/HID/new_api_10_5/tn2187.html
- https://stackoverflow.com/questions/48070396/how-to-get-list-of-hid-devices-in-a-swift-cocoa-application
- https://stackoverflow.com/questions/39691106/programmatically-screenshot-swift-3-macos/40864231#40864231