Skip to content
/ chx Public

Clipboard HexDumper is a command-line tool that allows you to read binary data of a file on disk, convert it to a hex dump or a base64 encoded string, and copy it to the clipboard.

License

Notifications You must be signed in to change notification settings

0xflux/chx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chx - (C)lipboard (H)ex(D)umper

Introduction

CHX Clipboard HexDumper is a command-line tool written in Rust that allows users to read binary data of a file on disk, convert it to a hex dump or a base64 encoded string, and copy it to the clipboard. This tool is designed for developers and security experts who need to quickly transfer binary data in a readable or encoded format without manual conversion.

Works cross-platform for Windows, Linux, and MacOS.

You can either build from source, or downloads available https://github.com/0xflux/chx/releases/ - why not add it to your PATH for easy usage!

If there are any features you would like to request, please submit an Issue and I will take a look! Or, feel free to contribute to the project!

If you like this, please reach out to me on twitter. I also have a Youtube channel and a blog so please go check those out!

Features

  • Read binary data from specified file paths.
  • Convert binary data into hex dump format.
  • Optionally convert hex dump to base64 encoding.
  • Copy the resulting string directly to the system clipboard.

Example result:

Here you can see a base64 encoded string as an input, copied to the clipboard by chx. When reversing the base64 string in Cyber Chef, you can clearly see it is in fact a Windows binary.

image

Getting started

Usage

As raw hexdump:

For copying a direct hexdump (formatted C friendly) to your clipboard:

./chx -f /path/to/your/binary

An example of the output:

\x4d\x5a\x90\x00\x03\x00\x00\x00\x04\x00\x00...

As base64 encoded string

To copy as a base64 encoded string, add the -b flag:

./chx -f /path/to/your/binary -b

An example of the output:

TVqQAAMAAAAEAAAA//8AALgAAAAAAAAA...

For help see: ./chx --help

Direct download

A direct download can be found within the GitHub repo.

Build from source

Ensure you have the Rust compiler installed. Clone the repository to your local machine:

git clone https://github.com/0xflux/chx.git
cd chx

Build the project using Cargo:

cargo build --release

About

Clipboard HexDumper is a command-line tool that allows you to read binary data of a file on disk, convert it to a hex dump or a base64 encoded string, and copy it to the clipboard.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages