summaryrefslogtreecommitdiff
path: root/md/writeup/linux_local_descriptor_table.md
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2023-02-04 14:10:26 +0000
committerFreeArtMan <dos21h@gmail.com>2023-02-04 14:10:26 +0000
commit380f0fe40b1ab20790e75dac779e73667cc5ac72 (patch)
tree9fa3b9c93b58c966daa22f955282bc3c181d909a /md/writeup/linux_local_descriptor_table.md
parentdf881efab146ca3ee61bf8936f948dd976fc4740 (diff)
downloadmd-content-380f0fe40b1ab20790e75dac779e73667cc5ac72.tar.gz
md-content-380f0fe40b1ab20790e75dac779e73667cc5ac72.zip
Update all content to new pygmentize
Diffstat (limited to 'md/writeup/linux_local_descriptor_table.md')
-rw-r--r--md/writeup/linux_local_descriptor_table.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/md/writeup/linux_local_descriptor_table.md b/md/writeup/linux_local_descriptor_table.md
index 5a8c571..b3dc8f1 100644
--- a/md/writeup/linux_local_descriptor_table.md
+++ b/md/writeup/linux_local_descriptor_table.md
@@ -6,7 +6,7 @@ Is 32bit Intel ELF 0x80**** adreeses is default? nope. You can setup
your own. Compiler will not see thembut you can do it.
Setup LDT and you will see it.
-```
+```asm
use32
mov dword [0] ,"Hall"
mov dword [4] ,"Ball"
@@ -16,7 +16,7 @@ mov dword [12],0x00000000
yes everything starts from 0x0
-```
+```c
#include <stdlib.h>
#include <stdio.h>
@@ -70,12 +70,12 @@ int main()
}
```
-```
+```c
asm(".byte ... ") // is code.bin
```
Compile:
-```
+```sh
fasm code.asm code.bin
gcc main.c -o main