GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: 更新Pro版本4.2.5 新增大量功能 · bugsong/SKRoot-linuxKernelRoot@a78328e

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • Pro(众测开放中)
    • build
      • SKRootPro_4.2.5.apk
    • sources/testModule
      • kernel_module_kit_test
        • kernel_module_kit_test.cpp
        • kernel_module_kit_test.h
        • test_linux_kernel_offset.h
      • kernel_module_kit
        • include
          • ____DO_NOT_EDIT____
            • private_mod_api_runtime_helper.h
          • kernel_module_kit_umbrella.h
          • kernel_offset_file.h
          • kernel_offset_file_operations.h
          • kernel_offset_inode.h
          • kernel_offset_miscdevice.h
          • kernel_offset_proc_ops.h
          • kernel_offset_super_block.h
          • kernel_offset_task_struct.h
          • kernel_offset_vm_area_struct.h
          • module_base_kernel_export_symbol.h
          • module_base_kernel_export_symbol.inl
          • module_base_kernel_mem.h
          • module_descriptor.h
          • module_err_def.h
          • module_web_ui_http_handler.h
          • module_web_ui_http_utils.h
          • skroot_env
            • skroot_test.h
        • lib
          • libkernel_module_kit_static.a
      • module_clear_usb_trace
        • module_clear_usb_trace.cpp
      • module_fake_device
        • y700四代过黑名单设备_(free)
          • android_packages_list_utils.h
          • cJSON.cpp
          • cJSON.h
          • jni
            • Android.mk
            • Application.mk
            • build_macros.mk
          • persist_data_perm_helper.h
          • resetprop
          • system_prop.sh
          • webroot
            • index.html
            • main.js
            • request.js
            • style.css
            • toast.css
            • toast.js
          • y700_fake.cpp
          • y700_fake.h
        • 阿灵的机型模拟_一加15
          • jni
            • Android.mk
            • Application.mk
            • build_macros.mk
          • main.cpp
          • resetprop
          • system_prop.sh
        • 阿灵的机型模拟_一加Ace6
          • jni
            • Android.mk
            • Application.mk
            • build_macros.mk
          • main.cpp
          • resetprop
          • system_prop.sh
        • 阿灵的机型模拟_红魔10sPro
          • jni
            • Android.mk
            • Application.mk
            • build_macros.mk
          • main.cpp
          • resetprop
          • system_prop.sh
      • module_fake_system_file
        • fd_guard.h
        • hosts
        • jni
          • Android.mk
          • Application.mk
          • build_macros.mk
        • kernel_func_executor_helper.h
        • kernel_struct_path_helper.h
        • module_fake_system_file.cpp
      • module_hello_world
        • module_hello_world.cpp
      • module_hide_data_dir
        • module_hide_data_dir.cpp
        • patch_filldir64.cpp
      • module_install_uninstall_cb_demo
        • module_install_uninstall_cb_demo.cpp
      • module_tricky_store
        • module_tricky_store.cpp
      • module_update_demo
        • module_update_demo.cpp
      • module_web_ui_example
        • module_web_ui_example.cpp
      • 模块打包示例
        • module_fake_system_file.zip
        • module_hello_world.zip
        • module_hide_data_dir.zip
        • module_web_ui_example.zip
      • 目录清单.txt

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎Pro(众测开放中)/build/SKRootPro_4.2.5.apk‎

Copy file name to clipboard
6.96 MB
Binary file not shown.
Collapse file

‎Pro(众测开放中)/sources/testModule/kernel_module_kit/include/____DO_NOT_EDIT____/private_mod_api_runtime_helper.h‎

Copy file name to clipboardExpand all lines: Pro(众测开放中)/sources/testModule/kernel_module_kit/include/____DO_NOT_EDIT____/private_mod_api_runtime_helper.h
-5Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@
66

77
#include "../module_err_def.h"
88
namespace kernel_module {
9-
inline KModErr alloc_kernel_mem(const std::vector<uint8_t>& initial_bytes, uint64_t& out_kaddr) {
10-
KModErr alloc_kernel_mem_and_fill(const uint8_t*buf, uint32_t size, uint64_t& out_kaddr);
11-
return alloc_kernel_mem_and_fill(initial_bytes.data(), initial_bytes.size(), out_kaddr);
12-
}
13-
149
inline KModErr execute_kernel_asm_func(const std::vector<uint8_t>& func_bytes, uint64_t& output_result) {
1510
KModErr execute_kernel_asm_func_with_buf(const uint8_t*shellcode, uint32_t size, uint64_t& out_kaddr);
1611
return execute_kernel_asm_func_with_buf(func_bytes.data(), func_bytes.size(), output_result);
Collapse file

‎Pro(众测开放中)/sources/testModule/kernel_module_kit/include/kernel_module_kit_umbrella.h‎

Copy file name to clipboardExpand all lines: Pro(众测开放中)/sources/testModule/kernel_module_kit/include/kernel_module_kit_umbrella.h
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
#include "kernel_offset_file.h"
1515
#include "kernel_offset_inode.h"
1616
#include "kernel_offset_file_struct.h"
17+
#include "kernel_offset_proc_ops.h"
18+
#include "kernel_offset_file_operations.h"
19+
#include "kernel_offset_miscdevice.h"
20+
#include "kernel_offset_super_block.h"
1721
#include "module_base_kernel_mem.h"
1822
#include "module_base_kernel_func_executor.h"
1923
#include "module_base_kernel_func_hook.h"
Collapse file

‎Pro(众测开放中)/sources/testModule/kernel_module_kit/include/kernel_offset_file.h‎

Copy file name to clipboardExpand all lines: Pro(众测开放中)/sources/testModule/kernel_module_kit/include/kernel_offset_file.h
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,11 @@ KModErr get_file_f_path_offset(uint32_t & offset);
2121
* 返回: OK 表示成功;其它值为错误码
2222
***************************************************************************/
2323
KModErr get_file_f_inode_offset(uint32_t & offset);
24+
25+
/***************************************************************************
26+
* 获取 file 结构体中 struct file_operations *f_op; 字段的偏移量
27+
* 参数: offset 输出参数,返回 f_op 字段相对于 file 起始的偏移量(字节)
28+
* 返回: OK 表示成功;其它值为错误码
29+
***************************************************************************/
30+
KModErr get_file_f_op_offset(uint32_t & offset);
2431
}
Collapse file

‎Pro(众测开放中)/sources/testModule/kernel_module_kit/include/kernel_offset_file_operations.h‎

Copy file name to clipboard
+30Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#pragma once
2+
#include <stdio.h>
3+
#include <stdint.h>
4+
#include <stdlib.h>
5+
#include <fcntl.h>
6+
#include <unistd.h>
7+
#include <string.h>
8+
#include <errno.h>
9+
10+
namespace kernel_module {
11+
struct file_operations_offsets {
12+
uint32_t llseek_offset = 0;
13+
uint32_t read_offset = 0;
14+
uint32_t write_offset = 0;
15+
uint32_t read_iter_offset = 0;
16+
uint32_t write_iter_offset = 0;
17+
uint32_t poll_offset = 0;
18+
uint32_t unlocked_ioctl_offset = 0;
19+
uint32_t mmap_offset = 0;
20+
uint32_t open_offset = 0;
21+
uint32_t release_offset = 0;
22+
};
23+
24+
/***************************************************************************
25+
* 获取 file_operations 结构体中的字段偏移量
26+
* 参数: offsets 输出参数,返回 file_operations 结构体中的偏移量(字节)
27+
* 返回: OK 表示成功;其它值为错误码
28+
***************************************************************************/
29+
KModErr get_file_operations_offsets(file_operations_offsets& offsets);
30+
}
Collapse file

‎Pro(众测开放中)/sources/testModule/kernel_module_kit/include/kernel_offset_inode.h‎

Copy file name to clipboardExpand all lines: Pro(众测开放中)/sources/testModule/kernel_module_kit/include/kernel_offset_inode.h
+35Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,20 @@
88
#include <errno.h>
99

1010
namespace kernel_module {
11+
/***************************************************************************
12+
* 获取 inode 结构体中 i_sb 字段的偏移量
13+
* 参数: offset 输出参数,返回 i_sb 字段相对于 inode 起始的偏移量(字节)
14+
* 返回: OK 表示成功;其它值为错误码
15+
***************************************************************************/
16+
KModErr get_inode_i_sb_offset(uint32_t & offset);
17+
18+
/***************************************************************************
19+
* 获取 inode 结构体中 i_mapping 字段的偏移量
20+
* 参数: offset 输出参数,返回 i_mapping 字段相对于 inode 起始的偏移量(字节)
21+
* 返回: OK 表示成功;其它值为错误码
22+
***************************************************************************/
23+
KModErr get_inode_i_mapping_offset(uint32_t & offset);
24+
1125
/***************************************************************************
1226
* 获取 inode 结构体中 i_ino 字段的偏移量
1327
* 参数: offset 输出参数,返回 i_ino 字段相对于 inode 起始的偏移量(字节)
@@ -38,4 +52,25 @@ KModErr get_inode_time_offset(uint32_t & i_atime_sec_offset, uint32_t & i_atime_
3852
***************************************************************************/
3953
KModErr get_inode_time_offset(uint32_t & i_atime_offset, uint32_t & i_mtime_offset, uint32_t & i_ctime_offset);
4054

55+
/***************************************************************************
56+
* 获取 inode 结构体中 i_state 字段的偏移量
57+
* 参数: offset 输出参数,返回 i_state 字段相对于 inode 起始的偏移量(字节)
58+
* 返回: OK 表示成功;其它值为错误码
59+
***************************************************************************/
60+
KModErr get_inode_i_state_offset(uint32_t & offset);
61+
62+
/***************************************************************************
63+
* 获取 inode 结构体中 i_rwsem 字段的偏移量(限 Linux >= 4.7.0)
64+
* 参数: offset 输出参数,返回 i_rwsem 字段相对于 inode 起始的偏移量(字节)
65+
* 返回: OK 表示成功;其它值为错误码
66+
***************************************************************************/
67+
KModErr get_inode_i_rwsem_offset(uint32_t & offset);
68+
69+
/***************************************************************************
70+
* 获取 inode 结构体中 i_mutex 字段的偏移量(限 Linux < 4.7.0)
71+
* 参数: offset 输出参数,返回 i_mutex 字段相对于 inode 起始的偏移量(字节)
72+
* 返回: OK 表示成功;其它值为错误码
73+
***************************************************************************/
74+
KModErr get_inode_i_mutex_offset(uint32_t & offset);
75+
4176
}
Collapse file

‎Pro(众测开放中)/sources/testModule/kernel_module_kit/include/kernel_offset_miscdevice.h‎

Copy file name to clipboard
+25Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#pragma once
2+
#include <stdio.h>
3+
#include <stdint.h>
4+
#include <stdlib.h>
5+
#include <unistd.h>
6+
#include <string.h>
7+
#include <errno.h>
8+
9+
#define MISC_DYNAMIC_MINOR 255
10+
11+
namespace kernel_module {
12+
struct miscdevice_offsets {
13+
uint32_t minor_offset = 0;
14+
uint32_t name_offset = 0;
15+
uint32_t fops_offset = 0;
16+
uint32_t list_offset = 0;
17+
};
18+
19+
/***************************************************************************
20+
* 获取 miscdevice 结构体中的字段偏移量
21+
* 参数: offsets 输出参数,返回 miscdevice 结构体中的偏移量(字节)
22+
* 返回: OK 表示成功;其它值为错误码
23+
***************************************************************************/
24+
KModErr get_miscdevice_offsets(miscdevice_offsets& offsets);
25+
}
Collapse file

‎Pro(众测开放中)/sources/testModule/kernel_module_kit/include/kernel_offset_proc_ops.h‎

Copy file name to clipboard
+27Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#pragma once
2+
#include <stdio.h>
3+
#include <stdint.h>
4+
#include <stdlib.h>
5+
#include <fcntl.h>
6+
#include <unistd.h>
7+
#include <string.h>
8+
#include <errno.h>
9+
10+
namespace kernel_module {
11+
struct proc_ops_offsets {
12+
uint32_t proc_open_offset = 0;
13+
uint32_t proc_read_offset = 0;
14+
uint32_t proc_write_offset = 0;
15+
uint32_t proc_lseek_offset = 0;
16+
uint32_t proc_release_offset = 0;
17+
uint32_t proc_poll_offset = 0;
18+
uint32_t proc_mmap_offset = 0;
19+
};
20+
21+
/***************************************************************************
22+
* 获取 proc_ops 结构体中的字段偏移量 (限 Linux >= 5.6.0)
23+
* 参数: offsets 输出参数,返回 proc_ops 结构体中的偏移量(字节)
24+
* 返回: OK 表示成功;其它值为错误码
25+
***************************************************************************/
26+
KModErr get_proc_ops_offsets(proc_ops_offsets& offsets);
27+
}
Collapse file

‎Pro(众测开放中)/sources/testModule/kernel_module_kit/include/kernel_offset_super_block.h‎

Copy file name to clipboard
+16Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#pragma once
2+
#include <stdio.h>
3+
#include <stdint.h>
4+
#include <stdlib.h>
5+
#include <unistd.h>
6+
#include <string.h>
7+
#include <errno.h>
8+
9+
namespace kernel_module {
10+
/***************************************************************************
11+
* 获取 super_block 结构体中 s_uuid 字段的偏移量
12+
* 参数: offset 输出参数,返回 s_uuid 字段相对于 super_block 起始的偏移量(字节)
13+
* 返回: OK 表示成功;其它值为错误码
14+
***************************************************************************/
15+
KModErr get_super_block_s_uuid_offset(uint32_t & offset);
16+
}
Collapse file

‎Pro(众测开放中)/sources/testModule/kernel_module_kit/include/kernel_offset_task_struct.h‎

Copy file name to clipboardExpand all lines: Pro(众测开放中)/sources/testModule/kernel_module_kit/include/kernel_offset_task_struct.h
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,12 @@ KModErr get_task_struct_real_parent_offset(uint32_t & offset);
3838
KModErr get_task_struct_comm_offset(uint32_t & offset);
3939

4040
/***************************************************************************
41-
* 获取 task_struct 结构体中 real_cred 字段的偏移量
42-
* 参数: offset 输出参数,返回 real_cred 字段相对于 task_struct 起始的偏移量(字节)
41+
* 获取 task_struct 结构体中 real_cred/cred 字段的偏移量
42+
* 参数: offset 输出参数,返回 real_cred/cred 字段相对于 task_struct 起始的偏移量(字节)
4343
* 返回: OK 表示成功;其它值为错误码
4444
***************************************************************************/
4545
KModErr get_task_struct_real_cred_offset(uint32_t & offset);
46+
KModErr get_task_struct_cred_offset(uint32_t & offset);
4647

4748
/***************************************************************************
4849
* 获取 task_struct 结构体中 seccomp 字段的偏移量

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.