<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/64-bit-linux-assembly-and-shellcoding-lwl8lpi27" -->

---
title: 64-bit Linux Assembly and Shellcoding | daily.dev
description: This post explores the creation of shellcodes in 64-bit Linux assembly. It covers topics such as understanding CPU registers, writing the first assembly...
canonical: https://daily.dev/posts/64-bit-linux-assembly-and-shellcoding-lwl8lpi27
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: 64-bit Linux Assembly and Shellcoding | daily.dev
og:description: This post explores the creation of shellcodes in 64-bit Linux assembly. It covers topics such as understanding CPU registers, writing the first assembly...
og:url: https://daily.dev/posts/64-bit-linux-assembly-and-shellcoding-lwl8lpi27
og:image: https://api.daily.dev/og/posts/lwL8LpI27.png
og:image:alt: 64-bit Linux Assembly and Shellcoding
og:image:width: 1200
og:image:height: 630
og:locale: en
---

[Hacking Articles](https://daily.dev/sources/hackingarticlesin)

[Read post](https://api.daily.dev/r/lwL8LpI27)

# [64-bit Linux Assembly and Shellcoding](https://api.daily.dev/r/lwL8LpI27 "Go to post")

This post explores the creation of shellcodes in 64-bit Linux assembly. It covers topics such as understanding CPU registers, writing the first assembly program, assembling and linking, extracting shellcode from an executable, removing nulls from shellcode, and executing shellcode in a C program.

[#assembly](/tags/assembly "Check all #assembly posts")[#linux](/tags/linux "Check all #linux posts")

Mar 29, 2024•9m read time•From [hackingarticles.in](https://api.daily.dev/r/lwL8LpI27 "hackingarticles.in")

[![Post cover image](https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/37c79542c970e527ffdce9517e5c86af?_a=AQAEufR)](https://api.daily.dev/r/lwL8LpI27 "Go to post")

Table of contents

[Introduction](https://api.daily.dev/r/lwL8LpI27 "Introduction")[Table of Content](https://api.daily.dev/r/lwL8LpI27 "Table of Content")[Understanding CPU registers](https://api.daily.dev/r/lwL8LpI27 "Understanding CPU registers")[First Assembly Program](https://api.daily.dev/r/lwL8LpI27 "First Assembly Program")[Assembling and Linking](https://api.daily.dev/r/lwL8LpI27 "Assembling and Linking")[Extracting shellcode](https://api.daily.dev/r/lwL8LpI27 "Extracting shellcode")[Removing NULLs](https://api.daily.dev/r/lwL8LpI27 "Removing NULLs")[Sample shellcode execution](https://api.daily.dev/r/lwL8LpI27 "Sample shellcode execution")[Conclusion](https://api.daily.dev/r/lwL8LpI27 "Conclusion")

19 Impressions3 Upvotes

Comment

Bookmark

Copy

![Placeholder image for anonymous user](https://media.daily.dev/image/upload/s--qsFuKGv_--/t_logo,f_auto/public/noProfile)Share your thoughtsPost

[![Hacking Articles's image](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/356a2398f12347d59b1d22442ab3d9d1)](https://daily.dev/sources/hackingarticlesin)

[Hacking Articles](https://daily.dev/sources/hackingarticlesin "https://daily.dev/sources/hackingarticlesin")

Hacking Articles IN is a platform or publication dedicated to cybersecurity research, tutorials, and... Read more

99 Followers

•

50 Upvotes

#### Would you recommend this post?

Copy link

WhatsApp

Facebook

X

New Squad

Copy linkShare with your friends

3

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"64-bit Linux Assembly and Shellcoding","url":"https://daily.dev/posts/64-bit-linux-assembly-and-shellcoding-lwl8lpi27","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/64-bit-linux-assembly-and-shellcoding-lwl8lpi27"},"datePublished":"2024-03-29T13:57:55.057Z","dateModified":"2024-08-02T02:13:19.295Z","description":"This post explores the creation of shellcodes in 64-bit Linux assembly. It covers topics such as understanding CPU registers, writing the first assembly...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/37c79542c970e527ffdce9517e5c86af?_a=AQAEufR","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/37c79542c970e527ffdce9517e5c86af?_a=AQAEufR","isAccessibleForFree":true,"articleSection":"Hacking Articles","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Hacking Articles","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/356a2398f12347d59b1d22442ab3d9d1","url":"https://daily.dev/sources/hackingarticlesin"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/64-bit-linux-assembly-and-shellcoding-lwl8lpi27","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":3},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"assembly,linux","timeRequired":"PT9M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Hacking Articles","item":"https://daily.dev/sources/hackingarticlesin"},{"@type":"ListItem","position":3,"name":"64-bit Linux Assembly and Shellcoding"}]}
```

