The Witchcraft Compiler Collection
WCC
 All Data Structures Files Functions Variables Typedefs Macros
helper.h
Go to the documentation of this file.
1 int read_maps(int pid);
2 int is_mapped(unsigned long int addr);
3 
4 extern struct section *zfirst;
5 extern int nsections;
6 
7 /*
8 * Data structures
9 */
10 // section
11 struct section {
12  unsigned long long int init; // start address
13  unsigned long long int end; // end address
14  int size; // size
15  int perms; // permissions
16  char name[255]; // name
17  char hperms[10];// permissions in human readable form
18  void *next; // ptr to next section
19 
20  int num; // section number in memory mapping
21  int proba; // aslr stuff (highest probability of a given mapping)
22  int probableval;// aslr stuff (address of most probable mapping)
23 };
24 
int is_mapped(unsigned long int addr)
Definition: helper.c:56
int perms
Definition: helper.h:15
int nsections
Definition: helper.c:47
Definition: helper.h:11
struct section * zfirst
Definition: helper.c:46
int read_maps(int pid)
Definition: helper.c:72
unsigned long long int init
Definition: helper.h:12
int num
Definition: helper.h:20
char name[255]
Definition: helper.h:16
int proba
Definition: helper.h:21
void * next
Definition: helper.h:18
char hperms[10]
Definition: helper.h:17
int size
Definition: helper.h:14
int probableval
Definition: helper.h:22
unsigned long long int end
Definition: helper.h:13