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:
MD5: 7A70F0E6A6F89550E0B65BE5611339F8
excellent!
and thank you for sharing the source.
Comment by Anonymous — Tuesday 13 September 2011 @ 0:18
Hi,
Please tell me how to use this BinaryTool. Thank you.
Comment by Sam — Friday 15 April 2016 @ 22:31
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
Sorry about that. No, I don’t. Please show me.
Comment by Sam — Saturday 16 April 2016 @ 10:51
Here is a good tutorial: http://www.computerhope.com/issues/chusedos.htm
Comment by Didier Stevens — Saturday 16 April 2016 @ 10:55
Thanks. I tried running reverse.exe but not working.
Comment by Sam — Saturday 16 April 2016 @ 11:16
what arguments did you pass?
Comment by Didier Stevens — Saturday 16 April 2016 @ 11:32
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
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
Yes, I could see all files in the directory. What could be wrong?
Comment by Sam — Sunday 17 April 2016 @ 5:23
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
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
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