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 — fix: format error · gydihl/SKRoot-linuxKernelRoot@9fee453

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • patch_kernel_root
    • patch_kernel_root.cpp
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎patch_kernel_root/patch_kernel_root.cpp‎

Copy file name to clipboardExpand all lines: patch_kernel_root/patch_kernel_root.cpp
+8-8Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -243,38 +243,38 @@ int main(int argc, char* argv[]) {
243243
//hook_func_start_addr = get_input_hex_number();
244244

245245
size_t do_execve_entry_addr = -1;
246-
while (do_execve_entry_addr <= 0 || do_execve_entry_addr % 8) {
246+
while (do_execve_entry_addr <= 0 || do_execve_entry_addr % 4) {
247247
cout << "请输入do_execve函数的入口位置:" << endl;
248248
do_execve_entry_addr = get_input_hex_number();
249-
if (do_execve_entry_addr<=0 || do_execve_entry_addr % 8) {
249+
if (do_execve_entry_addr<=0 || do_execve_entry_addr % 4) {
250250
cout << "输入的信息有错误" << endl;
251251
}
252252
}
253253

254254
size_t avc_denied_entry_addr = -1;
255-
while (avc_denied_entry_addr <= 0 || avc_denied_entry_addr % 8) {
255+
while (avc_denied_entry_addr <= 0 || avc_denied_entry_addr % 4) {
256256
cout << "请输入avc_denied函数的入口位置:" << endl;
257257
avc_denied_entry_addr = get_input_hex_number();
258-
if (avc_denied_entry_addr <= 0 || avc_denied_entry_addr % 8) {
258+
if (avc_denied_entry_addr <= 0 || avc_denied_entry_addr % 4) {
259259
cout << "输入的信息有错误" << endl;
260260
}
261261

262262
}
263263

264264
size_t task_struct_offset_cred = -1;
265-
while (task_struct_offset_cred <= 0 || task_struct_offset_cred % 8) {
265+
while (task_struct_offset_cred <= 0 || task_struct_offset_cred % 4) {
266266
cout << "请输入task_struct结构体里cred的十六进制偏移值(从proc_pid_status里能看到):" << endl;
267267
task_struct_offset_cred = get_input_hex_number();
268-
if (task_struct_offset_cred <= 0 || task_struct_offset_cred % 8) {
268+
if (task_struct_offset_cred <= 0 || task_struct_offset_cred % 4) {
269269
cout << "输入的信息有错误" << endl;
270270
}
271271
}
272272

273273
size_t task_struct_offset_seccomp = -1;
274-
while (task_struct_offset_seccomp <= 0 || task_struct_offset_seccomp % 8) {
274+
while (task_struct_offset_seccomp <= 0 || task_struct_offset_seccomp % 4) {
275275
cout << "请输入task_struct结构体里seccomp的十六进制偏移值(从proc_pid_status里能看到):" << endl;
276276
task_struct_offset_seccomp = get_input_hex_number();
277-
if (task_struct_offset_seccomp <= 0 || task_struct_offset_seccomp % 8) {
277+
if (task_struct_offset_seccomp <= 0 || task_struct_offset_seccomp % 4) {
278278
cout << "输入的信息有错误" << endl;
279279
}
280280
}

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.