Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lucabarile/hexfileconverter
Allows you to convert a file of any type to hexadecimal format (and vice versa).
https://github.com/lucabarile/hexfileconverter
arb-rw binary-to-hexadecimal file-to-hex hex-file hex-file-converter hex-files hex-to-file hexadecimal hexadecimal-converter hexadecimal-file-converter hexadecimal-to-binary hexadecimal-to-text hexfileconverter text-to-hexadecimal zdi-can-16318
Last synced: 12 days ago
JSON representation
Allows you to convert a file of any type to hexadecimal format (and vice versa).
- Host: GitHub
- URL: https://github.com/lucabarile/hexfileconverter
- Owner: LucaBarile
- License: mit
- Created: 2022-02-27T22:24:42.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-03T12:52:09.000Z (over 1 year ago)
- Last Synced: 2024-06-25T16:48:26.735Z (5 months ago)
- Topics: arb-rw, binary-to-hexadecimal, file-to-hex, hex-file, hex-file-converter, hex-files, hex-to-file, hexadecimal, hexadecimal-converter, hexadecimal-file-converter, hexadecimal-to-binary, hexadecimal-to-text, hexfileconverter, text-to-hexadecimal, zdi-can-16318
- Language: C#
- Homepage: https://lucabarile.github.io/
- Size: 6.6 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# HexFileConverter
Why HexFileConverter?
I needed to convert a hex file (saved in a particular format) in order to develop my ARB_RW exploit for ZDI-CAN-16318.
(The exploit is quite interesting; read my report if you have nothing better to do š).
After developing the code to convert a hex file to its original format I thought Iād also implement the code to perform the reverse conversion as well.
HexFileConverter was born putting everything together in one program.
What is it for?
Allows you to convert a file of any type to hexadecimal format (and vice versa).
Usage
First of all download here HexFileConverter.
To convert a file of any type (e.g.foo.txt
) to hex format:
HexFileConverter.exe foo.txt
Thefoo.txt.hex
file will be generated.
To convert a file from hex format (e.g.foo.txt.hex
) to its original format (txt):
HexFileConverter.exe foo.txt.hex
Thefoo.txt
file will be generated.
Note:
In this case the file you want to convert must be located in the same folder asHexFileConverter.exe
If not, you must specify the entire path of the file to convert (e.g.C:\...\Desktop\foo.txt
).
Hex file format
To convert a hex file successfully, it must be formatted as follows:
- Each hexadecimal number must be separated by a space.
- There must be at most 16 hexadecimal numbers in a row.
- The letters of a hexadecimal number can be either uppercase or lowercase.
- After the last hexadecimal number there must be a newline.
- The newline characters must be \r\n
- The hexadecimal file name must befileName.OriginalFileExtension.hex
(e.g.foo.txt.hex
).
If your hex file is not formatted as shown in the previous image, you have two choices:
You have also the original file, so you can throw away your unformatted hex file and useHexFileConverter.exe
to convert it to the correct hex format.
You don't have the original file, so you must convert it manually (small file) to the correct hex format or by creating a tool that does it for you (large file (sad story š„)).
Oh?! Is that a flying unicorn?! š²
If you liked HexFileConverter, what do you think about buying me a unicorn? š¦
Here you can buy me a unicorn.