Хабр Курсы для всех
РЕКЛАМА
Практикум, Хекслет, SkyPro, авторские курсы — собрали всех и попросили скидки. Осталось выбрать!
This request is the other operation used by the traced process; it allows a process that is not currently being traced to deny future traces by its parent. All other arguments are ignored. If the process is currently being traced, it will exit with the exit status of ENOTSUP; otherwise, it sets a flag that denies future traces.
asm volatile (
"mov r0, 31" // PT_DENY_ATTACH
"mov r1, 0"
"mov r2, 0"
"mov r3, 0"
"mov ip, 26" // SYS_ptrace
"svc 0x80"
);
Эффективный способ защиты от пиратства