{"id":22314249,"url":"https://github.com/omarazizi/assembly-web-server","last_synced_at":"2025-03-26T02:45:38.100Z","repository":{"id":223556032,"uuid":"760548560","full_name":"OmarAzizi/Assembly-Web-Server","owner":"OmarAzizi","description":"Webserver in x86_64 Assembly (Network Programming)","archived":false,"fork":false,"pushed_at":"2024-02-20T21:04:54.000Z","size":11,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-31T00:17:00.452Z","etag":null,"topics":["low-level-programming","network-programming","webserver","x86-64"],"latest_commit_sha":null,"homepage":"","language":"Assembly","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OmarAzizi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-02-20T15:54:29.000Z","updated_at":"2024-03-23T10:56:53.000Z","dependencies_parsed_at":"2024-02-20T21:55:24.676Z","dependency_job_id":"f6f32fc0-4947-4f75-b66c-d807ea6c8da1","html_url":"https://github.com/OmarAzizi/Assembly-Web-Server","commit_stats":null,"previous_names":["omarazizi/assembly-web-server"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OmarAzizi%2FAssembly-Web-Server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OmarAzizi%2FAssembly-Web-Server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OmarAzizi%2FAssembly-Web-Server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OmarAzizi%2FAssembly-Web-Server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OmarAzizi","download_url":"https://codeload.github.com/OmarAzizi/Assembly-Web-Server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245579581,"owners_count":20638676,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["low-level-programming","network-programming","webserver","x86-64"],"created_at":"2024-12-03T22:09:29.405Z","updated_at":"2025-03-26T02:45:38.082Z","avatar_url":"https://github.com/OmarAzizi.png","language":"Assembly","readme":"# Assembly-Web-Server\n![Assembly Icon](https://img.shields.io/badge/x86-Assembly-green?style=for-the-badge\u0026logo=assembly)\n\nThis command will assemble the x86 into [ELF64](https://en.wikipedia.org/wiki/Executable_and_Linkable_Format) object file format using [nasm](https://www.nasm.us/) (Netwide Assembler)\n```bash\nnasm -f elf64 server.asm -o server\n```\n\nThen we will use [ld](https://ftp.gnu.org/old-gnu/Manuals/ld-2.9.1/html_mono/ld.html) (GNU linker)\n```bash\nld -o server server.o\n```\n\n## Running the server\nI ran the server with [strace](https://en.wikipedia.org/wiki/Strace) so I can see the system-calls while running the server\n```bash\nstrace ./server\n```\n\nThe output should look something like this\n\n![Screenshot from 2024-02-20 23-53-37](https://github.com/OmarAzizi/Assembly-Web-Server/assets/110500643/525c236f-79cb-46ef-a1db-c0743ef7bc83)\n\nThe server is waiting for a connection on port __8080__, so se can go to the web browser on http://localhost:8080 to connect to it or run the following [curl](https://www.hostinger.com/tutorials/curl-command-with-examples-linux/#:~:text=Limit%20cURL%20Output-,What%20Is%20cURL%20Command%3F,used%20to%20troubleshoot%20connection%20issues.) command in shell\n```bash\ncurl --output - http://localhost:8080\n```\n\n### Using curl\n![image](https://github.com/OmarAzizi/Assembly-Web-Server/assets/110500643/b78708b0-d363-46bb-a58c-4953614808b2)\n\n### Using the web browser\n![image](https://github.com/OmarAzizi/Assembly-Web-Server/assets/110500643/fb655d29-bb55-4722-9c3a-d243b06eda61)\n \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomarazizi%2Fassembly-web-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fomarazizi%2Fassembly-web-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomarazizi%2Fassembly-web-server/lists"}