Skip to content

Read and open hex file in Linux

homepage-banner

hexdump

hexdump /bin/bash

xxd

tool to make (or reverse) a hex dump

xxd /bin/bash

hexyl

Command-line hex viewer with colored output

hexyl /bin/bash

readelf

readelf is the best utility for analyzing elf(executable and linking format) files.

## show all
readelf -a /bin/bash

## show elf header
readelf -h /bin/bash

## reading all the segments of the file
readelf -l /bin/bash

## reading all the sections of the file
readelf -S /bin/sh

strings

strings /bin/bash

Back to Table of Contents

Disclaimer
  1. License under CC BY-NC 4.0
  2. Copyright issue feedback me#imzye.com, replace # with @
  3. Not all the commands and scripts are tested in production environment, use at your own risk
  4. No personal information is collected.
Feedback