@@ -243,38 +243,38 @@ int main(int argc, char* argv[]) { |
243 | 243 | //hook_func_start_addr = get_input_hex_number(); |
244 | 244 |
|
245 | 245 | 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) { |
247 | 247 | cout << "请输入do_execve函数的入口位置:" << endl; |
248 | 248 | 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) { |
250 | 250 | cout << "输入的信息有错误" << endl; |
251 | 251 | } |
252 | 252 | } |
253 | 253 |
|
254 | 254 | 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) { |
256 | 256 | cout << "请输入avc_denied函数的入口位置:" << endl; |
257 | 257 | 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) { |
259 | 259 | cout << "输入的信息有错误" << endl; |
260 | 260 | } |
261 | 261 |
|
262 | 262 | } |
263 | 263 |
|
264 | 264 | 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) { |
266 | 266 | cout << "请输入task_struct结构体里cred的十六进制偏移值(从proc_pid_status里能看到):" << endl; |
267 | 267 | 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) { |
269 | 269 | cout << "输入的信息有错误" << endl; |
270 | 270 | } |
271 | 271 | } |
272 | 272 |
|
273 | 273 | 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) { |
275 | 275 | cout << "请输入task_struct结构体里seccomp的十六进制偏移值(从proc_pid_status里能看到):" << endl; |
276 | 276 | 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) { |
278 | 278 | cout << "输入的信息有错误" << endl; |
279 | 279 | } |
280 | 280 | } |
|