I hereby claim:
- I am arunk-s on github.
- I am arunks (https://keybase.io/arunks) on keybase.
- I have a public key ASAKI2NEXOIHew05064rAWsjoUnuNLe1K4es7FR9UEfD7wo
To claim this, I am signing this object:
1. Execute make first. This will result in a netlinkKernel.ko output among many others. | |
2. Execute $ gcc netlinkUser.c -o netlinkUser | |
3. Insert kernel module by :$ sudo insmod netlinkKernel.ko | |
4. Run ./netlinkUser to see message and run dmesg to see debug messages | |
5. Remove module by : $ sudo rmmod netlinkKernel | |
6. Finally make clean to remove output files. |
# backup.sh | |
# The contents of this file are released under the GNU General Public License. Feel free to reuse the contents of this work, as long as the resultant works give proper attribution and are made publicly available under the GNU General Public License. | |
# By Arun Sori <arunsori94@gmail.com> | |
#For taking backup of the desired directory and store it at a remote place | |
#timestamp | |
time_stamp=`date` | |
#backup file name |
I hereby claim:
To claim this, I am signing this object:
START = ".global _start" "\n" "_start:" "\n" +(line "\n") | |
/*register_zero = "x0"*/ | |
register_name = "x"[0-31] | |
instruction_r_type = inst_r " " register_name "," register_name "," register_name | |
instruction_i_type = (inst_i | inst_l | inst_s) " " register_name "," register_name "," +([\d]) //12 bit immediate |
START = line | | |
register_name = "eax" | "ebx" | "ecx" | "edx" | |
label = +([\w]) ":" | |
inst_mov = "mov " register_name "," register_name, | |
| "mov " register_name "," +([\d]) | |
inst_add = "add " register_name "," register_name, | |
| "add " register_name "," +([\d]) | |
inst_jmp = "jmp " +([\w]) |
package netlinkAudit | |
import ( | |
"bytes" | |
"encoding/binary" | |
"encoding/json" | |
"errors" | |
"fmt" | |
"io/ioutil" | |
"log" |
package main | |
import ( | |
"./netlinkAudit" | |
"log" | |
"os" | |
"syscall" | |
"time" | |
) |
package main | |
/* | |
#cgo CFLAGS: -Wall | |
#cgo LDFLAGS: -L . -laudit | |
#include <libaudit.h> | |
*/ | |
import "C" |
package main | |
import ( | |
// "encoding/binary" | |
"fmt" | |
"syscall" | |
"unsafe" | |
) | |
const ( |
execve("/usr/bin/go", ["go", "run", "netlink.go"], [/* 39 vars */]) = 0 | |
brk(0) = 0x227c000 | |
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) | |
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7feea8392000 | |
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) | |
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 | |
fstat(3, {st_mode=S_IFREG|0644, st_size=124620, ...}) = 0 | |
mmap(NULL, 124620, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7feea8373000 | |
close(3) = 0 | |
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) |