keylogger | A no-frills keylogger for macOS

 by   caseyscarborough C Version: Current License: No License

kandi X-RAY | keylogger Summary

kandi X-RAY | keylogger Summary

keylogger is a C library typically used in macOS applications. keylogger has no bugs, it has no vulnerabilities and it has low support. You can download it from GitHub.

This repository holds the code for a simple and easy to use keylogger for Mac OS X. It is not meant to be malicious, and is written as a proof of concept. There is not a lot of information on keyloggers or implementing them on Mac OS X, and most of the ones I've seen do not work as indicated. This project aims to be a simple implementation on how it can be accomplished on OS X. Note: This keylogger is currently unable to capture secure input such as passwords. See issue #3 for more information.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              keylogger has a low active ecosystem.
              It has 490 star(s) with 155 fork(s). There are 27 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 9 open issues and 21 have been closed. On average issues are closed in 1110 days. There are 2 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of keylogger is current.

            kandi-Quality Quality

              keylogger has 0 bugs and 0 code smells.

            kandi-Security Security

              keylogger has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              keylogger code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              keylogger does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              keylogger releases are not available. You will need to build from source code and install.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of keylogger
            Get all kandi verified functions for this library.

            keylogger Key Features

            No Key Features are available at this moment for keylogger.

            keylogger Examples and Code Snippets

            Start the keylogger .
            pythondot img1Lines of Code : 11dot img1License : Permissive (MIT License)
            copy iconCopy
            def start(self):
                    # record the start datetime
                    self.start_dt = datetime.now()
                    # start the keylogger
                    keyboard.on_release(callback=self.callback)
                    # start reporting the keylogs
                    self.report()
                    # make a  

            Community Discussions

            QUESTION

            Using global hotkeys in Powershell
            Asked 2022-Feb-18 at 14:53

            I'm currently making a very basic script that takes a screenshot of the computer every 10 minutes. However, I've now been asked to also add in the option to click a hotkey to activate it manually.

            I found this, which essentially helps me some of the way:

            ...

            ANSWER

            Answered 2022-Feb-18 at 14:53

            you are going to need the following in the while loop. The counter will break out at 10 min

            Source https://stackoverflow.com/questions/71156430

            QUESTION

            The process cannot access the file because it is being used by another process: 'keylog.txt'
            Asked 2022-Jan-11 at 13:20

            I'm trying to build a Python Tkinter App

            In which i'm using threading

            What i want to achieve - When i'm running the thread for a keylogger code Code Below & the data is being stored in Keyloge.txt & when the user exit the app I'm trying to delete this keylog file. But the issue is that when i'm trying to delete the keylog.txt it can't be deleted because it's being used by the thread in the process

            So is there any way i can delete the keylog.txt file???

            Threading code

            ...

            ANSWER

            Answered 2022-Jan-11 at 13:20

            Try open/close the file for every log line?

            KeyLogger

            Source https://stackoverflow.com/questions/70667177

            QUESTION

            How is this 'for' loop relevant in the keylogger?
            Asked 2022-Jan-06 at 11:23

            I'm reading a book on writing a keylogger for fun; I came across this 'for' loop and I'm confused as to how it is relevant.

            ...

            ANSWER

            Answered 2022-Jan-06 at 11:23

            But it'll continue again anyway because of the parent loop.

            No. The inner loop will not continue on each iteration of the outer loop; rather, it will restart – with the c variable being reset to 8 on each of those restarts.

            Thus, on each of the (potentially infinite) runs of the outer for loop, the inner loop runs through the values of c from 8 to 222 and calls the GetAsyncKeyState() function with each of those values.

            Note: Judging from the use of GetAsyncKeyState, this appears to be code designed to run on Windows. Many (most) Windows-compatible compilers have a signed 8-bit char type, so using values greater than 127 will likely cause problems.

            The MSVC compiler (Visual Studio 2019) gives the following on your inner for loop:

            warning C6295: Ill-defined for-loop: 'char' values are always of range '-128' to '127'. Loop executes infinitely.

            The clang-cl compiler (same IDE) gives a similar message:

            warning : result of comparison of constant 222 with expression of type 'char' is always true [-Wtautological-constant-out-of-range-compare]

            Changing the c variable to an int would fix this – and GetAsyncKeyState takes an int argument, after all.

            Source https://stackoverflow.com/questions/70605685

            QUESTION

            Send data from one python file to another
            Asked 2021-Nov-20 at 14:23

            I have two python files k.py & key.py

            I'm creating a keylogger & the code is in k.py

            k.py code

            ...

            ANSWER

            Answered 2021-Nov-20 at 14:23

            QUESTION

            Express JS : How to manage routing by headers request?
            Asked 2021-Oct-03 at 06:43

            I have Managed an API service base on Express JS. I have 2 or 3 clients that request my API. All the requests from the client are handled by single monolythic Apps. Currently, I handle that request with this code:

            ...

            ANSWER

            Answered 2021-Sep-24 at 14:45

            You can use a default route, then based on request headers, you can redirect to your route.

            Source https://stackoverflow.com/questions/69316303

            QUESTION

            macOS: Override Modifier Key with CGEventTap
            Asked 2021-Sep-17 at 19:07

            So I recently spilled some water on my macbook pro keyboard, and my left command and option keys no longer function. Apple wants me to mail it in for repairs, which I don't have time for right now. So I thought I'd override the right command key to serve as left control seeing as the left command key still works.

            I adapted the following from a keylogger gist I found:

            ...

            ANSWER

            Answered 2021-Sep-17 at 19:07

            @Willeke was correct in their comment. Although I was correctly overriding the event, what I really needed to do was use the keydown/keyup events to keep track of when the right command key is pressed. I could then use that flag to intercept other keypress events, remove the command modifier, and insert the control modifier flag use bitwise operators. However, the simple solution here to this problem comes from the documentation link they provided:

            hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x7000000E7,"HIDKeyboardModifierMappingDst":0x7000000E0}]}'

            Source https://stackoverflow.com/questions/69217301

            QUESTION

            Send Javascript data to SimpleHTTPServer
            Asked 2021-Aug-12 at 01:48

            I'm doing the xss challenge on tryhackme.com (https://tryhackme.com/room/xss). The 7th task asks me to use a simple keylogger

            ...

            ANSWER

            Answered 2021-Aug-12 at 00:43

            As SimpleHTTPServer logs every request it receives, you can use fetch() to make a GET request and pass the data within it.

            Source https://stackoverflow.com/questions/68750228

            QUESTION

            Is there any way to make a keylogger in linux without root?
            Asked 2021-Aug-09 at 07:11
            What I'am trying to do

            I made a keylogger by reading the event file, but it needs root permission to work.I want to make a keylogger that can work without root permission.

            My device
            • ubuntu16.04 using X11
            • ubuntu21.04 using Wayland
            My thoughts

            I understand that it is feasible on windows, and it can also be implemented through Xlib on some linux using X11.

            But my project needs to run on X11 and Wayland, so it's obviously not possible to use Xlib.

            Question

            Is there any other way that I can get key logged without root permission?

            ...

            ANSWER

            Answered 2021-Aug-09 at 07:11

            It may be possible, but any non root solution will depend on the keyboard virtualization tool. Let us look how (modern) OS work:

            • the hardware is under the exclusive control of the kernel and its drivers. It is possible to implement a keylogger at that level that would only be kernel dependent but it requires admin privileges.
            • if you have a multiple windows capable system (X11, XWindow) the OS passes low level events to the window manager which in turn will passes them to the client program. In Windows that part is include in the kernel for historical reasons. Here again it is possible to implement a (still low level) keylogger, but if the window manager has been started as root, interacting with it as a whole still requires admin privileges. At least the X11 server can be started as a non admin user process and in that use case, the keylogger can also run under the same user.
            • at the end, the window manager passes events to the client application. On some (windowing) sytems, it is possible to implement hooks but they will be restricted to the same process or process group or at least the same user. Whether it is possible or not, and the way to implement it if possible will be anyway window manager dependant.

            That means that it may be possible to implement a user level keylogger, but it will depend on the windowing system and not only on the kernel. Said differently, you will have to search for a Wayland specific way and a X11 specific way if you want to support both of them.

            Source https://stackoverflow.com/questions/68706372

            QUESTION

            Display python print() in tkinter textbox
            Asked 2021-Jul-18 at 11:32

            I want to display, in live, the python print() statement of a keylogger to the textbox of tkinter.

            So far, I can either use the window or the keyboard logger that writes to console (spyder) with print() commands, but not both at the same time.

            ...

            ANSWER

            Answered 2021-Jul-18 at 11:32

            The pynput listener runs in another thread, so when you join that thread, the tkinter thread is blocked. Therefore your GUI doesn't show up. This also creates another problem, as tkinter does not work with multiple threads, so there needs to be a way to communicate between the listener thread and the tkinter thread. You also can't use .join() on the thread, as this will block the tkinter one.

            Source https://stackoverflow.com/questions/68427909

            QUESTION

            Duplicates in output with module keyboard
            Asked 2021-Jun-13 at 07:17

            I was working on a keylogger that captures keys with the python module "keyboard". But I have a problem regarding my output. When I type in "Hello World", the output is flase. Like so: "shift-H-shift-e-e-l-l-o-space-W-o-r-l-d-d-enter
            Code:

            ...

            ANSWER

            Answered 2021-Apr-21 at 15:59

            The problem is that the hook fires, gets unbound, gets rebound and immediately fires again as the key is still pressed.

            You can prevent that by using keyboard.on_release(on_key) instead of keyboard.hook(on_key). This causes the hook only fire when the key is released. This way the key is no longer pressed when the hook is rebound.

            Source https://stackoverflow.com/questions/67197568

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install keylogger

            You can download it from GitHub.

            Support

            Feel free to fork the project and submit a pull request with your changes!.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/caseyscarborough/keylogger.git

          • CLI

            gh repo clone caseyscarborough/keylogger

          • sshUrl

            git@github.com:caseyscarborough/keylogger.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular C Libraries

            linux

            by torvalds

            scrcpy

            by Genymobile

            netdata

            by netdata

            redis

            by redis

            git

            by git

            Try Top Libraries by caseyscarborough

            github-activity

            by caseyscarboroughJavaScript

            spring-redis-caching-example

            by caseyscarboroughJava

            qbittorrent-exporter

            by caseyscarboroughJava

            omdbapi

            by caseyscarboroughRuby

            libcrypt

            by caseyscarboroughC