Coder Social home page Coder Social logo

fabriciorissetto / keystrokeapi Goto Github PK

View Code? Open in Web Editor NEW
105.0 105.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 People

Contributors

fabriciorissetto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

keystrokeapi's Issues

CallbackOnCollectedDelegate

Error: "Additional information: A callback was made on a garbage collected delegate of type 'KeystrokeAPI!Keystroke.API.User32+LowLevelHook::Invoke'. This may cause application crashes, corruption and data loss. When passing delegates to unmanaged code, they must be kept alive by the managed application until it is guaranteed that they will never be called."

This error occurs to me if the program performs multiple operations

Wrong condition in KeystrokeAPI.Dispose = wrong unhook

As title says, you have wrong condition in the Dispose method of the KeystrokeAPI class.

It is supposed to be

if (globalKeyboardHookId != IntPtr.Zero)
    User32.UnhookWindowsHookEx(globalKeyboardHookId);

instead of

if (globalKeyboardHookId == IntPtr.Zero)
    User32.UnhookWindowsHookEx(globalKeyboardHookId);

Also the overall design of the class is quite easy to create handle leaks - e.g. call twice CreateKeyboardHook and you are no longer able to unhook the hook.

Not able to record keystrokes in Modal

There is a issue in this library in capturing keystrokes like entering the username and password in a Windows Modal/Popup Box of User Account Control.

Any workarounds for that ?

System.AccessViolationException when "growing" in RAM by about 3MB

When running a program that uses your KeystrokeAPI but also when using the test app, at some point, mostly when the RAM consumption grew by approx. 3MB, the app throws a System.AccessViolationException. I can reproduce this Exception pretty easily by holding down backspace key on either machine i tried. Unfortunately there's no stack trace showing up. So can you figure out what might cause that Exception? Thanks!

Edit: To be more precise: It always happens after 720 pressed keys regardless of the exact key.

Random failure

I geting random error

Managed Debugging Assistant 'CallbackOnCollectedDelegate' has detected a problem in 'D:\Programming\KeyLogger\KL\KL\bin\Debug\KL.vshost.exe'.

Additional information: A callback was made on a garbage collected delegate of type 'KeystrokeAPI!Keystroke.API.User32+LowLevelHook::Invoke'. This may cause application crashes, corruption and data loss. When passing delegates to unmanaged code, they must be kept alive by the managed application until it is guaranteed that they will never be called.

To reproduce need to open any Windows Explorer window and try to press any keys few times.

No way to Unhook

this API is great and worked like a charm but I am facing one issue once createkeyboardhook is called this hook is then permanent cannot cancel that hook by calling dispose function or by nulling the api object . . it is requested to provide a built in unhook method

error "call back on collected delegate was detected"

Greetings!

thanks to develop this api but i have an issue on using it. when i run using win form application it gives call back error and my application stops running. Details as follows..

A call back was made on garbage collected delegate of type "keystroke-api"..

plz resolve this issue

thanks

code attached
Code4github.txt

License

Hello, what is the license for the lib? I would be interested in using it in a project, which will be sold.

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.