Skip to content

Instantly share code, notes, and snippets.

@tommy-dong
tommy-dong / cve_2016_0728.c
Created January 20, 2016 17:18 — forked from jpouellet/cve_2016_0728.c
cve_2016_0728 exploit
/* $ gcc cve_2016_0728.c -o cve_2016_0728 -lkeyutils -Wall */
/* $ ./cve_2016_072 PP_KEY */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <keyutils.h>
#include <unistd.h>
#include <time.h>
@tommy-dong
tommy-dong / bluetooth-connection.m
Created March 26, 2024 02:54 — forked from dnicolson/bluetooth-connection.m
IOBluetooth code to log when devices are connected and disconnected
// clang -o bluetooth-connection bluetooth-connection.m -framework Foundation -framework IOBluetooth
#import <Foundation/Foundation.h>
#import <IOBluetooth/IOBluetooth.h>
@interface BluetoothConnection : NSObject {
}
@end
@implementation BluetoothConnection