Comments (9)
It works for me. Please show your
dmesg
output after runninginsmod
Oh I forget to rename the PROCNAME. After doing that it works fine. Thanks!
from kovid.
After checking out a6f38f9b4a92dd43d78415796c034b54237049a1
, it works.
But after 29a32a7d9a00b06e7141fe0311926b651ff92b1b
, the issue start appearing
from kovid.
It works for me. Please show your dmesg
output after running insmod
from kovid.
same problem...
from kovid.
same problem...
rename your Makefile PROCNAME
from kovid.
same problem...
rename your Makefile
PROCNAME
'''
COMPILER_OPTIONS := -Wall -DPROCNAME='"4396"'
'''
I have already loaded another lkm, is it possible that this is the reason?
from kovid.
Please, use ascii a-z for the name, not numbers then try again
from kovid.
Please, use ascii a-z for the name, not numbers then try again
COMPILER_OPTIONS := -Wall -DPROCNAME='"idle"'
still not work
make
/usr/bin/as --64 src/persist.S -statistics -fatal-warnings
-size-check=error -o src/persist.o
/usr/bin/as: total time in assembly: 0.007993
frag chains:
0x561245935e50 .text 5 frags
0x561245935ee8 .data 2 frags
0x561245935f80 .bss 2 frags
fixups: 5
1 mini local symbols created, 0 converted
/usr/bin/ld -Ttext 200000 --oformat binary -o src/persist src/persist.o
make -C /lib/modules/5.4.0-152-generic/build M=/home/xx/.rm/KoviD-master modules
make[1]: Entering directory '/usr/src/linux-headers-5.4.0-152-generic'
CC [M] /home/xx/.rm/KoviD-master/src/kovid.o
In file included from /home/xx/.rm/KoviD-master/src/kovid.c:26:0:
/home/xx/.rm/KoviD-master/src/lkm.h:12:9: note: #pragma message: !!! Be careful: Build kovid in DEBUG mode !!!
#pragma message "!!! Be careful: Build kovid in DEBUG mode !!!"
^~~~~~~
CC [M] /home/xx/.rm/KoviD-master/src/pid.o
In file included from /home/xx/.rm/KoviD-master/src/pid.c:17:0:
/home/xx/.rm/KoviD-master/src/lkm.h:12:9: note: #pragma message: !!! Be careful: Build kovid in DEBUG mode !!!
#pragma message "!!! Be careful: Build kovid in DEBUG mode !!!"
^~~~~~~
/home/xx/.rm/KoviD-master/src/lkm.h:175:20: warning: ‘kv_hide_str_on_load’ defined but not used [-Wunused-variable]
static const char *kv_hide_str_on_load[] = {
^~~~~~~~~~~~~~~~~~~
CC [M] /home/xx/.rm/KoviD-master/src/fs.o
In file included from /home/xx/.rm/KoviD-master/src/fs.c:18:0:
/home/xx/.rm/KoviD-master/src/lkm.h:12:9: note: #pragma message: !!! Be careful: Build kovid in DEBUG mode !!!
#pragma message "!!! Be careful: Build kovid in DEBUG mode !!!"
^~~~~~~
/home/xx/.rm/KoviD-master/src/lkm.h:175:20: warning: ‘kv_hide_str_on_load’ defined but not used [-Wunused-variable]
static const char *kv_hide_str_on_load[] = {
^~~~~~~~~~~~~~~~~~~
/home/xx/.rm/KoviD-master/src/lkm.h:167:20: warning: ‘kv_hide_ps_on_load’ defined but not used [-Wunused-variable]
static const char *kv_hide_ps_on_load[] = {
^~~~~~~~~~~~~~~~~~
CC [M] /home/xx/.rm/KoviD-master/src/sys.o
In file included from /home/xx/.rm/KoviD-master/src/sys.c:19:0:
/home/xx/.rm/KoviD-master/src/lkm.h:12:9: note: #pragma message: !!! Be careful: Build kovid in DEBUG mode !!!
#pragma message "!!! Be careful: Build kovid in DEBUG mode !!!"
^~~~~~~
/home/xx/.rm/KoviD-master/src/sys.c: In function ‘m_bpf’:
/home/xx/.rm/KoviD-master/src/sys.c:242:2: warning: #warning "Using old __bpf_map_get" [-Wcpp]
#warning "Using old __bpf_map_get"
^~~~~~~
/home/xx/.rm/KoviD-master/src/sys.c: In function ‘m_execve’:
/home/xx/.rm/KoviD-master/src/sys.c:34:26: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
#define PT_REGS_PARM2(x) ((x)->si)
^
/home/xx/.rm/KoviD-master/src/sys.c:362:49: note: in expansion of macro ‘PT_REGS_PARM2’
struct user_arg_ptr argvx = { .ptr.native = PT_REGS_PARM2(regs) };
^~~~~~~~~~~~~
/home/xx/.rm/KoviD-master/src/sys.c:34:26: note: (near initialization for ‘argvx.ptr.native’)
#define PT_REGS_PARM2(x) ((x)->si)
^
/home/xx/.rm/KoviD-master/src/sys.c:362:49: note: in expansion of macro ‘PT_REGS_PARM2’
struct user_arg_ptr argvx = { .ptr.native = PT_REGS_PARM2(regs) };
^~~~~~~~~~~~~
/home/xx/.rm/KoviD-master/src/sys.c: At top level:
/home/xx/.rm/KoviD-master/src/sys.c:454:9: note: #pragma message: tcp6_seq_show untested
#pragma message "tcp6_seq_show untested"
^~~~~~~
/home/xx/.rm/KoviD-master/src/sys.c:469:9: note: #pragma message: udp6_seq_show untested
#pragma message "udp6_seq_show untested"
^~~~~~~
/home/xx/.rm/KoviD-master/src/sys.c: In function ‘_tty_write_log’:
/home/xx/.rm/KoviD-master/src/sys.c:621:5: warning: ISO C90 forbids variable length array ‘ttybuf’ [-Wvla]
char ttybuf[len+16];
^~~~
In file included from /home/xx/.rm/KoviD-master/src/sys.c:19:0:
At top level:
/home/xx/.rm/KoviD-master/src/lkm.h:175:20: warning: ‘kv_hide_str_on_load’ defined but not used [-Wunused-variable]
static const char *kv_hide_str_on_load[] = {
^~~~~~~~~~~~~~~~~~~
/home/xx/.rm/KoviD-master/src/lkm.h:167:20: warning: ‘kv_hide_ps_on_load’ defined but not used [-Wunused-variable]
static const char *kv_hide_ps_on_load[] = {
^~~~~~~~~~~~~~~~~~
CC [M] /home/xx/.rm/KoviD-master/src/sock.o
In file included from /home/xx/.rm/KoviD-master/src/sock.c:21:0:
/home/xx/.rm/KoviD-master/src/lkm.h:12:9: note: #pragma message: !!! Be careful: Build kovid in DEBUG mode !!!
#pragma message "!!! Be careful: Build kovid in DEBUG mode !!!"
^~~~~~~
/home/xx/.rm/KoviD-master/src/lkm.h:175:20: warning: ‘kv_hide_str_on_load’ defined but not used [-Wunused-variable]
static const char *kv_hide_str_on_load[] = {
^~~~~~~~~~~~~~~~~~~
/home/xx/.rm/KoviD-master/src/lkm.h:167:20: warning: ‘kv_hide_ps_on_load’ defined but not used [-Wunused-variable]
static const char *kv_hide_ps_on_load[] = {
^~~~~~~~~~~~~~~~~~
CC [M] /home/xx/.rm/KoviD-master/src/util.o
In file included from /home/xx/.rm/KoviD-master/src/util.c:16:0:
/home/xx/.rm/KoviD-master/src/lkm.h:12:9: note: #pragma message: !!! Be careful: Build kovid in DEBUG mode !!!
#pragma message "!!! Be careful: Build kovid in DEBUG mode !!!"
^~~~~~~
/home/xx/.rm/KoviD-master/src/lkm.h:175:20: warning: ‘kv_hide_str_on_load’ defined but not used [-Wunused-variable]
static const char *kv_hide_str_on_load[] = {
^~~~~~~~~~~~~~~~~~~
/home/xx/.rm/KoviD-master/src/lkm.h:167:20: warning: ‘kv_hide_ps_on_load’ defined but not used [-Wunused-variable]
static const char *kv_hide_ps_on_load[] = {
^~~~~~~~~~~~~~~~~~
CC [M] /home/xx/.rm/KoviD-master/src/vm.o
In file included from /home/xx/.rm/KoviD-master/src/vm.c:4:0:
/home/xx/.rm/KoviD-master/src/lkm.h:12:9: note: #pragma message: !!! Be careful: Build kovid in DEBUG mode !!!
#pragma message "!!! Be careful: Build kovid in DEBUG mode !!!"
^~~~~~~
/home/xx/.rm/KoviD-master/src/lkm.h:175:20: warning: ‘kv_hide_str_on_load’ defined but not used [-Wunused-variable]
static const char *kv_hide_str_on_load[] = {
^~~~~~~~~~~~~~~~~~~
/home/xx/.rm/KoviD-master/src/lkm.h:167:20: warning: ‘kv_hide_ps_on_load’ defined but not used [-Wunused-variable]
static const char *kv_hide_ps_on_load[] = {
^~~~~~~~~~~~~~~~~~
LD [M] /home/xx/.rm/KoviD-master/kovid.o
Building modules, stage 2.
MODPOST 1 modules
CC [M] /home/xx/.rm/KoviD-master/kovid.mod.o
LD [M] /home/xx/.rm/KoviD-master/kovid.ko
make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-152-generic'
from kovid.
no issues from the building I see, show your dmesg
when loading the module.
remember you need to kill
to activate the proc entry, after loading the module.
from kovid.
Related Issues (17)
- tty sniffer issue on kernels > 5.10
- openssl backdoor issue HOT 1
- Can´t get the rootkit to work! HOT 5
- Does it supports tcp/udp connection? HOT 2
- ERROR: modpost: "do_exit" [/home/aaa/KoviD/kovid.ko] undefined! HOT 3
- Loop loading kernel module is too obvious HOT 9
- [regression] hide/unhide module conflicts sysfs parameters HOT 2
- Write test suite
- fedora 6.0.7 issue with kv_sock_start_fw_bypass HOT 1
- Crash with ubuntu20.04 on active task HOT 16
- Port kv to Ubuntu 20.04.6 LTS, kernel 5.4.0-164-generic #181-Ubuntu SM HOT 19
- Process unhide issue
- Linux 6.1.x kernel mm_struct changes, no struct vm_area_struct *mmap causes compilation failure HOT 2
- Help with startup. HOT 38
- Can't find /proc/mytest: No such file or directory HOT 10
- No password required for association, lack of security HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kovid.