aboutsummaryrefslogtreecommitdiff
path: root/Semestr 4/ask/lista9/gadget.s
diff options
context:
space:
mode:
authorFranciszek Malinka <franciszek.malinka@gmail.com>2021-10-05 21:49:54 +0200
committerFranciszek Malinka <franciszek.malinka@gmail.com>2021-10-05 21:49:54 +0200
commitc5fcf7179a83ef65c86c6a4a390029149e518649 (patch)
treed29ffc5b86a0d257453cedcf87d91a13d8bf3b0d /Semestr 4/ask/lista9/gadget.s
parentf8a88b6a4aba1f66d04711a9330eaba49a50c463 (diff)
Duzy commit ze smieciami
Diffstat (limited to 'Semestr 4/ask/lista9/gadget.s')
-rw-r--r--Semestr 4/ask/lista9/gadget.s16
1 files changed, 0 insertions, 16 deletions
diff --git a/Semestr 4/ask/lista9/gadget.s b/Semestr 4/ask/lista9/gadget.s
deleted file mode 100644
index 6d60a63..0000000
--- a/Semestr 4/ask/lista9/gadget.s
+++ /dev/null
@@ -1,16 +0,0 @@
- .global gadget
-
- .text
-
-# rax: 0x3c
-# rdi: 0
-# rdx: {NULL, ...}
-# rsi: path + '\n'
-gadget:
- dec %rax # rax: 0x3c -> 0x3b (sys_execve)
- mov %rdx, %rsi # rsi: argv = {NULL}
- mov %rdi, %rdx # rdx: envp = NULL
- lea 16(%rsp),%rdi # rdi: path
- ret
-
-# vim: ft=gas