-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathhoneypot.h
More file actions
26 lines (19 loc) · 791 Bytes
/
Copy pathhoneypot.h
File metadata and controls
26 lines (19 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef HONEYPOT_H
#define HONEYPOT_H
#include "config.h"
/* Initialize honeypot module (allocates bitmap) */
int honeypot_init(void);
void honeypot_free(void);
/* Mark / test an IP (host byte order) */
void honeypot_mark(uint32_t ip);
int honeypot_check(uint32_t ip); /* 1 = is honeypot */
/* Static CIDR check (built-in list) */
int honeypot_cidr_check(uint32_t ip_hbo);
/* HTTP-response heuristic — returns 1 if looks like honeypot */
int honeypot_http_heuristic(const char *server_header,
const char *body,
int body_len,
int status_code);
/* Telnet: if ANY cred was accepted (honeypot trap) */
int honeypot_telnet_any_cred(int accepts_any);
#endif /* HONEYPOT_H */