A high scalable low to medium interactive SSH/TCP honeypot using Linux Namespaces, capabilities, seccomp, cgroups designed for OpenWrt and IoT devices.
#include<stdio.h>#include<stdlib.h>#include<unistd.h>#include<sys/types.h>#define APP_NAME "init"intmain(void){if(getppid()!=0||getpid()!=1){fprintf(stderr,"%s: must be started as PID 1\n",APP_NAME);return1;}return0;}