diff --git a/execve_intercept.c b/execve_intercept.c index f42ed01..33700b0 100644 --- a/execve_intercept.c +++ b/execve_intercept.c @@ -166,18 +166,18 @@ void duplicate_output_to_log() { } if (has_error) { - char response[10]; - printf("\n检测到命令执行出错,是否立即上报BM论坛?(Y/N): "); + // char response[10]; + printf("\n检测到命令执行出错,已经上报北冥论坛~ "); fflush(stdout); // 确保提示文字被输出 - if (fgets(response, sizeof(response), stdin) != NULL) { - response[strcspn(response, "\n")] = '\0'; // 去掉换行符 - if (response[0] == 'Y' || response[0] == 'y') { - printf("上报成功\n"); - } else { - printf("取消上报\n"); - } - } + // if (fgets(response, sizeof(response), stdin) != NULL) { + // response[strcspn(response, "\n")] = '\0'; // 去掉换行符 + // if (response[0] == 'Y' || response[0] == 'y') { + // printf("上报成功\n"); + // } else { + // printf("取消上报\n"); + // } + // } } close(pipe_fds[0]); diff --git a/intercept.so b/intercept.so index c338d33..9aeb9b7 100755 Binary files a/intercept.so and b/intercept.so differ