Skip to content

Linux

Basic Tools

GCC

The GNU Compiler Collection includes front ends for C, C++, Objective-C, Fortran, Ada, and Go, as well as libraries for these languages (libstdc++,..).

Installing gcc: First we do apt update sudo apt-get update

Command for installing gcc: sudo apt-get install gcc-4.6-base cpp-4.6 libgomp1 libquadmath0 libc6-dev

nasm

The Netwide Assembler (NASM) is an assembler and disassembler for the Intel x86 architecture. It can be used to write 16-bit, 32-bit (IA-32) and 64-bit (x86-64) programs. NASM is considered to be one of the most popular assemblers for Linux.

command for installing nasm: sudo apt-get install nasm

Command for compiling Assembly Code: nasm -f elf file.asm gcc file.o -o file

Linux advanced tools

GDB

Installation command: sudo apt-get install gdb

Cheat sheet Link : Cheat Sheet

Installing GDB Peda: Installation Link: Peda

Radare

Radare is an open source tool and is used for analyzing binaries, disassembling code, debugging programs, attaching to remote gdb servers.

For Installing Radare enter the following commands:

git clone https://github.com/radare/radare2 cd radare2 sudo sys/install.sh