summaryrefslogtreecommitdiffstats
path: root/md/writeup/linux_shellcode.md
diff options
context:
space:
mode:
Diffstat (limited to 'md/writeup/linux_shellcode.md')
-rw-r--r--md/writeup/linux_shellcode.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/md/writeup/linux_shellcode.md b/md/writeup/linux_shellcode.md
index 083a817..ee582f0 100644
--- a/md/writeup/linux_shellcode.md
+++ b/md/writeup/linux_shellcode.md
@@ -13,12 +13,12 @@ xor ebx, ebx
int 80h
```
-```
+```sh
fasm code.asm code.bin
```
bin2hex output:
-```
+```text
\x31\xc0\x40\x31\xdb\xcd\x80
```
@@ -34,11 +34,11 @@ int main()
printf("Nope it not working\n");
}
```
-```
+```sh
gcc main.c -o main
```
run
-```
+```sh
./main
```
nothing happens. That exactly that code do exits from programm