To begin with, let's create a hello world program. Before anything else, we need to make sure that the tools required to build it are installed. Open a Terminal (the Terminal is Linux's version of Windows' Command Prompt) and enter the following command. This may require you to enter your super user password:
sudo apt install gcc
The C program compiler, gcc, is usually pre-installed in Linux.
Open any text editor and type the lines of following code, saving it as hello.c:
#include <stdio.h>
void main(void)
{
printf ("hello world!\n");
}
You can use vim as your text editor by running vi from the Terminal. Â
To compile and run the program, use the following commands:
The hello file is our Linux executable that displays a message in the console.
Now, on to reversing this program.
...