summaryrefslogtreecommitdiff
path: root/md/writeup/linux_local_descriptor_table.md
diff options
context:
space:
mode:
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