Skip to content

debrunbaix/get_syscall_asm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

get_syscall_asm

This program permit to know the calling convention for a syscall.

use

usage: get_syscall [-h] -a ARCH -s SYSCALL

This program permit to know the calling convention for a syscall.

options:
  -h, --help            show this help message and exit
  -a ARCH, --arch ARCH  x86 || x64 || arm || arm64
  -s SYSCALL, --syscall SYSCALL
                        read, write, etc...

exemple

execve on x64

./get_syscall.py -a x64 -s execve
EXECVE :
    rax : 0x3b

    rdi : const char *filename
    rdx : const char *const *envp

write on arm64

./get_syscall.py -a arm64 -s write
WRITE :
    x0 : 0x40

    x0 : unsigned int fd
    x2 : size_t count

About

This program permit to know the calling convention for a syscall.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages