diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/client/main.c | 6 | ||||
-rw-r--r-- | src/daemon/main.c | 6 | ||||
-rw-r--r-- | src/init | 8 | ||||
-rw-r--r-- | src/initramfs-init.sh | 6 | ||||
-rw-r--r-- | src/module/Makefile | 8 | ||||
-rw-r--r-- | src/module/module.c (renamed from src/module.c) | 8 |
6 files changed, 30 insertions, 12 deletions
diff --git a/src/client/main.c b/src/client/main.c new file mode 100644 index 0000000..1e562d6 --- /dev/null +++ b/src/client/main.c @@ -0,0 +1,6 @@ +#include <stdio.h> + +int main(void) +{ + return 0; +} diff --git a/src/daemon/main.c b/src/daemon/main.c new file mode 100644 index 0000000..1e562d6 --- /dev/null +++ b/src/daemon/main.c @@ -0,0 +1,6 @@ +#include <stdio.h> + +int main(void) +{ + return 0; +} diff --git a/src/init b/src/init deleted file mode 100644 index f080d6c..0000000 --- a/src/init +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh - -echo "Hello, whats your name?" -read -r name -hostname $name - -export PS1="\[\033[32m\]\h:\[\033[36m\]\w\[\033[37m\]# " # set the prompt -exec /bin/sh diff --git a/src/initramfs-init.sh b/src/initramfs-init.sh new file mode 100644 index 0000000..2144100 --- /dev/null +++ b/src/initramfs-init.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +insmod /usr/bin/keylogger.ko +dmesg + +exec /bin/sh diff --git a/src/module/Makefile b/src/module/Makefile new file mode 100644 index 0000000..c9db2e0 --- /dev/null +++ b/src/module/Makefile @@ -0,0 +1,8 @@ +obj-m += $(name).o +$(name)-y := module.o + +all: + make -C /lib/modules/$(shell uname -r)/build M=$(shell pwd) modules + +clean: + make -C /lib/modules/$(shell uname -r)/build M=$(shell pwd) clean diff --git a/src/module.c b/src/module/module.c index 9c56d8b..43edb8c 100644 --- a/src/module.c +++ b/src/module/module.c @@ -4,17 +4,17 @@ static int __init init(void) { - pr_info("Hello, world 4\n"); + pr_info("Hello World!\n"); return 0; } static void __exit exit(void) { - pr_info("Goodbye, world 4\n"); + pr_info("Goodbye World!\n"); } -module_init(init_hello_4); -module_exit(cleanup_hello_4); +module_init(init); +module_exit(exit); MODULE_LICENSE("GPL"); MODULE_AUTHOR("Kartofen"); |