Originally published November 14, 2016 @ 11:10 pm

Below is a quick script that will replace specified strings in binary files with random values. A word of caution: the script will preserve the file’s original ctime by briefly changing system time. Obviously, this requires root access and may cause issues with some applications. If this is not a feature you need, you can just comment out the time_set function on line 58.

Download and install the script:

Example:

This will (hopefully) replace strings jdoe1 and 10.10.5.13 in the two binary log files

The script: