Syscall number in the shellcode
Shellcode is typically a very small sequence of bytes given directly to the processor, often executing a single system call (syscall). In x86-64 Linux, the syscall number is written to the RAX register. Below is a part of the syscall table for this system:
| Syscall number | Name |
|---|---|
0 | read |
1 | write |
2 | open |
3 | close |
9 | mmap |
10 | mprotect |
59 | execve |
60 | exit |
61 | wait4 |
231 | exit_group |
To evade malware detection (signature detection), an "important" byte inside the shellcode is often encoded with a single XOR key, while the remaining spaces are filled with 0x90 (NOP — an instruction that does nothing). The following sequence of bytes (in decimal) is given: [144, 144, 191, 144]. The encoded byte here — 191 — is the real syscall number encrypted with the XOR key 88.
Find the real syscall number (using XOR), then match it with its name from the table above.
Send the answer in the format BAYROQ{PWN_SYSCALL_<NOM>} (the name in uppercase).