(shellcode, arch, start_offset=0, load_address=0, thumb=False, **kwargs)
return Project(
            BytesIO(shellcode),
            main_opts={
                'backend': 'blob',
                'arch': arch,
                'entry_point': start_offset,
                'base_addr': load_address,
            },
        **kwargs
        )
Load a new project based on a snippet of assembly or bytecode.

    :param shellcode:       The data to load, as either a bytestring of instructions or a string of assembly text
    :param arch:            The name of the arch to use, or an archinfo class
    :param start_offset:    The offset into the data to start analysis (default 0)
    :param load_address:    The address to place the data in memory (default 0)
    :param thumb:           Whether this is ARM Thumb shellcode
Load a new project based on a snippet of assembly or bytecode.
Load a new project based on a snippet of assembly or bytecode .
def load_shellcode(shellcode, arch, start_offset=0, load_address=0, thumb=False, **kwargs):
    """
    Load a new project based on a snippet of assembly or bytecode.

    :param shellcode:       The data to load, as either a bytestring of instructions or a string of assembly text
    :param arch:            The name of the arch to use, or an archinfo class
    :param start_offset:    The offset into the data to start analysis (default 0)
    :param load_address:    The address to place the data in memory (default 0)
    :param thumb:           Whether this is ARM Thumb shellcode
    """
    if not isinstance(arch, archinfo.Arch):
        arch = archinfo.arch_from_id(arch)
    if type(shellcode) is str:
        shellcode = arch.asm(shellcode, load_address, thumb=thumb)
    if thumb:
        start_offset |= 1

    return Project(
            BytesIO(shellcode),
            main_opts={
                'backend': 'blob',
                'arch': arch,
                'entry_point': start_offset,
                'base_addr': load_address,
            },
        **kwargs
        )
def load_shellcode ( shellcode , arch , start_offset = 0 , load_address = 0 , thumb = False , * * kwargs ) : if not isinstance ( arch , archinfo . Arch ) : arch = archinfo . arch_from_id ( arch ) if type ( shellcode ) is str : shellcode = arch . asm ( shellcode , load_address , thumb = thumb ) if thumb : start_offset |= 1 return Project ( BytesIO ( shellcode ) , main_opts = { 'backend' : 'blob' , 'arch' : arch , 'entry_point' : start_offset , 'base_addr' : load_address , } , * * kwargs )