Coder Social home page Coder Social logo

fabriciorissetto / keystrokeapi Goto Github PK

View Code? Open in Web Editor NEW
105.0 8.0 28.0 605 KB

:lock: A simple Keylogger API written in C# that works for any Windows OS version

License: Do What The F*ck You Want To Public License

C# 98.75% Batchfile 1.25%
keylogger

keystrokeapi's Introduction

KeystrokeAPI

A simple Keystroke API written in C# that works for any version of Windows. It abstracts the access to the win32.dll and the handling of low level hooks (only keyboard for now).

Instalation

Install-Package KeystrokeAPI

How to use

1 - Call the CreateKeyboardHook() method passing your callback like this:

api.CreateKeyboardHook((character) => { Console.Write(character); });

2 - Implement your own "Windows Message Loop" OR call this:

Application.Run();

NOTE: This call starts the windows message loop for you, but you will need to reference the System.Windows.Forms.dll in your project. Click here to know why.

Code Example (using a Console Application)

class Program
{
    static void Main(string[] args)
    {
        using (var api = new KeystrokeAPI())
        {
            api.CreateKeyboardHook((character) => { Console.Write(character); });
            Application.Run();
        }
    }
}

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.