DEV Community

Dev assembly x86_64
Dev assembly x86_64

Posted on

Minimal Linux x86_64 Syscall Samples (pure assembly, no libc)

Hey everyone,

I’ve been building a small collection of minimal Linux x86_64 assembly examples using raw syscalls only — no libc, no wrappers.

These samples are meant for anyone studying:

  • Linux ABI
  • syscall-level I/O
  • low-level networking primitives
  • reversing / detection engineering
  • CTF challenges

Included examples:

  • read_file / write_file
  • socket / connect / send / recv
  • bind → listen → accept
  • minimal reverse shell concept (syscall only)

Build:
nasm -f elf64 sample.asm -o sample.o
ld sample.o -o sample
More instructions + testing with netcat are included in the README.

GitHub repository:
👉 https://github.com/assembly64bit/Linux-asm-samples

This is purely for education & Linux ABI research.

Top comments (0)