Move command registry from components/command/ into components/core/. New modules: mod_canbus, mod_honeypot, mod_fallback, mod_redteam, mod_ota. Replace mod_proxy with tun_core (multiplexed SOCKS5 tunnel). Kconfig extended with per-module settings and async worker config.
31 lines
749 B
C
31 lines
749 B
C
/*
|
|
* hp_tcp_services.h
|
|
* Lightweight TCP honeypot listeners (SSH, Telnet, HTTP, FTP).
|
|
* Each service runs as an independent FreeRTOS task.
|
|
*/
|
|
#pragma once
|
|
|
|
#include <stdbool.h>
|
|
|
|
typedef enum {
|
|
HP_SVC_SSH = 0,
|
|
HP_SVC_TELNET = 1,
|
|
HP_SVC_HTTP = 2,
|
|
HP_SVC_FTP = 3,
|
|
HP_SVC_COUNT
|
|
} hp_svc_id_t;
|
|
|
|
/* Start / stop a single service */
|
|
void hp_svc_start(hp_svc_id_t svc);
|
|
void hp_svc_stop(hp_svc_id_t svc);
|
|
bool hp_svc_running(hp_svc_id_t svc);
|
|
|
|
/* Get service status line (key=value format) */
|
|
int hp_svc_status(hp_svc_id_t svc, char *buf, size_t len);
|
|
|
|
/* Map service name string to id, returns -1 on unknown */
|
|
int hp_svc_name_to_id(const char *name);
|
|
|
|
/* Map id to name */
|
|
const char *hp_svc_id_to_name(hp_svc_id_t svc);
|