Giter Club home page Giter Club logo

lucabarile / hexfileconverter Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 6.76 MB

Allows you to convert a file of any type to hexadecimal format (and vice versa).

Home Page: https://lucabarile.github.io/

License: MIT License

C# 100.00%
hex-file hex-files arb-rw zdi-can-16318 hexadecimal hexadecimal-converter hexadecimal-to-binary hex-file-converter hexadecimal-file-converter hexfileconverter binary-to-hexadecimal file-to-hex hex-to-file hexadecimal-to-text text-to-hexadecimal

hexfileconverter's Introduction

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
The foo.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
The foo.txt file will be generated.

Note:
In this case the file you want to convert must be located in the same folder as HexFileConverter.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 be fileName.OriginalFileExtension.hex (e.g. foo.txt.hex).

If your hex file is not formatted as shown in the previous image, you have two choices:
  1. You have also the original file, so you can throw away your unformatted hex file and use HexFileConverter.exe to convert it to the correct hex format.
  2. 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.

hexfileconverter's People

Contributors

lucabarile avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.