Assembly
Assembly language is a low-level programming language that is used to directly control a computer's hardware. It is a symbolic representation of the machine code instructions that a computer's processor can execute. Assembly language is specific to a certain computer architecture and is often used for system programming, such as operating system development, device drivers, and embedded systems.
Hello World!
To compile the script you will need nasm
and ld
package. Here's an example bellow to "compile" a assembly script. In reality we not say "compile" bur link.
+4
This script get an input from a user and add 4 to it.
Alphabet
Our mission is to make an assembly script with the expected output.
Here's the script.
Reverse Engineering
What's Reverse Engineering ?
Reverse engineering is the process of analyzing a software program to understand how it works and to identify any vulnerabilities that could be exploited. Assembly language can be used as a tool for reverse engineering because it is a low-level programming language that provides a direct representation of the machine code instructions that a computer's processor can execute.
When reverse engineering a program, a pentester may use a disassembler to convert the program's machine code into assembly language. This allows them to see the program's instructions and understand how it works. By analyzing the assembly code, a pentester can identify any potential vulnerabilities in the program, such as buffer overflows, that could be exploited to gain unauthorized access to a system.
Additionally, assembly language can be used to patch a program to fix vulnerabilities or to add new features. This is called reverse engineering of code. It's a powerful technique to analyze how a software works and can be used as a way to modify, enhance or fix it.
It's important to note that reverse engineering could be illegal and illegal in some countries, so it's important to have legal authorization before doing it.
Requirements
First, we need to install gef
. If you want to see the repo...
Installation
Here's how to install it.
Let's start!
To start gdb
just use the command gdb
with the binary file.
Let's tell the program that we want to disassembly the binary.
Now we have to specify an address to tell the program where to start RE.
Let's find what's that meen.
Last updated