去掉r0的hook,增加IP屏蔽记录
This commit is contained in:
@@ -110,20 +110,23 @@ int cleanup(void) {
|
||||
}
|
||||
destory_dev();
|
||||
cleanup_msg();
|
||||
uninstall_hooks();
|
||||
// uninstall_hooks();
|
||||
return -1;
|
||||
}
|
||||
|
||||
static int __init driver_entry(void) {
|
||||
printk(KERN_WARNING "[DebugMessage] safe duck init\n");
|
||||
if (init_kallsyms_lookup_name() == false) {
|
||||
printk(KERN_ERR "Failed to init kallsyms_lookup_name\n");
|
||||
return -1;
|
||||
}
|
||||
if (init_hooks() == false) {
|
||||
printk(KERN_ERR "Failed to init kallsyms_lookup_name\n");
|
||||
return -1;
|
||||
}
|
||||
/*
|
||||
if (init_kallsyms_lookup_name() == false) {
|
||||
printk(KERN_ERR "Failed to init kallsyms_lookup_name\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (init_hooks() == false) {
|
||||
printk(KERN_ERR "Failed to init kallsyms_lookup_name\n");
|
||||
return -1;
|
||||
}
|
||||
*/
|
||||
// Initialize list of addresses
|
||||
if (build_dev() == false) {
|
||||
printk(KERN_ERR "Failed to build device\n");
|
||||
|
||||
Reference in New Issue
Block a user