Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

20
LINES

< > BotCompany Repo | #1018559 // Key Logger [Dyn Module]

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 1319K of libraries. Click here for Pure Java version (1968L/11K).

!7

cmodule KeyLogger > DynPrintLog {
  switchable bool verbose;

  start {
    ownResource(onGlobalKeyPress(voidfunc(NativeKeyEvent e) enter {
      if (verbose)
        print("Key down: " + e.getKeyCode() + ", mod=" + e.getModifiers()
          + ", raw=" + e.getRawCode() + ", char=" + e.getKeyChar()
          + ", loc=" + e.getKeyLocation());
      vmBus_send('keyDown, e.getKeyCode(), e.getModifiers());
      vmBus_send('keyDown_raw, e.getRawCode(), e.getModifiers());
    }));
    ownResource(onGlobalKeyRelease(voidfunc(NativeKeyEvent e) enter {
      vmBus_send('keyUp, e.getKeyCode(), e.getModifiers());
      vmBus_send('keyUp_raw, e.getRawCode(), e.getModifiers());
    }));
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1018559
Snippet name: Key Logger [Dyn Module]
Eternal ID of this version: #1018559/12
Text MD5: f2fc85fe9c1824cd948ff3fab8c4bbba
Transpilation MD5: adf8eb3bab39f4df501c745e98327443
Author: stefan
Category: javax / stefan's os
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-09-03 17:39:25
Source code size: 712 bytes / 20 lines
Pitched / IR pitched: No / No
Views / Downloads: 400 / 129534
Version history: 11 change(s)
Referenced in: #1019004 - dm_startKeyLogger (non-saving keylogger that just propagates key presses in the VM)
#1019631 - Mouse Logger [Dyn Module]
#1020785 - Java-Only Key Logger [OK]