denyhosts/warning.h
2024-05-27 16:05:31 +08:00

33 lines
940 B
C

#ifndef WARNING_H
#define WARNING_H
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <fcntl.h>
#include <string.h>
#include <time.h>
#include <signal.h>
#include <sys/wait.h>
#include <curl/curl.h>
#include <sys/types.h>
#include <arpa/inet.h>
#include <assert.h>
#include <limits.h>
#include <stdarg.h>
#include "common.h"
#include "conf.h"
#define BUFFER 1024
#define QQMAIL "gomail -r %s -s \"System ban IP\" -t \"%s\""
#define QQMAIL_Virus "gomail -r %s -s \"System Virus Infected\" -t \"%s\""
#define QQMAIL_DISK_USE "gomail -r %s -s \"System Disk Use\" -t \"%s\""
extern int dingding_warning(char *illegal_ip, char *public_ip, char *ip, conf *conf);
extern int mail_warning(char *illegal_ip, char *public_ip, char *ip, conf *conf);
extern int QQ_mail_warning(char *illegal_ip, char *public_ip, char *ip, conf *conf);
extern int QQ_mail_warning_Virus_files(char *local_ip, int Virus_number, conf *conf);
#endif