Skip to content

Commit

Permalink
Encoded x86-64 assembly (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO authored Jul 15, 2023
2 parents 46dfe83 + 24d9fcb commit 0268036
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions InMaldrerah/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
= x86-64 Assembly

Encoded with `.ascii`.

```sh
as d.S -o d.o
ld d.o -o d.out
./d.out
```

Original code:
```asm
.globl _start
.text
_start:
mov $1, %rax
mov $1, %rdi
mov $msg, %rsi
mov $10, %rdx
syscall
mov $60, %rax
xor %rdi, %rdi
syscall
msg: .ascii "HelloWorld\0"
```
1 change: 1 addition & 0 deletions InMaldrerah/d.S
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.ascii "\x48\xc7\xc0\x01\0\0\0\x48\x89\xc7\x48\xc7\xc6\x26\x10\x40\0\x48\xc7\xc2\x0a\0\0\0\x0f\x05\x48\xc7\xc0\x3c\0\0\0\x48\x31\xff\x0f\x05\x48\x65\x6c\x6c\x6f\x57\x6f\x72\x6c\x64\0"

0 comments on commit 0268036

Please sign in to comment.