Patches in-binary strings so they practically don't exist.

nosoop 6f59fc7447 Default config param to empty list 2 years ago
LICENSE 2b9f9c48b0 Initial commit 3 years ago
README.md 86040110c1 Move autopatch info into README 2 years ago
str0.example.ini 0d54d6dd8d Add option to fully zero out strings in a binary 2 years ago
str0.py 6f59fc7447 Default config param to empty list 2 years ago

README.md

\0String Patch

Patches in-binary strings to start with the null terminator, primarily intended so they never get displayed in the server console (for things that MM:S / SM can't reach, like the Steam libraries).

Needs a relatively recent Python 3 version.

License is BSD0. Do whatever you want with the script as long as I'm not involved.

Usage

Copy str0.example.ini to str0.ini, add your sections, then run python3 str0.py ${FILE} to shut those "RecordSteamInterfaceCreation" messages up for good.

Additional configuration files may be provided by passing -c ${CONFIGFILE} to the script.

Dealing with autoupdates

incrontab works great for automatically patching binaries after game updates. Add the following entry:

/path/containing/bin	IN_MOVED_TO	python3 /path/to/str0.py $@/$# -c /path/to/config.ini