Skip to content

Instantly share code, notes, and snippets.

@theKidOfArcrania theKidOfArcrania/hypervisor.c Secret
Created May 13, 2019

What would you like to do?
#include <sys/mman.h>
#include <fcntl.h>
#include <unistd.h>
int main() {
int fd = open("crux.patched", 0);
off_t size = lseek(fd, 0, SEEK_END);
lseek(fd, 0, SEEK_SET);
void (*ret)() = mmap(0, 0x6000, 7, MAP_ANONYMOUS | MAP_PRIVATE | MAP_FIXED, -1, 0);
read(fd, (void*)ret, size);
// asm volatile ("int3");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.