Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

Commit

Permalink
thanks for r0ysue feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
SeeFlowerX committed Dec 10, 2022
1 parent 0de179c commit 33e394d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/raw_syscalls.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,18 @@ static int inline send_data_arg_str(struct bpf_raw_tracepoint_args* ctx, struct
return 0;
}
if (filter->try_bypass) {
char target[3][12] = {
char target[5][18] = {
"/dev/.magisk",
"/system/bin/magisk",
"/system/bin/su",
"which su",
"mount",
};
#pragma unroll
for (int i = 0; i < 3; i++) {
for (int i = 0; i < 5; i++) {
bool need_override = true;
#pragma unroll
for (int j = 0; j < 12; j++) {
for (int j = 0; j < 18; j++) {
if (target[i][j] == 0) break;
if (data->arg_str[j] != target[i][j]) {
need_override = false;
Expand Down

0 comments on commit 33e394d

Please sign in to comment.