Giter Site home page Giter Site logo

swift-keylogger's Introduction

macOS Keylogger

Swift 4.0

It is a simple and easy to use keylogger for macOS. It is not meant to be malicious. There are only few keyloggers available for mac and none of them are in swift.

Another problem is with Apple high-level API's. I don't know the reason but Apple suddenly deprecates and removes the documentation of API's from it's website.

So, I don't want to keep checking about the availability of their API's and changing my code frequently. That is the reason I went for low-level API which is using HID API.

Most of the keyloggers available only logs keystrokes into a file without much information about on which app the keystrokes are generated.

Note: This keylogger doesn't capture secure input fields like passwords due to EnableSecureEventInput

Usage

Clone the repository and open the project in Xcode and build the project and run the executable.

To run it in the background

To be able to close the Terminal when Keylogger is running, use this command while running the executable.

$ nohup ./Keylogger &

And you can quit the Terminal.

To quit/stop the Keylogger

To quit the Keylogger, first find it's pid using ps and use kill to stop the keylogger.

$ ps -e | grep "Keylogger"
$ kill -9 pid_of_keylogger_from_above_command

When it's run, it creates folder Data

|--Keylogger
|--Data
    |--App
    |--Devices
    |--Key

Key folder stores all the keystrokes according to application. App folder stores all the timestamps of applications being active. Devices folder stores the information about the connected keyboards.

By default it creates folder where the executable is present. To change the path edit bundlePathURL in Keylogger.swift

All the data is grouped according to day in each folder.

Disclaimer

If the use of this product causes the death of your firstborn or anyone, I'm not responsible ( no warranty, no liability, etc.)

For technical people: It is only for educational purpose.

Contributing

Feel free to fork the project and submit a pull request with your changes!

License

MIT

Free Software, Hell Yeah!

swift-keylogger's People

Contributors

skreweverything avatar

Watchers

Alvin Cris Uy avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.