https://github.com/cvar1984/nasm-tutorial
Assembler for beginer
https://github.com/cvar1984/nasm-tutorial
assembly nasm reverse-shell tutorials
Last synced: 5 months ago
JSON representation
Assembler for beginer
- Host: GitHub
- URL: https://github.com/cvar1984/nasm-tutorial
- Owner: Cvar1984
- Created: 2021-02-15T18:55:02.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2025-05-24T04:14:35.000Z (8 months ago)
- Last Synced: 2025-05-24T05:23:03.215Z (8 months ago)
- Topics: assembly, nasm, reverse-shell, tutorials
- Language: Assembly
- Homepage: https://www.nasm.us
- Size: 58.6 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nasm-tutorial


# references
[Linux syscall tables](https://chromium.googlesource.com/chromiumos/docs/+/HEAD/constants/syscalls.md)
[Flags](https://en.wikipedia.org/wiki/FLAGS_register)
[NASM official docs](https://nasm.us/docs.php)
[NASM tutorial](https://cs.lmu.edu/~ray/notes/nasmtutorial/)
# REcommended tools for practice
- [pwndbg](https://github.com/pwndbg/pwndbg/)

## compile
```sh
nasm -f elf64 hello.asm -o hello.o
```
```sh
ld hello.o -o hello
```
```sh
./hello
```
## compile C and assembly with gcc
```sh
nasm -f elf64 hello.asm -o hello.o
```
```sh
gcc -no-pie -nostdlib say.c -c
```
```sh
ld say.o hello.o -o say
```
## clean mess
```sh
git clean -xdf
```