Skip to content

Commit

Permalink
test: Use dmesg as sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
djolertrk committed Nov 22, 2024
1 parent 3ac3920 commit 8edafff
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/native/nc-backdoor-echo-s.test
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ sudo insmod ../../../build/kovid.ko
sudo timeout 10 ../../../scripts/bdclient.sh nc localhost 9999
echo -s > /proc/myprocname
sudo rmmod kovid
dmesg
sudo dmesg

# CHECK: kv: using kprobe for kallsyms_lookup_name
# CHECK: Waiting for event
Expand Down
2 changes: 1 addition & 1 deletion test/native/nc-backdoor.test
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ sleep 10
sudo insmod ../../../build/kovid.ko
sudo timeout 10 ../../../scripts/bdclient.sh nc localhost 9999
sudo rmmod kovid
dmesg
sudo dmesg

# CHECK: kv: using kprobe for kallsyms_lookup_name
# CHECK: Waiting for event
Expand Down
2 changes: 1 addition & 1 deletion test/native/simple-insmod-lkm.test
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ sudo dmesg -c
sleep 10
sudo insmod ../../../build/kovid.ko
sudo rmmod kovid
dmesg
sudo dmesg

# CHECK: kv: using kprobe for kallsyms_lookup_name
# CHECK: Waiting for event
Expand Down
2 changes: 1 addition & 1 deletion test/native/tty-backdoor.test
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sleep 20
sudo insmod ../../../build/kovid.ko
sudo timeout 10 ../../../scripts/bdclient.sh tty localhost 9999
sudo rmmod kovid
dmesg
sudo dmesg

# CHECK: Got event
# CHECK: hide {{.*}} tail : {{.*}}
Expand Down

0 comments on commit 8edafff

Please sign in to comment.