From 380f0fe40b1ab20790e75dac779e73667cc5ac72 Mon Sep 17 00:00:00 2001 From: FreeArtMan Date: Sat, 4 Feb 2023 14:10:26 +0000 Subject: Update all content to new pygmentize --- md/writeup/linux_local_descriptor_table.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'md/writeup/linux_local_descriptor_table.md') 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 #include @@ -70,12 +70,12 @@ int main() } ``` -``` +```c asm(".byte ... ") // is code.bin ``` Compile: -``` +```sh fasm code.asm code.bin gcc main.c -o main -- cgit v1.2.3