Skip to content

Commit df3dcc9

Browse files
committed
Revert some changes made to m0hamed_rootkit test
1 parent 293f985 commit df3dcc9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_elf_ko.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
sys.path.append("..")
1111
from qiling import Qiling
1212
from qiling.const import QL_INTERCEPT, QL_VERBOSE
13+
from qiling.os.const import STRING
14+
from qiling.os.linux.fncc import linux_kernel_api
1315

1416
IS_FAST_TEST = 'QL_FAST_TEST' in os.environ
1517

@@ -21,6 +23,9 @@ def test_demigod_m0hamed_x86(self):
2123

2224
checklist = {}
2325

26+
@linux_kernel_api(params={
27+
"format": STRING
28+
})
2429
def my_printk(ql: Qiling, address: int, params):
2530
ql.log.info(f'oncall printk: params = {params}')
2631

0 commit comments

Comments
 (0)