pwnable.tw / orw
void __cdecl orw_seccomp() { sock_fprog prog; // [esp+4h] [ebp-84h] sock_filter filter[12]; // [esp+Ch] [ebp-7Ch] unsigned int __canary; // [esp+6Ch] [ebp-1Ch] __canary = __readgsdword(0x14u); qmemcpy(filter, ::filter, sizeof(filter)); prog.len = 12; prog.filter = filter; prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog); } main 에서 orw_seccomp 함수를 처음에 호출한다..