Didier Stevens

Binary Tools

Here are 2 simple binary tools I developed because I needed them:

  • reverse: takes the input file, reverses it (first byte becomes last byte, …) and writes it to a new file
  • middle: extracts a sequence of bytes from the input file and writes it to a new file

Compiled with Borland’s free C++ 5.5 compiler.

Download:

BinaryTools.zip (https)

MD5: 7A70F0E6A6F89550E0B65BE5611339F8

13 Comments »

  1. excellent!
    and thank you for sharing the source.

    Comment by Anonymous — Tuesday 13 September 2011 @ 0:18

  2. Hi,

    Please tell me how to use this BinaryTool. Thank you.

    Comment by Sam — Friday 15 April 2016 @ 22:31

  3. Please be patient, you don’t have to post your comment twice!

    This is a command-line tool. You know how to use the command-line?

    Comment by Didier Stevens — Saturday 16 April 2016 @ 7:44

  4. Sorry about that. No, I don’t. Please show me.

    Comment by Sam — Saturday 16 April 2016 @ 10:51

  5. Here is a good tutorial: http://www.computerhope.com/issues/chusedos.htm

    Comment by Didier Stevens — Saturday 16 April 2016 @ 10:55

  6. Thanks. I tried running reverse.exe but not working.

    Comment by Sam — Saturday 16 April 2016 @ 11:16

  7. what arguments did you pass?

    Comment by Didier Stevens — Saturday 16 April 2016 @ 11:32

  8. C:\BinaryTools\Reverse\reverse.exe

    C:\BinaryTools\Reverse\reverse.exe fnr-in fnr-out

    I got this message: “error opening file fnr-in”

    Comment by Sam — Saturday 16 April 2016 @ 12:45

  9. This means it works. But it did not find your file fnr-in. If you do a dir, do you see your file fnr-in?

    Comment by Didier Stevens — Saturday 16 April 2016 @ 18:40

  10. Yes, I could see all files in the directory. What could be wrong?

    Comment by Sam — Sunday 17 April 2016 @ 5:23

  11. Is your file fnr-in open in another application? Like an editor, or Word? Then close that and try again.

    Comment by Didier Stevens — Sunday 17 April 2016 @ 9:05

  12. Yes, it’s working now. But your “reverse.exe” is not working. Please how do I get it to work?

    Comment by Sam — Sunday 17 April 2016 @ 11:22

  13. Sorry, I don’t follow you anymore. You say it is working, and then you say it is not working.

    Comment by Didier Stevens — Sunday 17 April 2016 @ 14:52


RSS feed for comments on this post. TrackBack URI

Leave a Reply (comments are moderated)

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Blog at WordPress.com.