Skip to content

Instantly share code, notes, and snippets.

@richardleach
richardleach / rax1.pl
Created December 17, 2019 00:55
Rax wrapper WIP
package Rax::Iterator;
use FFI::Platypus::Record;
record_layout(
int => 'flags',
opaque => 'rt',
'string rw' => 'key',
opaque => 'data',
size_t => 'key_len',
function Export-MFT {
<#
.SYNOPSIS
Extracts master file table from volume.
Version: 0.1
Author : Jesse Davis (@secabstraction)
License: BSD 3-Clause
.DESCRIPTION
#include <stdio.h>
#include <stdlib.h>
#include <dlfcn.h>
#include <stddef.h>
#ifndef MAX_REQ
#define MAX_REQ 4096
#endif
typedef size_t (*msz_fn)(void *);