идейка хороша, но
swiftdev@pgdb1:~$ gcc -pthread -lpthread dirtyc0w.c -o dirtyc0w dirtyc0w.c: In function ‘procselfmemThread’: dirtyc0w.c:64:5: warning: implicit declaration of function lseek’ [-Wimplicit-function-declaration] lseek(f,map,SEEK_SET); ^ dirtyc0w.c:65:8: warning: implicit declaration of function write’ [-Wimplicit-function-declaration] c+=write(f,str,strlen(str)); ^ dirtyc0w.c: In function ‘main’: dirtyc0w.c:82:3: warning: implicit declaration of function fstat’ [-Wimplicit-function-declaration] fstat(f,&st); ^ dirtyc0w.c:96:10: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘void *’ [-Wformat=] printf("mmap %x\n\n",map); ^
|