Scroll to navigation

UDCLI(1) User Commands UDCLI(1)

NAME

udcli - CLI tool for quick disassembly of x86 and x86-64 instructions

SYNOPSIS

udcli [options] file

DESCRIPTION

udcli is a command-line front-end to the Udis86 disassembler library. It reads machine code and prints a disassembled representation of x86 or x86-64 instructions.

OPTIONS

-16
Set the disassembly mode to 16 bits.

-32
Set the disassembly mode to 32 bits (default).

-64
Set the disassembly mode to 64 bits.

Use Intel (NASM-like) syntax for output (default).

Use AT&T (GAS-like) syntax.

Set CPU vendor. vendor may be intel or amd.

Set the program counter to pc. Default is 0.

Skip n bytes before starting disassembly.

Disassemble only n bytes.

Read input as whitespace-separated hexadecimal byte values.

Example:

0f 01 ae 00

Do not display instruction offsets.

Do not display instruction byte encoding.

Display information about EFLAGS usage.

Display operand access information.

Display implicit registers used or modified by the instruction.

Display help information.

Display program version.

EXAMPLE

Usage example:

echo "65 67 89 87 76 65 54 56 78 89 09 00 90" | udcli -32 -x

Example output:

0000000080000800 656789877665     mov [gs:bx+0x6576], eax
0000000080000806 54               push esp
0000000080000807 56               push esi
0000000080000808 7889             js 0x80000793
000000008000080a 0900             or [eax], eax
000000008000080c 90               nop

AUTHORS

This version of Udis86 is based on a fork of the original project by Willem (canihavesomecoffee).

The original Udis86 project was written by Vivek Thampi.

udcli udis86