This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdint.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#define MAX_PAGES_PER_PROC 8 | |
#define MAX_PROCS 2 | |
#define PHYSICAL_ADDRESS_MASK 0xFFFFFF | |
#define LOGICAL_ADDRESS_MASK 0x00007fff | |
#define VALID_BIT_MASK 0x80000000 /* bit 32 */ | |
#define OFFSET_MASK 0x0FFF |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
@snowcra5h | |
This is a template for a remote exploit. | |
It is a skeleton that you can use to build your own exploit. | |
+------------------+ <- Higher Memory Addresses | |
| ... | | |
+------------------+ | |
| Return Address | <- Overwritten with "\x04\x03\x02\x01" |
NewerOlder