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 49.

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:

 

Leave A Reply

Please enter your comment!
Please enter your name here