Skip to content

1kb single-page http server, static binary for linux x86_64

License

Notifications You must be signed in to change notification settings

ListeriaM/nolibc-httpd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

single-page http server for x86_64 linux in a 1kb static binary, doesn't depend on libc

huge credits to @tleydxdy for bringing this down from 5kb to 1kb and <1kb with the asm version

build and run

./build.sh
./httpd 8080 test.html

if you don't have gcc, change build.sh to match your compiler

build even smaller asm version with a custom elf header, < 1kb

requires nasm

./asm.sh
./httpd 8080 test.html

About

1kb single-page http server, static binary for linux x86_64

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Assembly 59.7%
  • C 36.4%
  • Shell 3.1%
  • HTML 0.8%