EgeBalci / syscall_api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SYSCALL_API

syscall_api.asm block is used for dynamically finding the syscall number (SN) inside a function body and performing a manual syscall with the found SN. If SN could not be found inside the given function body, R10 register will be equal to -1. Check here for example code.

Block searches for the following common instruction sequence during syscalls.

    mov r10, rcx
    mov eax, ??? ; <-- two byte SN here
    ; ...
    syscall
    ret

example

Prior Work & References

About

License:MIT License


Languages

Language:Assembly 70.0%Language:Shell 24.8%Language:C 5.2%