Skip to content

A utility program to convert binary data to a formatted string of the user's choice

License

Notifications You must be signed in to change notification settings

0xvpr/vpr-bin2fmt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vpr-bin2fmt


This project aims to provide a tool for the conversion of a file to formatted double quoted string or a c-style array.

Build instructions

Linux/WSL/MSYS

git clone https://github.com/0xvpr/vpr-bin2fmt vpr-bin2fmt
cd vpr-bin2fmt
cmake -B build
cmake --build build
# sudo cmake --build build --target install # uncomment if you want it available globally

Windows

git clone https://github.com/0xvpr/vpr-bin2fmt vpr-bin2fmt
cd vpr-bin2fmt
cmake.exe -B build
cmake.exe --build build
# cmake.exe --build build --target install # uncomment if you want it available globally

Example Usage

Usage:
  vpr-bin2fmt <path/to/executable> [ optional switches ]

positional arguments:
  path/to/executable

optional switches:
  -c,-C         output as c-style char array
  -s,-S         output as double quoted string
example :
  vpr-bin2fmt path/to/file-1 path/to/file2 -s