Skip to content

Instantly share code, notes, and snippets.

ceyes

Block or report user

Report or block ceyes

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View .gitconfig
[color]
branch = auto
diff = auto
grep = auto
interactive = auto
status = auto
[alias]
br = branch
ca = commit -a
cm = commit -m
View kprobe-Makefile
obj-m := kprobe.o
all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
View kprobe-ip_rcv.c
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/kprobes.h>
#include <linux/kallsyms.h>
struct kprobe kp;
static int hander_pre(struct kprobe *p, struct pt_regs *regs)
{
printk("Hit it\n");
View firewall.sh
#!/bin/bash
# clear rule
iptables -F
iptables -X
iptables -Z
# default policy
iptables -P INPUT DROP
iptables -P OUTPUT ACCEPT
You can’t perform that action at this time.