You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pwndbg/docs/commands/misc/asm.md

1.3 KiB

asm

usage: asm [-h] [-f {hex,string}]
           [--arch {powerpc64,aarch64,powerpc,riscv32,riscv64,sparc64,mips64,msp430,alpha,amd64,sparc,thumb,cris,i386,ia64,m68k,mips,s390,none,avr,arm,vax}]
           [-v AVOID] [-n] [-z] [-i INFILE]
           [shellcode ...]

Assemble shellcode into bytes

Positional arguments

Positional Argument Help
shellcode Assembler code to assemble (default: '[]')

Optional arguments

Short Long Help
-h --help show this help message and exit
-f --format Output format (default: 'hex')
--arch Target architecture
-v --avoid Encode the shellcode to avoid the listed bytes (provided as hex)
-n --newline Encode the shellcode to avoid newlines
-z --zero Encode the shellcode to avoid NULL bytes
-i --infile Specify input file