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

Function print_hex

CVE-2021-4154/exploit/exploit-ROP.c:35–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33#include <linux/capability.h>
34
35void print_hex( char *buf,int size){
36 int i;
37 puts("======================================");
38 printf("data :\n");
39 for (i=0 ; i<(size/8);i++){
40 if (i%2 == 0){
41 printf("%d",i/2);
42 }
43 printf(" %16llx",*(size_t * )(buf + i*8));
44 if (i%2 == 1){
45 printf("\n");
46 }
47 }
48 puts("======================================");
49}
50
51void pin_on_cpu(int cpu) {
52 cpu_set_t cpu_set;

Callers 1

exploitFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected