Native API - Linux
The Linux API (Application Programming Interface) refers to the set of system calls and library functions that applications use to interact with the Linux kernel and operating system. These APIs provide access to various low-level functionalities such as file manipulation, process control, network communication, and more. Key components of the Linux API include:
System Calls: These are functions provided by the Linux kernel that programs can use to perform various operations such as reading from or writing to files, creating processes, and managing memory. Examples include open, read, write, fork, and execve.
Library Functions: These are higher-level functions provided by libraries such as the GNU C Library (glibc). They provide a more convenient interface to the underlying system calls. Examples include fopen, printf, malloc, and pthread_create.
If an attacker gains access to a process that runs with higher privileges, they can use file-related system calls to read sensitive information (e.g., /etc/passwd, /etc/shadow).
The following is an example of API usage for user enumeration
Last updated